Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Modelcontextprotocol Server

MCP server by modelcontextprotocol Verified · npm:@modelcontextprotocol

Provides the server package for the Model Context Protocol TypeScript SDK, used to build MCP servers. It is aimed at developers who want to expose tools, resources and prompts to AI assistants from TypeScript.

  • Score 88
  • 14k stars
  • 38M a week
  • NOASSERTION
  • Updated

Install Modelcontextprotocol Server

Built from the published package, never by AI.

claude mcp add modelcontextprotocol-server -- npx -y @modelcontextprotocol/server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Modelcontextprotocol Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the modelcontextprotocol-server block.

About

The Model Context Protocol TypeScript SDK includes the @modelcontextprotocol/server package for building MCP servers. The source says it supports tools, resources and prompts, Streamable HTTP and stdio transports, and auth helpers. Tool and prompt schemas use Standard Schema, so libraries such as Zod v4, Valibot or ArkType can be used.

A minimal example registers a greet tool with McpServer and connects it over stdio with StdioServerTransport. The SDK runs on Node.js, Bun and Deno. It is intended for developers who want to build MCP servers or clients, and the repository also includes optional middleware packages for Express, Fastify, Hono and Node.js HTTP.

Written from the project's README and checked against it.

What you need

  • Node.js
  • Bun
  • Deno

Try asking

  • Build an MCP server in TypeScript that exposes a greet tool over stdio
  • Add Zod v4 input schemas to my MCP server tools
  • Serve my TypeScript MCP server over Streamable HTTP with Express

Good to know

  • The main branch is v2 of the SDK. v1 lives on the v1.x branch.
  • v1.x receives bug fixes and security updates for at least six months after the v2 release on 2026-07-27.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Building MCP servers in TypeScript
  • Building MCP clients in TypeScript
  • Serving MCP over stdio or HTTP

Alternatives to Modelcontextprotocol Server

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Modelcontextprotocol Server: common questions

Which runtimes does the TypeScript MCP SDK support?

The source says the SDK runs on Node.js, Bun and Deno. The server and client packages are published to npm.

Can I use Zod with this SDK?

Yes. Tool and prompt schemas use Standard Schema, and the source says you can bring Zod v4, Valibot, ArkType or any compatible library.

Is the v1 version of the SDK still maintained?

The source says v1.x continues to receive bug fixes and security updates for at least six months after the v2 release on 2026-07-27. It is on the v1.x branch.

How do I install Modelcontextprotocol Server?

In Claude Code run claude mcp add modelcontextprotocol-server -- npx -y @modelcontextprotocol/server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Modelcontextprotocol Server the official server?

Modelcontextprotocol Server is published by npm:@modelcontextprotocol from its verified domain in the official MCP Registry.

Is Modelcontextprotocol Server free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is Modelcontextprotocol Server safe to use?

It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Modelcontextprotocol Server?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Modelcontextprotocol Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Modelcontextprotocol Server Install

Add to stack

Loading.