@modelcontextprotocol/server
MCP TypeScript SDK v2 Server by Model Context Protocol
Model Context Protocol implementation for TypeScript - Server package
npm install @modelcontextprotocol/server@2.4.0MCP TypeScript SDK v2 Server (@modelcontextprotocol/server) is currently at v2.4.0 on NPM (published 2026-10-23), with a 90-day stability score of 78/100 (B) and HIGH schema drift risk across 5 releases in the past 90 days. v2 split of @modelcontextprotocol/sdk. 2.4.0 rejects x-mcp-header on number parameters (error -32020, per the 2026-07-28 spec), stops wrapping outputSchema results from z.object().meta({ id }) in { result } on 2025-11-25 connections, and its bundled Ajv rejects $id or $ref values with an invalid URI scheme. Production teams should pin npm install @modelcontextprotocol/server@2.4.0 rather than using unpinned @latest tags.
Breaking Changes & Tool Schema Drift Analysis
v2 split of @modelcontextprotocol/sdk. 2.4.0 rejects x-mcp-header on number parameters (error -32020, per the 2026-07-28 spec), stops wrapping outputSchema results from z.object().meta({ id }) in { result } on 2025-11-25 connections, and its bundled Ajv rejects $id or $ref values with an invalid URI scheme.
McpServerregisterTooloutputSchemastructuredContentx-mcp-headerimport { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
// client code read structuredContent.resultimport { McpServer } from "@modelcontextprotocol/server";
// on 2025-11-25 connections read structuredContent directly
// use z.int() for any parameter annotated with x-mcp-headerFrequently Asked Questions: @modelcontextprotocol/server
What is the latest version of @modelcontextprotocol/server on NPM?
As of 2026-10-27, the latest stable version of @modelcontextprotocol/server (MCP TypeScript SDK v2 Server by Model Context Protocol) on NPM is v2.4.0, published on 2026-10-23. It has shipped 5 releases in the last 90 days.
Does @modelcontextprotocol/server v2.4.0 have breaking changes or MCP schema drift risk?
@modelcontextprotocol/server currently carries a HIGH schema drift risk rating with a Stability Score of 78/100 (Grade B). v2 split of @modelcontextprotocol/sdk. 2.4.0 rejects x-mcp-header on number parameters (error -32020, per the 2026-07-28 spec), stops wrapping outputSchema results from z.object().meta({ id }) in { result } on 2025-11-25 connections, and its bundled Ajv rejects $id or $ref values with an invalid URI scheme.
How do I safely pin @modelcontextprotocol/server in production?
Avoid unpinned @latest tags in production agent configs. Pin the exact verified version using `npm install @modelcontextprotocol/server@2.4.0` and monitor McpServer, registerTool, outputSchema, structuredContent, x-mcp-header for parameter or schema changes.
Get Instant Breaking-Change Alerts for @modelcontextprotocol/server
We poll NPM and modelcontextprotocol/typescript-sdk every 30 minutes. Get an email with the exact diff when @modelcontextprotocol/server ships a breaking release beyond v2.4.0.
Recent NPM Releases
Verified release timestamps from live registry metadata.
Related in Agent SDKs
View Hub ->OpenAI Node SDK • Stability B (78)
Anthropic TypeScript SDK • Stability C+ (70)
Model Context Protocol TypeScript SDK • Stability B (78)
MCP TypeScript SDK v2 Client • Stability B (78)
Vercel AI SDK Core • Stability C+ (70)
Vercel AI SDK OpenAI Provider • Stability B (78)