Mcp Rest Sample

by BeaverHouse

1 stars
317 downloads
Not rated
GitHub

About

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

Details

Author
BeaverHouse
GitHub stars
1
Downloads
317
Categories
Developer Tools, API

- 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">
Logo
</a>

<p align="center">
Python sample code for MCP server + REST API (FastAPI) integration
</p>

<p align="center">
<a href="https://www.python.org/">
Python
</a>
<a href="https://fastapi.tiangolo.com/">
FastAPI
</a>
<a href="https://docs.astral.sh/uv/ ">
uv
</a>
<a href="https://www.cursor.com/">
Cursor
</a>
<a href="./LICENSE">
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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.