Running mcp in docker container
- Install Docker Desktop.
- Refer Here
- Rather than mcp[cli] package we have used FastMcp directly
- Further instructions are available in Refer Here
Running mcp in FastAPI
- Refer Here for fastapi docs
- To an existing project add
uv add fastapi[standard] - To run mcp on fastapi
- we need to mount
- we need to manage lifecycle
- To be continued
Summary
- mcp servers can be created using two packages
mcp[cli]andfastmcp - fastmcp makes it convinient to directly containerize mcp
- to run streamable http on fastapi
- we need to learn about session manager and lifecycle
