What is the purpose of this project?
It serves as a learning example showing how to mount a Model Context Protocol server on top of a FastAPI application, with a matching client that communicates using the MCP client library.
@KimiJL
Basic information
Example web app mounting a model context protocol (MCP) server on a FastAPI server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"fastapi-mcp": {
"command": "docker",
"args": [
"build",
"-t",
"fastapi-mcp",
"."
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Description is a simple example web app and client that demonstrates mounting a Model Context Protocol (MCP) server onto an existing FastAPI server. It is intended for developers learning how to integrate MCP with FastAPI.
Build and run the server using Docker (docker build -t fastapi-mcp . then docker run -p 8000:8000 --net=host fastapi-mcp) or set up a Python environment, install dependencies, and run uvicorn src.main:app. Then execute the sample client with python client/client.py.
It serves as a learning example showing how to mount a Model Context Protocol server on top of a FastAPI application, with a matching client that communicates using the MCP client library.
The server can run inside Docker or directly with Python. The client requires the packages listed in `requirements.txt`.
The MCP server is mounted as a sub‑application on the FastAPI server, currently limited to the root path `/` due to a known issue in the MCP Python SDK.


OpenMark is a remote MCP server available at https://openmark.ai. Benchmark your own prompt on 100+ models with real API calls.
Query your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up
CronWatch records every run of your scheduled jobs in your own database, and speaks up when one is missed, fails, gets stuck, runs slow or costs too much. CronWatch is free and open-source.

Catch intent conflicts before code conflicts. The open-source coordination protocol for coding agents, built above Git.
Comments