# Model Context Protocol TypeScript SDK The official TypeScript SDK for building Model Context Protocol servers and clients. It provides a repository-organized foundation for MCP development, with separate client, server, core, middleware, documentation, and example areas. - Findings24: - Website: - Pricing: Freemium - Categories: AI Agent Infrastructure, AI SDKs, MCP Tools ## What is Model Context Protocol TypeScript SDK? The Model Context Protocol TypeScript SDK is the official TypeScript SDK for MCP servers and clients. Hosted in a public GitHub repository, it provides the project structure and source packages used by developers implementing MCP software, with separate areas for client, server, shared core, middleware, codemod, documentation, examples, and tests. Its core purpose is to give TypeScript teams an official starting point for building MCP clients and servers. The repository includes supporting documentation and examples, but the supplied source does not provide enough detail to state a complete list of transports, integrations, setup commands, or protocol capabilities. ## What can Model Context Protocol TypeScript SDK do? ### Client and server packages The package workspace contains dedicated \`client\` and \`server\` areas for developers implementing both sides of an MCP connection. ### Shared protocol foundation \`core\` and \`core-internal\` packages provide distinct locations for shared SDK foundations and internal implementation code. ### Middleware package A dedicated \`middleware\` package is included for organizing middleware-related SDK code rather than mixing it into the client or server packages. ### Migration and legacy support areas The repository includes a \`codemod\` package and a \`server-legacy\` package, indicating separate locations for code transformation work and legacy server support. ### Documentation and examples Dedicated \`docs\` and \`examples\` directories give users project guidance and reference implementations to consult while evaluating or building an MCP project. ### Repository-level testing and contribution workflow The repository includes a \`test\` workspace plus contribution, security, versioning, roadmap, and dependency-policy documentation for working with the project itself. ## Use Cases ### Build an MCP server in TypeScript A TypeScript developer can use the official server package as the starting point for an application that exposes MCP functionality. ### Create an MCP client An application that needs to act as an MCP client can work from the repository’s dedicated client package instead of maintaining an unrelated client implementation. ### Study official implementation patterns Developers evaluating MCP can use the project’s documentation and examples directories to inspect the structure and approach used by the official SDK. ### Maintain or migrate an existing server Teams working with older server code can investigate the separate legacy-server and codemod areas when planning maintenance or migration work. ## Frequently Asked Questions ### What is the Model Context Protocol TypeScript SDK? It is the official TypeScript SDK for Model Context Protocol servers and clients, maintained in the public \`modelcontextprotocol/typescript-sdk\` GitHub repository. ### Is this SDK for building clients, servers, or both? The repository is organized for both use cases, with separate \`client\` and \`server\` packages. ### Where can I find examples and documentation? The repository contains dedicated \`docs\` and \`examples\` directories. The supplied evidence does not include their detailed contents, so consult the current files for setup and implementation guidance. ### Does the available source document all supported transports and integrations? No. The supplied repository listing confirms the SDK’s main package areas but does not provide a complete transport or integration inventory. Those details should be checked in the current SDK documentation. ## Quick Facts - **Category**: Developer Tool - **Primary language**: TypeScript - **Protocol**: Model Context Protocol (MCP) - **Primary users**: Developers building MCP clients and servers - **Source**: Public GitHub repository at github.com/modelcontextprotocol/typescript-sdk - **Repository resources**: Packages, documentation, examples, and tests