MCP Server Boilerplate
A basic Model Context Protocol (MCP) server implementation that can be used as a starting point for building MCP-compatible applications.
Features
- Basic MCP server setup with TypeScript
- Example function implementation
- Graceful shutdown handling
- Development and production build configurations
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
Installation
npm install
Development
To run the server in development mode with hot-reload:
npm run dev
Building for Production
To build the project:
npm run build
To start the production server:
npm start
Project Structure
├── src/
│ └── index.ts # Main server implementation
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Adding New MCP Functions
To add new functions to the server:
- Define a new function schema using Zod
- Create a function implementation following the MCPFunction interface
- Add the function to the server configuration
Example:
const myNewFunction: MCPFunction = {
name: 'my_new_function',
description: 'Description of what the function does',
parameters: z.object({
// Define your parameters here
}),
handler: async (params) => {
// Implement your function logic here
return {
// Return your response here
};
}
};
License
ISC
Echo Map
by ns-personal
194
Project Details
- ns-personal/echo-map
- Last Updated: 3/27/2025
Recomended MCP Servers
testui
LlamaCloud Index Server
BMI Calculator
WordPress Server
Stripe Agent Toolkit
Python and TypeScript library for integrating the Stripe API into agentic workflows
Seam
获取斗鱼,虎牙,哔哩哔哩,抖音,网易CC,快手,花椒,映客 等直播平台的真实流媒体地址(直播源),可在mpv,PotPlayer、flv.js等播放器中播放。将针对性推出不同侧重点的 cli, gui, server 程序
Azure CLI MCP Server
Talk with Azure using MCP
FreeAgent Server
Smart EHR Server
Connect to an EHR and make clinical data available via MCP
Confluence Server
Dev Nico96 MCP Server
About me
ShipStation API MCP Server