typescript-sdk

This TypeScript SDK implements the Model Context Protocol, enabling developers to build MCP clients and servers that expose resources, prompts, and tools for LLM context management. It supports standard transports

5,772
372

MCP TypeScript SDK

This TypeScript SDK implements the Model Context Protocol (MCP), enabling standardized context provision for LLMs. It facilitates building MCP clients and servers, handling protocol messages, and utilizing transports like stdio and SSE.

Core features:

  • MCP Servers: Expose resources (data), tools (functionality), and prompts (interaction patterns) to LLM applications.
  • MCP Clients: Connect to any MCP server.
  • Transports: Support for stdio (command-line tools) and SSE (remote servers).

Key Concepts:

  • Resources: Expose data to LLMs, similar to GET endpoints.
  • Tools: Enable LLMs to perform actions, like POST endpoints.
  • Prompts: Reusable templates for LLM interactions.

The SDK offers both high-level (McpServer, Client) and low-level (Server) interfaces. Examples include an Echo Server and a SQLite Explorer. The MCP Inspector aids in testing and debugging. This project is MIT licensed.

Repository

MO
modelcontextprotocol

modelcontextprotocol/typescript-sdk

Created

September 24, 2024

Updated

March 28, 2025

Language

TypeScript

Category

Developer Tools