mcp-rest-sample

mcp-rest-sample

3.2

If you are the rightful owner of mcp-rest-sample and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

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

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

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 .