I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

mcp-server-template
Minimal typescript template to build an mcp server
3 years
Works with Finder
1
Github Watches
5
Github Forks
9
Github Stars
MCP Server Template 🛠️
A starter template for building your own Model Context Protocol (MCP) server. This template provides the basic structure and setup needed to create custom MCPs that can be used with Cursor or Claude Desktop.
Features
- Basic MCP server setup with TypeScript
- Sample tool implementation
- Ready-to-use project structure
- Built with @modelcontextprotocol/sdk
Project Structure
mcp-server-template/
├── index.ts # Main server implementation
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── build/ # Compiled JavaScript output
Getting Started
- Clone this template:
git clone [your-repo-url] my-mcp-server
cd my-mcp-server
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
This will generate the /build/index.js
file - your compiled MCP server script.
Using with Cursor
- Go to Cursor Settings -> MCP -> Add new MCP server
- Configure your MCP:
- Name: [choose your own name]
- Type: command
- Command:
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js
Using with Claude Desktop
Add the following MCP config to your Claude Desktop configuration:
{
"mcpServers": {
"your-mcp-name": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js"]
}
}
}
Development
The template includes a sample tool implementation in index.ts
. To create your own MCP:
- Modify the server configuration in
index.ts
:
const server = new McpServer({
name: "your-mcp-name",
version: "0.0.1",
});
- Define your custom tools using the
server.tool()
method:
server.tool(
"your-tool-name",
"Your tool description",
{
// Define your tool's parameters using Zod schema
parameter: z.string().describe("Parameter description"),
},
async ({ parameter }) => {
// Implement your tool's logic here
return {
content: [
{
type: "text",
text: "Your tool's response",
},
],
};
}
);
- Build and test your implementation:
npm run build
Contributing
Feel free to submit issues and enhancement requests!
License
MIT
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.
Reviews

user_x6VlJnSI
The mcp-server-template by jatinsandilya is an incredible resource for developers seeking a robust and efficient server template. With its well-structured code and comprehensive documentation, it significantly simplifies the server setup process. I highly recommend checking it out at https://github.com/jatinsandilya/mcp-server-template. This template has become indispensable for my projects, and I appreciate the thoughtfulness and expertise that went into its creation.