DevelopmentPython

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

Free
N/A rating (0 reviews)0 installs11,760 GitHub stars

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

Compatible with

Claude DesktopCursor

Install

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "fastapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp"
      ]
    }
  }
}

Config File Location

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/claude/claude_desktop_config.json

Some servers require additional setup - check the GitHub README for specific instructions.

fastapi_mcp MCP Server — MCPNest — MCPNest