MCP Server Template using @modelcontextprotocol Typescript SDK
0 stars
TypeScript
Updated Mar 17, 2025
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
bash
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
code
src/
└── calculator/
├── tools/
│ ├── index.ts
│ ├── add.ts
│ └── subtract.ts
├── index.ts
├── prompt.ts
└── schema.tsTesting
Run the test suite:
bash
npm run testSimilar MCP
Based on tags & features
Trending MCP
Most active this week