Who it is forA developer building an agent or app that should reuse community MCP servers.
The problemWriting a custom integration for every service is slow when an MCP server already exists.
The outcomeA TypeScript client that discovers and calls the tools of any MCP server.
What you need first
- 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
Steps
- Install the client package with
npm install @modelcontextprotocol/client, orbun add @modelcontextprotocol/client - Follow the README's Build your first client tutorial to connect to a server
- List the server's tools, then call the ones your app needs
- Use the runnable client and server pairs in examples/README.md as references
Prompt for your agent
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>.
Caveat. This README covers the v2 packages; the v1 legacy docs and fixes live on a separate branch.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for modelcontextprotocol/typescript-sdk and "Call existing MCP servers from your own app"
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 freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer