Gen-AI Developer Classroom notes 16/Dec/2025

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] and fastmcp
  • fastmcp makes it convinient to directly containerize mcp
  • to run streamable http on fastapi
    • we need to learn about session manager and lifecycle

By continuous learner

enthusiastic technology learner

Leave a comment