Mcp Rest Sample
About
Python sample code for MCP server + REST API (FastAPI) integration
Details
- Author
- BeaverHouse
- GitHub stars
- 1
- Downloads
- 317
- Categories
- Developer Tools, API
Jump to
- Uses uv for dependency management.
- Integrates FastAPI for both the REST API and MCP server.
- Built with the official Python SDK for MCP.
- Includes separate documentation for local setup and connection.
- Structure inspired by another FastAPI MCP SSE project.
Refer to the project's documentation for local development commands (docs/local-commands-python.md) and instructions to run or connect to the MCP server (docs/connect-mcp.md). The project uses uv for dependency management.
<p align="center">
<a href="https://github.com/BeaverHouse/mcp-rest-sample">
</a>
<p align="center">
Python sample code for MCP server + REST API (FastAPI) integration
</p>
<p align="center">
<a href="https://www.python.org/">
</a>
<a href="https://fastapi.tiangolo.com/">
</a>
<a href="https://docs.astral.sh/uv/ ">
</a>
<a href="https://www.cursor.com/">
</a>
<a href="./LICENSE">
</a>
</p>
<p align="center">
<sub> Logo from <a href="https://www.flaticon.com/free-icon/experiment_3830179">Flaticon</a> </sub>
</p>
</p>
<!-- Content -->
<br>
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.
<br>
Documentation
- Commands for local development
- How to run or connect to the MCP server
Contributing
See the CONTRIBUTING.md.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





