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 TypeScript SDK for building MCP servers and clients.
Official TypeScript SDK for building MCP servers and clients. Maintained by the modelcontextprotocol organisation; the canonical implementation alongside the Python SDK.
The starting point for writing your own MCP server in TypeScript, or a client that embeds MCP support in an app. Pair with the MCP Inspector for testing during development.
npm install @modelcontextprotocol/sdk
# Node 18+ required. Minimal server:
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new McpServer({ name: "my-server", version: "1.0.0" });
// register tools, resources, prompts...
await server.connect(new StdioServerTransport());Protocol versioning moves fast — pin the SDK version and check the spec changelog when clients fail to handshake. ESM-first: CommonJS setups hit import-path gotchas. The high-level API covers common cases; exotic transports push you to the low-level layer quickly.
Repository
modelcontextprotocol/typescript-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.