Open Source · PyPI · Python 3.11+

Unified
Nexus

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.

🧑‍💻
Your Code
@tool / @route
UnifiedNexus
finalize()
🌐
FastAPI
/docs · REST
🤖
FastMCP
/mcp · SSE
🚀
Uvicorn
Single ASGI
01
Single Server
One port. One process. REST and MCP co-exist without conflict.
02
AI-Ready
Expose tools to Claude, GPT, and any MCP-compatible AI agent instantly.
03
Decorator API
Familiar FastAPI-style decorators. Zero boilerplate to get started.
04
Lifespan Safe
MCP task group properly initialized via composed lifespan handlers.
05
Auto Docs
Swagger UI at /docs + MCP Inspector support out of the box.
06
Production Grade
Built on Starlette ASGI. Deploy anywhere: Docker, Railway, Fly.io.
main.py
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)
1
port to run
0
config files
2
protocols served
AI integrations
$ pip install unifiednexus
Python 3.11+ · MIT License
FastAPI + FastMCP under the hood