mcp-server-typescript-template
MCP Server Template using @modelcontextprotocol Typescript SDK
Documentation
MCP Tool Template
A template repository for building Model Context Protocol (MCP) tools.
Overview
This template provides a foundation for creating MCP-compatible tools that can be used with AI agents. Each tool follows the Model Context Protocol specification for standardized AI tool interactions.
Installation
npm installCreating New Tools
Tools are defined in the `src/tools` directory. Each tool should:
1. Define input/output schemas using Zod
2. Implement the MCP protocol interface
3. Include comprehensive tests
Tool Structure
src/
└── calculator/
├── tools/
│ ├── index.ts
│ ├── add.ts
│ └── subtract.ts
├── index.ts
├── prompt.ts
└── schema.tsTesting
Run the test suite:
npm run testFrequently asked questions
What is mcp-server-typescript-template?
mcp-server-typescript-template is MCP Server Template using @modelcontextprotocol Typescript SDK
How do I install mcp-server-typescript-template?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-server-typescript-template open source?
Yes — it is hosted on GitHub at https://github.com/zubhav/mcp-server-typescript-template.
Related MCP tools
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic TypeScript-based implementation.
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices) TypeScript-based implementation.
Https://github.com/user-attachments/assets/364b6705-14d4-4e6d-bea7-fb9f12664fab for the Model Context Protocol. Enhance AI assistants with powerful integrations
MCP server that provides tools and resources for interacting with n8n API TypeScript-based implementation. Trusted by 1400+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP