# typescript-sdk

> MCP Server

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

## Overview

- **Category:** Developer Tools
- **Language:** TypeScript
- **Stars:** 13169
- **Forks:** 372
- **Owner:** modelcontextprotocol
- **GitHub:** https://github.com/modelcontextprotocol/typescript-sdk
- **Homepage:** https://modelcontextprotocol.io
- **Created:** 2024-09-24T20:45:31+00:00
- **Updated:** 2025-03-28T23:58:07+00:00
- **Source:** https://model-context-protocol.com/servers/typescript-sdk-model-context-protocol-llm

## Setup

## Setup

```bash
npm install @modelcontextprotocol/sdk
```

## Tools

## Available Tools

1.  **MCP Server** (Core interface to the MCP protocol handling connection management, protocol compliance, and message routing).
2.  **Resources** (Expose data to LLMs, similar to GET endpoints in a REST API).
3.  **Tools** (Let LLMs take actions through your server, expected to perform computation and have side effects).
4.  **Prompts** (Reusable templates that help LLMs interact with your server effectively).
5.  **StdioServerTransport** (Allows MCP servers to communicate via standard input/output streams).
6.  **SSEServerTransport** (Enables MCP servers to communicate over HTTP using Server-Sent Events).
7.  **Low-Level Server** (Provides more control over the MCP server implementation).
8.  **Client** (High-level client interface for interacting with MCP servers).

