Learn how MCP works and build servers you can test and ship.
What you'll learn
- Explain what MCP is, and name the host, client and server.
- Build a one-tool MCP server and call it from a Python client.
- Return structured data, and report errors that the model can act on.
- Expose data as resources and templates, and offer a reusable prompt.
- Write a pytest test that calls your server without starting a process.
- Run a server over standard input and output and log without breaking the protocol.
- Serve tools over HTTP, and call them with curl.
- Open a database once at startup, and share it with every tool.
- Make a tool ask the user for a yes before it deletes anything.
- Protect a server with bearer tokens, and read its 401 response.
- Add cache hints, a health route and a version to a server.
- Apply four habits that keep an MCP server safe.
--- Pollinayte is not affiliated with or endorsed by Anthropic, the Model Context Protocol project, or the maintainers of the Python SDK. Project and product names are used only to describe compatibility.