What do you want to do?
3 use cases
-
Build your first MCP tool server in TypeScript
Expose a function as an MCP tool over stdio so Claude Code, Cursor or any MCP client can call it.
- REPO
modelcontextprotocol/typescript-sdk - Claude Code
- Codex
- Cursor
- Gemini CLI
- Software and DevOps
- Intermediate
View prompt
Using modelcontextprotocol/typescript-sdk, install it with `npm install @modelcontextprotocol/server` and build a stdio MCP server that exposes <my function> as a tool with registerTool and a zod inputSchema, following the greet example.
- REPO
-
Serve MCP tools over HTTP from an Express app
Add the Express middleware package so an existing web service can offer MCP tools over the Streamable HTTP transport.
- REPO
modelcontextprotocol/typescript-sdk - Claude Code
- Codex
- Cursor
- Gemini CLI
- Software and DevOps
- Advanced
View prompt
With modelcontextprotocol/typescript-sdk, add MCP to my Express service <repo path>: run `npm install @modelcontextprotocol/express express`, register <my tools> on an McpServer and expose it over Streamable HTTP.
- REPO
-
Call existing MCP servers from your own app
Use the client package to connect to an MCP server, list its tools and call them from TypeScript code.
- REPO
modelcontextprotocol/typescript-sdk - Claude Code
- Codex
- Cursor
- Gemini CLI
- Software and DevOps
- Intermediate
View prompt
Using modelcontextprotocol/typescript-sdk, install `npm install @modelcontextprotocol/client` and write a small script that connects to <my MCP server>, lists its tools and calls <tool name>.
- REPO
Quick start with TypeScript SDK
- Check you have what it needs: Node.js with npm, or Bun or Deno as the README shows; The server package from `npm install @modelcontextprotocol/server`, or the client package from `npm install @modelcontextprotocol/client`; zod for tool input schemas, as in the README example.
- Open modelcontextprotocol/typescript-sdk on GitHub and read the README and license.
- Install the server package with
npm install @modelcontextprotocol/server - Create an McpServer with a name and version, as in the README Getting Started example
- Register a tool with server.registerTool, giving it a description and a zod inputSchema, like the greet example
- Connect a StdioServerTransport with server.connect and add the server to your MCP client
These steps come from our top use case, Build your first MCP tool server in TypeScript, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for modelcontextprotocol/typescript-sdk
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forTypeScript and Node.js developers who want to give AI agents their own tools, or call MCP servers from their own apps.
- Why it is hot14k stars, talked about in 2 AI sources we track
- LanguageTypeScript
- Sourcegithub.com/modelcontextprotocol/typescript-sdk ยท Back to Hot repos
Requirements
- Node.js with npm, or Bun or Deno as the README shows
- The server package from `npm install @modelcontextprotocol/server`, or the client package from `npm install @modelcontextprotocol/client`
- zod for tool input schemas, as in the README example
Add this badge to your README
Maintain TypeScript SDK? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/modelcontextprotocol-typescript-sdk/?utm_source=github&utm_medium=badge&utm_campaign=modelcontextprotocol-typescript-sdk)
HTML
<a href="https://dedupedai.com/use-cases/modelcontextprotocol-typescript-sdk/?utm_source=github&utm_medium=badge&utm_campaign=modelcontextprotocol-typescript-sdk"><img src="https://dedupedai.com/badge/modelcontextprotocol/typescript-sdk.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about TypeScript SDK
What is TypeScript SDK?
The official TypeScript SDK for Model Context Protocol servers and clients. It ships separate server and client packages, plus thin optional middleware adapters for Node.js HTTP, Express, Fastify and Hono, so you can expose tools to AI agents or connect to existing MCP servers from TypeScript. It is an open-source project on GitHub: https://github.com/modelcontextprotocol/typescript-sdk.
How do I use TypeScript SDK?
Install the server package with npm install @modelcontextprotocol/server; then create an McpServer with a name and version, as in the README Getting Started example; register a tool with server.registerTool, giving it a description and a zod inputSchema, like the greet example. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is TypeScript SDK for?
TypeScript and Node.js developers who want to give AI agents their own tools, or call MCP servers from their own apps.
What can I do with TypeScript SDK?
3 use cases so far, for example: Build your first MCP tool server in TypeScript; Serve MCP tools over HTTP from an Express app; Call existing MCP servers from your own app. Each has steps and a copy-paste agent prompt.
What do I need to run TypeScript SDK?
Node.js with npm, or Bun or Deno as the README shows; The server package from `npm install @modelcontextprotocol/server`, or the client package from `npm install @modelcontextprotocol/client`; zod for tool input schemas, as in the README example.
What are alternatives to TypeScript SDK?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is TypeScript SDK safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.