
mcp server typescript template
MCP Server Template using @modelcontextprotocol Typescript SDK
Repository Info
About This Server
MCP Server Template using @modelcontextprotocol Typescript SDK
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
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 install
Creating New Tools
Tools are defined in the src/tools directory. Each tool should:
- Define input/output schemas using Zod
- Implement the MCP protocol interface
- Include comprehensive tests
Tool Structure
src/
└── calculator/
├── tools/
│ ├── index.ts
│ ├── add.ts
│ └── subtract.ts
├── index.ts
├── prompt.ts
└── schema.ts
Testing
Run the test suite:
npm run test
Quick Start
Clone the repository
git clone https://github.com/zubhav/mcp-server-typescript-templateInstall dependencies
cd mcp-server-typescript-template
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.