SDK surface

The official Python SDK lives in the companion repository and exports one public package, zcp.

The conceptual guides and the exact API reference are intentionally split. Use guides for architecture and use the reference page for precise symbols.

Server side

Use FastZCP plus registration decorators to build tools, resources, prompts, completions, and tasks, then expose the runtime via stdio or ASGI.

Client side

Use ZCPClientSession for one session or ZCPSessionGroup to aggregate multiple native sessions into one client-side view.

Main entry points

  • Server: FastZCP, create_asgi_app, run_mcp_stdio_server_sync
  • Client: ZCPClientSession, ZCPSessionGroup
  • Transport helpers: stdio_client, streamable_http_client, websocket_client

Servers, Clients, SDK API.