{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "modelcontextprotocol-typescript-sdk--call-mcp-servers-from-your-app-with-the-typescript-sdk",
 "repo": "modelcontextprotocol/typescript-sdk",
 "repo_url": "https://github.com/modelcontextprotocol/typescript-sdk",
 "repo_slug": "modelcontextprotocol-typescript-sdk",
 "title": "Call existing MCP servers from your own app",
 "page_title": "How to call existing MCP servers from your own app with TypeScript SDK",
 "summary": "Use the client package to connect to an MCP server, list its tools and call them from TypeScript code.",
 "who": "A developer building an agent or app that should reuse community MCP servers.",
 "problem": "Writing a custom integration for every service is slow when an MCP server already exists.",
 "outcome": "A TypeScript client that discovers and calls the tools of any MCP server.",
 "steps": [
  "Install the client package with `npm install @modelcontextprotocol/client`, or `bun 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"
 ],
 "agent_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>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "This README covers the v2 packages; the v1 legacy docs and fixes live on a separate branch.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/modelcontextprotocol-typescript-sdk/call-mcp-servers-from-your-app-with-the-typescript-sdk/",
 "md": "https://dedupedai.com/use-cases/modelcontextprotocol-typescript-sdk/call-mcp-servers-from-your-app-with-the-typescript-sdk/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/modelcontextprotocol-typescript-sdk--call-mcp-servers-from-your-app-with-the-typescript-sdk.json",
 "api_version": "v1"
}
