MCP.so
ログイン

MCP Server Template (

@bsmi021

基本情報

カテゴリ

開発者ツール

ライセンス

MIT license

トランスポート

stdio

作者

bsmi021

MCP Server Template ( について

This template helps you quickly bootstrap a new Model Context Protocol (MCP) server project based on recommended practices.

MCP Server Template ( の設定

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

{
  "mcpServers": {
    "custom-mcp-template": {
      "command": "npx",
      "args": [
        "create-mcp-server",
        "my-new-mcp-server"
      ]
    }
  }
}

MCP Server Template ( のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is MCP Server Template?

MCP Server Template is a bootstrap tool that helps developers quickly scaffold a new Model Context Protocol (MCP) server project following recommended practices. It generates a ready-to-develop project structure with configuration, service, and tool templates.

How to use MCP Server Template?

Run npx create-mcp-server my-new-mcp-server (or the locally linked version) to create a new project directory. After creation, change into the new directory, run npm install, then use npm run dev to start the development server with auto-reloading.

Key features of MCP Server Template

  • Bootstrap a new MCP server project in one command.
  • Prompts for project details (name, description) during initialization.
  • Predefined project structure (src/config, src/services, src/tools, etc.).
  • Includes TypeScript, ESLint, Prettier, and Husky configuration.
  • Step-by-step guide for adding new tools and services.
  • Development mode with ts-node and nodemon for auto-reloading.

Use cases of MCP Server Template

  • Quickly scaffold a new MCP server for custom integrations.
  • Learn MCP server development by following the structured template.
  • Establish a consistent project baseline for multiple MCP server projects.

よくある質問

1

How do I create a new MCP server using this template?

Run `npx create-mcp-server my-new-mcp-server` in your terminal. You will be prompted for project name and description; the template files are then copied into a new directory.

2

What are the steps after creating the project?

Change to the new directory, run `npm install`, optionally run `npx husky install` for pre-commit hooks, then use `npm run dev` to start developing. Build for production with `npm run build` and start with `npm start`.

3

How do I add a new tool to the generated server?

Define types in `src/types`, implement a service in `src/services`, create tool params and registration in `src/tools`, then register the tool in `src/tools/index.ts`. Update configuration in `src/config/ConfigurationManager.ts` if needed.

4

What configuration is included?

The template includes TypeScript (`tsconfig.json`), ESLint (`.eslintrc.json`), Prettier (`.prettierrc.json`), and Husky for Git hooks. The project structure places configuration logic in `src/config/ConfigurationManager.ts`.

5

Can I use this template without publishing to npm?

Yes. If not published, clone the template directory locally and run `npm link` inside it. Then use `create-mcp-server my-new-mcp-server` from any location.

コメント

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