One framework. FastAPI + FastMCP — unified, production-ready.
UnifiedNexus is a Python framework that seamlessly combines FastAPI (REST) and FastMCP (Model Context Protocol) into a single ASGI application — so you can expose your tools to both HTTP clients and AI agents without writing two separate servers.
from unifiednexus import UnifiedNexus app = UnifiedNexus("My Production App") # Registers as BOTH a REST endpoint AND an MCP tool @app.tool(path="/user-status", methods=["POST"]) async def get_user_status(user_id: str): return {"status": "active", "id": user_id} # Builds the unified ASGI app if __name__ == "__main__": import uvicorn uvicorn.run(app.finalize(), host="0.0.0.0", port=8000)