Mcp Server Template
@seepine
关于 Mcp Server Template
Quick create mcp server that support stdio/sse/streamableHttp
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-template-seepine": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server-template",
"."
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Mcp Server Template?
Mcp Server Template is a template for developing and deploying MCP (Model Context Protocol) servers. It supports stdio, SSE, and streamable HTTP transport modes, and provides guidelines for local development, debugging, packaging, publishing, and Docker deployment.
How to use Mcp Server Template?
Install dependencies with pnpm install, then start the development server with pnpm dev. Debug using MCP Inspector in SSE mode (recommended for auto-reconnect). For production, build with pnpm build, publish to npm with pnpm publish, and configure the MCP client with the appropriate transport type, command/URL, and environment variables or headers. Alternatively, build a Docker image and run the server in HTTP or SSE mode.
Key features of Mcp Server Template
- Supports stdio, SSE, and streamable HTTP transports
- Local development debugging with MCP Inspector and SSE auto-reconnect
- Parameter passing via environment variables (stdio) or request headers (SSE/HTTP)
- Build, publish, and deploy to npm or Docker
- Complete configuration examples for MCP clients
Use cases of Mcp Server Template
- Scaffolding a new MCP server project quickly
- Local development and debugging with automatic reconnection
- Deploying as a stdio tool (via npx) for command-line MCP clients
- Deploying as a Docker container for SSE or HTTP endpoints
FAQ from Mcp Server Template
What transport modes does this template support?
It supports stdio, SSE, and streamable HTTP (streamableHttp) modes.
How do I pass configuration parameters like API keys?
In stdio mode, use the env object in the MCP client configuration; access with process.env. In SSE/streamable HTTP modes, pass parameters via request headers and access them with ctx.get() in the server code.
How can I deploy this server?
You can either package and publish to npm, then run with npx in stdio mode, or build a Docker image and run the container (expose port 3000 for HTTP or 4000 for SSE).
Which transport is recommended for local development debugging?
SSE mode is recommended because it supports automatic reconnection, which improves the local development experience.
开发工具 分类下的更多 MCP 服务器
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
MCP Inspector
modelcontextprotocolVisual testing tool for MCP servers
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Grafana MCP server
grafanaMCP server for Grafana
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
评论