{"id":27979364,"url":"https://github.com/kimijl/fastapi-mcp","last_synced_at":"2026-05-11T05:33:22.506Z","repository":{"id":291859282,"uuid":"979018505","full_name":"KimiJL/fastapi-mcp","owner":"KimiJL","description":"Example web app mounting a model context protocol (MCP) server on a FastAPI server","archived":false,"fork":false,"pushed_at":"2025-05-06T21:54:23.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T02:52:24.905Z","etag":null,"topics":["fastapi","mcp","mcp-server","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KimiJL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-06T21:45:04.000Z","updated_at":"2025-05-06T22:17:13.000Z","dependencies_parsed_at":"2025-05-06T22:35:18.799Z","dependency_job_id":"280c2647-9e3b-4c93-b43e-cb09d92c0851","html_url":"https://github.com/KimiJL/fastapi-mcp","commit_stats":null,"previous_names":["kimijl/fastapi-mcp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimiJL%2Ffastapi-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimiJL%2Ffastapi-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimiJL%2Ffastapi-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimiJL%2Ffastapi-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KimiJL","download_url":"https://codeload.github.com/KimiJL/fastapi-mcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252989964,"owners_count":21836667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","mcp","mcp-server","python"],"created_at":"2025-05-08T02:52:30.417Z","updated_at":"2026-05-11T05:33:22.478Z","avatar_url":"https://github.com/KimiJL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nSimple example web app + client showing Model Context Protocol server mounted on an existing fastapi server\n\n[Model Context Protocol](https://github.com/modelcontextprotocol/python-sdk)\n\n[FastAPI Mounting](https://fastapi.tiangolo.com/advanced/sub-applications/)\n\nFiles\n\n./src/main.py -\u003e main fastapi server app\n\n./src/mcp.py -\u003e mcp sub server app logic\n\n./client/client.py -\u003e sample client showing some communication logic using mcp client lib\n\n# Set up\n\n## Using Docker to start server\n\n```bash\ndocker build -t fastapi-mcp .\ndocker run -p 8000:8000 --net=host fastapi-mcp\n```\n\n## Set up python environment \u0026 run client\n\n```\npip install -r requirements.txt\npython client/client.py\n\n# to run server as well without docker\nuvicorn src.main:app\n```\n\n# Known Issues\n\n## MCP server can only be mounted on root '/'\n[GitHub Issue](https://github.com/modelcontextprotocol/python-sdk/issues/585)\n\nLimitations on MCP python sdk that currently only allows for MCP server to work when mounted on root /\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimijl%2Ffastapi-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimijl%2Ffastapi-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimijl%2Ffastapi-mcp/lists"}