natthasath/demo-python-fastapi-mcp
3.2
If you are the rightful owner of demo-python-fastapi-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
FastAPI MCP is a server template designed to facilitate the creation of Model Context Protocol servers using FastAPI, enabling seamless integration with AI agents through REST or custom tools.
Tools
1
Resources
0
Prompts
0
🎉 Demo Python FastAPI MCP
FastAPI MCP is a Model Context Protocol server template using FastAPI, letting you expose REST or custom tools to AI agents with typed schemas, streaming, auth, and async I/O. Build endpoints quickly, auto-docs via OpenAPI, and deploy anywhere.
✅ Requirements
⚡ MCP Inspector RUN
npx @modelcontextprotocol/inspector poetry run hello.py
🚀 FastMCP Add to Claude Desktop
fastmcp install claude-desktop server.py
fastmcp run server.py:mcp --transport http --host 127.0.0.1 --port 6274
uvicorn server:app --host 127.0.0.1 --port 6274 --ssl-keyfile ./certs/localhost-key.pem --ssl-certfile ./certs/localhost.pem
🏆 FastMCP RUN
fastmcp run server.py:mcp