MCP Server Template
@antoniodevivo
关于 MCP Server Template
A lightweight and extensible MCP (Model Context Protocol) server implementation built with Express.js and TypeScript. This template provides a solid foundation for building AI-powered applications that can communicate with MCP-compatible clients through Server-Sent Events (SSE).
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-template-antoniodevivo": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-template",
"."
]
}
}
}工具
5Add a new note to the note store
Update an existing note
Retrieve a specific note
Retrieve all notes from the store
Delete a note from the store
概览
What is MCP Server Template?
A lightweight and extensible Model Context Protocol (MCP) server implementation built with Express.js and TypeScript. It provides a foundation for building AI-powered applications that communicate with MCP-compatible clients through Server-Sent Events (SSE). The template includes a note management system and is intended for developers starting a new MCP server project.
How to use MCP Server Template?
Clone the repository, run npm install, then npm run build and npm start. The server starts on port 3123 by default. Alternatively, build a Docker image with docker build -t mcp-template . and run docker run -p 3123:3123 mcp-template. To test the SSE endpoint, connect to GET /mcp/sse.
Key features of MCP Server Template
- Express.js server with TypeScript support
- Server-Sent Events (SSE) for real-time communication
- Full MCP protocol implementation
- Built-in note management system (CRUD operations)
- Docker support for containerized deployment
- Input validation using Zod
Use cases of MCP Server Template
- Building a custom MCP-compatible AI assistant with note‑taking capabilities
- Prototyping an MCP server that manages structured data (e.g., notes)
- Creating a real‑time MCP endpoint with SSE for client‑server communication
- Using as a starting point for any MCP server project that requires Express.js and TypeScript
FAQ from MCP Server Template
What is MCP Server Template?
MCP Server Template is a lightweight, extensible MCP server implementation built with Express.js and TypeScript, designed for AI‑powered applications that communicate via SSE.
What are the dependencies and runtime requirements?
Node.js 22 or higher and npm are required. Docker is optional for containerized deployment.
Which tools does the server expose?
The server provides five tools: add-note, update-note, get-note, get-all-notes, and delete-note. Each accepts parameters such as noteTitle, noteContent, and noteTags (optional) as specified in the README.
How does input validation work?
All incoming requests are validated at runtime using Zod schemas before processing, ensuring type safety and data integrity.
How can I configure the server?
Environment variables include PORT (default 3123), LOG_LEVEL (default "info"), DOCKER (set to "true" when running in Docker), and DEV (set to "true" for development mode).
开发工具 分类下的更多 MCP 服务器
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
nuxt-mcp / vite-plugin-mcp
antfuMCP server helping models to understand your Vite/Nuxt app better.
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
评论