E2B
SDK / ToolOpen-source secure sandboxes where AI agents run code — the de facto execution layer for agent apps.
- sandbox
- code-execution
- sdk
- agents
Official Python SDK for building MCP servers and clients.
Official Python SDK for building MCP servers and clients. Maintained by the modelcontextprotocol organisation; supports asyncio, FastMCP-style decorators, and Streamable HTTP transport.
The canonical way to write an MCP server in Python on the official implementation (FastMCP the framework is a friendly layer on the same protocol). Also the client SDK for embedding MCP in Python agents — pair with claude-agent-sdk-python when you need the full agent loop.
pip install "mcp[cli]"
# or
uv add "mcp[cli]"
Minimal server (2.x):
from mcp.server import MCPServer
mcp = MCPServer("Demo")
@mcp.tool()
def add(a: int, b: int) -> int:
return a + b2.x renamed APIs relative to 1.x (FastMCP import became MCPServer) — pin mcp<2 until you migrate; the v1.x branch keeps getting security patches. stdio needs no extra setup; HTTP transports and the dev inspector want the [cli] extra.
Repository
modelcontextprotocol/python-sdkCharted
Open-source secure sandboxes where AI agents run code — the de facto execution layer for agent apps.
Pythonic framework for building MCP servers — decorators, type hints, and zero boilerplate.
Anthropic's official TypeScript SDK for building agentic applications.