Model Context Protocol (MCP) 1 · Python server
Serve over HTTP
Run the server as a remote endpoint with the streamable HTTP transport instead of stdio.
mcp.run(transport="streamable-http")
Official Model Context Protocol (MCP) 1 documentation
More python server commands
- Install the Python SDK
- Create a Python server with a tool
- Expose a resource
- Expose a prompt template
- Log without breaking stdio
- Test with the dev server
All python server commands · Model Context Protocol (MCP) 1 cheatsheet