MCP Server Starter
MCP サーバー スターター
TypeScript を使用して Model Context Protocol (MCP) サーバーを構築するための、本番環境対応のスターター テンプレート。
🚀 クイックスタート
リポジトリをクローンする
依存関係をインストールします:
bun install
Related MCP server: MCP Server Starter
✨ 主な特徴
高速テストと開発のためのBun
リンティングとフォーマットのためのバイオーム
標準バージョンによる自動バージョン管理
クリーンで保守しやすいプロジェクト構造
📂 プロジェクト構造
mcp-starter/
├── src/
│ ├── tools/ # MCP tools implementation
│ ├── utils/ # Shared utilities
│ ├── main.ts # Server entry point
│ └── types.ts # Shared type definitions
├── tests/ # Test files
├── biome.json # Linting configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Project dependencies⚙️ 構成
新しいツールの作成
このプロジェクトには、新しい MCP ツールの作成に役立つスクリプトが含まれています。
bun run scripts/create-tool.ts <tool-name>これにより、次のようになります。
src/tools/<tool-name>の下に新しいツールディレクトリを作成します。以下を含む基本的なツール構造を生成します。
index.ts (メイン実装)
schema.ts (ツールパラメータのJSONスキーマ)
test.ts (テストファイル)
新しいツールをエクスポートするためにツールのインデックスファイルを更新します
例:
bun run scripts/create-tool.ts weather🛠️ 開発
テストを実行:
bun testフォーマットコード:
bun run formatリントコード:
bun run lintプロジェクトのビルド:
bun run build
開発用 MCP サーバーを Claude Desktop に追加するには:
プロジェクトをビルドします。
bun run buildClaude Desktop の設定に追加:
// You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "node", "args": ["/path/to/your/project/dist/main.js", "some_argument"] } } }
📜 バージョン管理
このプロジェクトでは、自動バージョン管理のためにstandard-versionを使用しています。新しいバージョンを作成するには、 bun run releaseを実行してください。
コミットメッセージの形式
feat: 新機能 (マイナーバージョンをアップグレード)fix:バグ修正(パッチバージョンをアップグレード)BREAKING CHANGE: 破壊的変更 (メジャーバージョンを上げる)
📦 npm への公開
npm にログインしていることを確認します。
npm loginプロジェクトをビルドします。
bun run buildパッケージを公開します。
npm publish
新しいバージョンを公開する前に、 bun run releaseを使用してバージョン番号を更新することを忘れないでください。
npmからインストールする(公開後)
Claude Desktop の設定に追加:
// You only need the argument if you need to pass arguments to your server
{
"mcpServers": {
"your-server-name": {
"command": "npx",
"args": ["-y", "your-package-name", "some_argument"]
}
}
}Available Tools
1 toolhello_toolD
Hello tool
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The single tool's purpose is clearly distinct by default, eliminating any risk of misselection.
The tool name 'hello_tool' follows a consistent snake_case pattern, and with only one tool, there is no inconsistency in naming conventions. The naming is straightforward and predictable within this minimal set.
A single tool is generally too few for a server's purpose, as it suggests a very limited or trivial scope that may not support meaningful agent workflows. This is borderline for appropriateness, leaning toward insufficient coverage for typical MCP server use cases.
With only one tool named 'hello_tool', the server's domain is unclear, making it impossible to assess coverage meaningfully. There are likely significant gaps for any inferred purpose, as a single tool cannot provide CRUD/lifecycle operations or a coherent workflow, leading to severe incompleteness.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseCqualityDmaintenanceA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.147MIT
- AlicenseCqualityDmaintenanceA TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.14MIT
- FlicenseNot gradedqualityDmaintenanceA modern, lightning-fast starter template for building Model Context Protocol applications with Bun, enabling developers to create MCP servers with TypeScript support, validation, and environment configuration.2-
- AlicenseNot gradedqualityDmaintenanceA template repository for building Model Context Protocol (MCP) servers with TypeScript, featuring full TypeScript support, testing setup, CI/CD pipelines, and modular architecture for easy extension.Creative Commons Attribution Non Commercial Share Alike 4.0 International