Build your own MCP server with FastMCP
Notebook· 05.04· 150–180 min· Lesson 43 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Build a FastMCP server with tools, a resource template and a prompt.
- Design tools a model can use well: clear names and docstrings, typed arguments, annotations, small structured results, helpful errors.
- Test a server in-memory (like a unit test), then from a LangChain agent.
- Run it as a process (stdio and Streamable HTTP) and connect it to an IDE (VS Code / Cursor) on Windows.
- Read the course's
notes_server.pyand explain its design choices.
Before you start
Lessons 05.02 and 05.03.
