MCP TypeScript SDK
Official TypeScript SDK for building MCP servers and clients.
Install
npm install @modelcontextprotocol/sdk
Commands change between releases — if something fails, check the official README.
About MCP TypeScript SDK
The official TypeScript implementation of MCP, with server and client APIs and support for stdio and Streamable HTTP transports.
FAQ
What is MCP TypeScript SDK?
Official TypeScript SDK for building MCP servers and clients.
How do I install MCP TypeScript SDK?
Run: npm install @modelcontextprotocol/sdk. Full steps are in the Install section on this page.
Which agents does MCP TypeScript SDK work with?
Claude Code, Claude apps, Cursor, VS Code & Copilot, OpenAI Codex, Gemini CLI, Windsurf.
Is MCP TypeScript SDK free?
Yes. It is open source (MIT).
Alternatives to MCP TypeScript SDK?
Agent Skills Specification, Model Context Protocol, skill-creator, Skills CLI (skills.sh), Anthropic Example Skills.