python-sdk

Python SDK for building MCP servers and clients. It helps apps expose tools and resources to LLM systems through a standard protocol.

Share on XLicense: MIT

Overview

This project is the official Python SDK for Model Context Protocol (MCP). It gives developers a standard way to build MCP servers that expose tools, resources, and prompts, and MCP clients that connect to those services. The SDK supports stdio, Streamable HTTP, and SSE transports, and is designed for Python 3.10+ projects that need to integrate LLM applications with external data and functionality in a consistent way.

Key features

  • Build MCP servers that expose tools, resources, and prompts
  • Build MCP clients that connect to MCP servers
  • Use stdio, Streamable HTTP, and SSE transports
  • Work with Python 3.10+ and the mcp CLI for local development

Best for

Developers building Python integrations for LLM applications and MCP-compatible services. It is a fit when you need a standard server/client setup without writing protocol handling yourself.

Upstream
modelcontextprotocol/python-sdk
Fork on GitHub
Guo-astro/python-sdk
Upstream stars
24k
Category
AI agents and LLM tools
License
MIT
Forked
2026-10-03
Sync status
In syncLast synced 2026-10-05