Tag

#model context protocol

3 posts tagged.

AI agents

Remote MCP Server in Python (2026): Serve Tools over Streamable HTTP

A runnable 2026 tutorial for turning a local Python MCP server into a remote one over Streamable HTTP. Serve tools, prove the endpoint with curl and MCP Inspector, switch on the DNS-rebinding protection that ships off by default, add a bearer token, then connect a client. Covers the Mcp-Session-Id requirement and the host and port arguments that moved off the constructor between SDK majors.

14 min read503
AI agents

How to Build an MCP Server in Python (2026 Tutorial)

A runnable 2026 tutorial: build a write-capable MCP server in Python with the official MCP SDK. Add tools with @mcp.tool(), back them with SQLite, test in the Inspector, and connect it to Claude for Desktop. Includes the 1.x and 2.x import difference and how to check which you have.

11 min read306