mcp-rest-sample

mcp-rest-sample

3.4

Python sample code for MCP server + REST API (FastAPI) integration.

Logo

Python sample code for MCP server + REST API (FastAPI) integration

Python FastAPI uv Cursor

Logo from Flaticon


Description

Python sample code for MCP server + REST API (FastAPI) integration.

  • Used uv to manage the dependencies.
  • Used Python SDK for MCP to handle the MCP protocol.
  • Integrated with FastAPI to handle both the REST API and the MCP server.

This project's structure is inspired by panz2018/fastapi_mcp_sse.


Documentation

Contributing

See the .