Overview
What is dani-mcp-sse?
dani-mcp-sse is a FastAPI MCP server that automatically exposes FastAPI endpoints as MCP (Model Context Protocol) tools without requiring additional configuration. It is intended for developers who want to integrate FastAPI APIs with MCP clients.
How to use dani-mcp-sse?
Install fastapi-mcp and mcp-proxy using uv, then add a JSON entry to claude_desktop_config.json pointing to the server’s MCP endpoint. Run the server with uvicorn (via a registered script in pyproject.toml or directly).
Key features of dani-mcp-sse
- Zero‑configuration integration with FastAPI
- Uses mcp-proxy for client communication
- Simple setup via
pyproject.tomlscripts - Supports Claude Desktop configuration
Use cases of dani-mcp-sse
- Exposing existing FastAPI endpoints as MCP tools for AI agents
- Connecting FastAPI backends to Claude Desktop via MCP protocol
- Rapidly prototyping MCP tool servers without manual boilerplate
FAQ from dani-mcp-sse
What are the dependencies?
You need fastapi-mcp and mcp-proxy. Install both with uv: uv add fastapi-mcp and uv tool install mcp-proxy.
How do I configure the server for Claude Desktop?
Add the following to claude_desktop_config.json:
{
"mcpServers": {
"my-api-mcp-proxy": {
"command": "mcp-proxy",
"args": ["http://127.0.0.1:8000/mcp"]
}
}
}
How do I run the server?
Register a script in pyproject.toml under [project.scripts] (e.g., dani-mcp-sse-server = "dani_mcp_sse_server:main") then run uv run dani-mcp-sse-server. Alternatively, start the FastAPI application with uvicorn manually.