MCP TypeScript SDK
Build typed MCP servers and clients for JavaScript applications.
Developer workflow · Documentation reviewed 2026-11-10. Not independently tested.
When it helps
Implementing custom MCP integrations in Node.js and supported web runtimes.
What to consider
Package structure and APIs differ across major versions. Follow the migration guide and the documentation for the version you deploy.
Getting started
Choose the current SDK release, follow the first-server guide, and test a local tool before exposing HTTP access.
Access & costs
- Runs
- Local
- External account
- Not required
- API key
- Not required
- Costs
- Your hardware / hosting
Local SDK development needs no external account. Downstream APIs and hosting can have their own costs.
- Supported JavaScript runtime and package manager
MCP connection
- Documented transports
- Standard input/output (stdio), Streamable HTTP
- Documented clients
- Check your client and server version
What it can access or do
- Implement MCP server tools and resources
- Create clients with transport and authentication helpers
The SDK supplies protocol building blocks; application authorization and safe tool behavior remain your responsibility.
Documentation reviewed, not connection-tested. Model calls made by your assistant can incur separate charges.
Repository evidence
Stars: 13,807 · License: Check repository terms
Last code push: 2026-11-19
Statistics retrieved: 2026-11-23T00:42:59+00:00
Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.
Adding model calls?
Plan the tokens, retries, and fallback costs before connecting your tools.