Tag

#streamable http

1 post 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
#streamable http · AgentNotebook