MCP サーバー スターター
TypeScript を使用して Model Context Protocol (MCP) サーバーを構築するための、本番環境対応のスターター テンプレート。
🚀 クイックスタート
リポジトリをクローンする
依存関係をインストールします:
✨ 主な特徴
高速テストと開発のためのBun
リンティングとフォーマットのためのバイオーム
標準バージョンによる自動バージョン管理
クリーンで保守しやすいプロジェクト構造
📂 プロジェクト構造
⚙️ 構成
新しいツールの作成
このプロジェクトには、新しい MCP ツールの作成に役立つスクリプトが含まれています。
これにより、次のようになります。
src/tools/<tool-name>
の下に新しいツールディレクトリを作成します。以下を含む基本的なツール構造を生成します。
index.ts (メイン実装)
schema.ts (ツールパラメータのJSONスキーマ)
test.ts (テストファイル)
新しいツールをエクスポートするためにツールのインデックスファイルを更新します
例:
🛠️ 開発
テストを実行:
bun test
フォーマットコード:
bun run format
リントコード:
bun run lint
プロジェクトのビルド:
bun run build
開発用 MCP サーバーを Claude Desktop に追加するには:
プロジェクトをビルドします。
Claude Desktop の設定に追加:
📜 バージョン管理
このプロジェクトでは、自動バージョン管理のためにstandard-versionを使用しています。新しいバージョンを作成するには、 bun run release
を実行してください。
コミットメッセージの形式
feat
: 新機能 (マイナーバージョンをアップグレード)fix
:バグ修正(パッチバージョンをアップグレード)BREAKING CHANGE
: 破壊的変更 (メジャーバージョンを上げる)
📦 npm への公開
npm にログインしていることを確認します。
プロジェクトをビルドします。
パッケージを公開します。
新しいバージョンを公開する前に、 bun run release
を使用してバージョン番号を更新することを忘れないでください。
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Weather MCP Server Starter を自動的にインストールするには:
npmからインストールする(公開後)
Claude Desktop の設定に追加:
Tools
モデル コンテキスト プロトコル サーバーを構築するための TypeScript ベースのテンプレートで、高速テスト、自動バージョン管理、MCP ツール実装用のクリーンな構造が特徴です。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.Last updated -16038MIT License
- AsecurityFlicenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -124
- -securityFlicense-qualityA starter template for creating Model Context Protocol servers using TypeScript, providing basic setup and sample tool implementation for developers to build their own MCP servers.Last updated -
- -securityFlicense-qualityA 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.Last updated -0
Appeared in Searches
- List of This Week's 15 Most Popular Free Minecraft Servers
- A customizable and widely supported Minecraft server
- Enhancing Prompt Engineering with MCP
- No-code platforms for application development using TypeScript, JavaScript, Python, with MCP server integration via agentic orchestration
- Setting Up AI Employee Tools on Docker Containers with MCP Servers