modelcontextprotocol/typescript-sdk
Official TypeScript SDK for building and interacting with Model Context Protocol (MCP) servers and clients, enabling standardized context provision for large language models.
This repository publishes the @cyanheads/mcp-ts-core framework, an infrastructure layer for MCP servers written in TypeScript that is meant to be installed as a dependency rather than forked. A server is declared through a tool helper that takes a description, tool annotations, and Zod schemas for input and output. Two contracts sit at the centre of the design. The enrichment block carries context an agent reasons with, such as the query as the server parsed it, the true match count before a limit, or a notice explaining an empty result; the framework merges enrichment into structuredContent and mirrors it into the content array, so clients that read only one of the two surfaces still receive it. The typed errors array declares each failure reason with a JSON-RPC code, the condition that triggers it, whether it is retryable, and recovery guidance, and the handler raises one through the context. Both contracts are published in tools list responses, letting clients preview success and failure shapes, and a linter cross-checks the declarations against the handler body. An optional format function renders markdown for content-only clients, guarded by a format-parity linter that verifies every output field is rendered. Resources are declared the same way against URI templates with typed parameters. The createApp entry point handles config parsing, logger initialisation, transport startup, signal handlers and graceful shutdown, and logs every tool call with duration, payload sizes and request correlation. A bunx init command scaffolds a project containing CLAUDE.md and AGENTS.md, plugin metadata for Codex and Claude Code, Agent Skills covering setup, server design, testing, a security pass, release and maintenance, and a src tree for domain code. Licensed under Apache 2.0 and tracking a recent MCP specification revision.
https://github.com/cyanheads/mcp-ts-template
Official TypeScript SDK for building and interacting with Model Context Protocol (MCP) servers and clients, enabling standardized context provision for large language models.
Manifest is an open-source components library built on shadcn/ui for creating customizable and production-ready ChatGPT and MCP applications efficiently.
mcp-ui is a TypeScript SDK that enhances the Model Context Protocol by enabling rich, interactive UI components through server-generated HtmlResourceBlocks and client-side React rendering, facilitating dynamic AI interactions.
FastMCP is a TypeScript framework that simplifies building Model Context Protocol (MCP) servers by handling client sessions, multiple content types, real-time updates, and flexible tool definitions using standard schema validation libraries.
use-mcp is a lightweight React hook that simplifies connecting to Model Context Protocol (MCP) servers by managing authentication, connection states, and tool invocation for AI applications.
MCP Framework is a TypeScript-based framework that simplifies building Model Context Protocol (MCP) servers with features like automatic discovery, multiple transport support, built-in authentication, and comprehensive validation tools.
WebMCP is a protocol and toolkit enabling websites to act as MCP servers, sharing tools and resources securely with client-side large language models to enhance user interactions.
A NestJS module that enables effortless creation of Model Context Protocol (MCP) servers to expose AI tools, resources, and prompts with support for multiple transport types and authentication.