typescript-sdk/packages/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-30 21:18:42 +01:00
..
src docs: rebuild the v2 documentation around a task-based page tree (#2397) 2026-06-30 21:18:42 +01:00
test/server Serve input_required handlers on 2025-era connections via a legacy fulfilment shim (#2381) 2026-06-29 16:43:43 +01:00
CHANGELOG.md Implement MCP 2026-07-28 (#2286) 2026-06-26 14:01:10 +01:00
eslint.config.mjs v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354) 2026-06-25 19:42:44 +01:00
package.json fix(packaging): inline the fast-uri URIComponent type; drop stale typesVersions (#2394) 2026-06-30 15:47:59 +01:00
README.md docs: rebuild the v2 documentation around a task-based page tree (#2397) 2026-06-30 21:18:42 +01:00
tsconfig.json v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354) 2026-06-25 19:42:44 +01:00
tsdown.config.ts fix(packaging): inline the fast-uri URIComponent type; drop stale typesVersions (#2394) 2026-06-30 15:47:59 +01:00
typedoc.json Add API documentation with GitHub Pages deployment (#1109) 2026-01-20 17:22:24 +02:00
vitest.config.js [v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279) 2025-12-19 14:19:02 +01:00

@modelcontextprotocol/server

The MCP (Model Context Protocol) TypeScript server SDK. Build MCP servers that expose tools, resources, and prompts.

Warning

This is an alpha release. Expect breaking changes until v2 stabilizes. We're publishing early to gather feedback — please try it and open issues — but we can't guarantee API stability yet. We'll aim to minimize disruption between alphas.

Note

This is v2 of the MCP TypeScript SDK. It replaces the monolithic @modelcontextprotocol/sdk package from v1. See the migration guide if you're coming from v1.

Install

npm install @modelcontextprotocol/server@alpha

TypeScript ≥6.0 no longer auto-includes @types/* — add "types": ["node"] to your tsconfig.json compilerOptions (the published .d.mts references Buffer).

Optional framework adapters: @modelcontextprotocol/express, @modelcontextprotocol/hono, @modelcontextprotocol/node.

Documentation