MCP.so
ログイン

MCP Server Template

@seepine

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

seepine

MCP Server Template について

Quick create mcp server that support stdio/sse/streamableHttp

MCP Server Template の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-template-seepine": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp-server-template",
        "."
      ]
    }
  }
}

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

よくある質問

1

What transport modes does this template support?

It supports stdio, SSE, and streamable HTTP (streamableHttp) modes.

2

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.

3

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).

4

Which transport is recommended for local development debugging?

SSE mode is recommended because it supports automatic reconnection, which improves the local development experience.

コメント

「開発者ツール」の他のコンテンツ