MCP スターターサーバー
AIアシスタントツールを構築するための最小限のModelContextProtocolサーバーテンプレート。このスターターは、ClaudeのようなAIアシスタントで使用できるMCPツールを作成するための基本的な構造を提供します。
特徴
- シンプルな「Hello World」ツールの例
- TypeScript + esbuild のセットアップ
- 開発ツールが事前設定されている
Claudeでビルドして実行するためのセットアップ
- claude.ai/downloadからClaudeデスクトップアプリをダウンロードしてインストールします。
- リポジトリをクローンし、依存関係をインストールしてビルドします。
- このMCPサーバーを使用するようにClaudeを設定します。これが最初のMCPサーバーである場合は、このプロジェクトのルートで以下を実行してください。
これにより、 claude_desktop_config.json
に次のようなエントリが作成されます。
既存のMCPサーバーをお持ちの場合は、既存の設定にmcp-starter
ブロックを追加してください。args args
<path_to_repo_on_your_machine>/mcp-starter/dist/index.cjs
へのパスであることが重要です。
- Claude Desktop を再起動します。
- サーバーが実行中であることを確認するには、Claude のインターフェースで、使用可能なツールの数を示すハンマー アイコンを探します。
- すべて正常に動作している場合は、
npm run dev
を使ってMCPサーバーを開発し、Claudeでテストできるはずです。MCPサーバーを再起動するには、毎回Claudeを再起動する必要があります。
Inspectorを使った開発
開発とデバッグには、MCP Inspectorツールを使用できます。Inspectorは、MCPサーバーのインタラクションをテストおよび監視するための視覚的なインターフェースを提供します。
詳細なセットアップ手順については、 Inspector のドキュメントをご覧ください。
Inspector を使用してローカルでテストするには:
ファイルの変更に基づいてビルドするには、次を実行します。
または、ウォッチャーとインスペクターの両方を実行します。
出版
サーバーを配布する準備ができたら、あとは簡単です。
- NPMアカウントを設定します。
npm publish
実行します。これにより、package.json
内のプロジェクト名を使用してパッケージが公開されます。- 公開されると、他の人は次のような構成エントリを使用してサーバーをインストールできます。
利用可能なツール
サーバーは以下を提供します:
hello_tool
: 名前パラメータを受け取り、挨拶を返すシンプルなサンプルツール
新しいツールの作成
新しいツールを追加するには:
index.ts
でツールスキーマを定義するListToolsRequestSchema
ハンドラのツール配列に追加します。CallToolRequestSchema
ハンドラに実装を追加する
例として、 hello_tool
実装を参照してください。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
このサーバーは、ModelContextProtocol を使用して AI アシスタント ツールを作成するための最小限のテンプレートを提供します。シンプルな「hello world」ツールの例と、カスタム MCP ツールを構築するための開発セットアップが特徴です。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA TypeScript-based starter template for building Model Context Protocol servers that enables AI assistants to dynamically call tools, interpret prompts, and manage resources through modular architecture with support for multiple transport methods.Last updated -TypeScript
- -securityAlicense-qualityA template for building Model Context Protocol servers that allow AI assistants to interact with custom data and services through queryable resources and specialized tools.Last updated -TypeScriptMIT License
- AsecurityFlicenseAqualityA demonstration server based on Model Context Protocol (MCP) that showcases how to build custom tools for AI assistants, providing mathematical calculation and multilingual greeting capabilities.Last updated -3TypeScript
- -securityFlicense-qualityA starter template for building Model Context Protocol servers that can integrate AI assistants with custom tools, resource providers, and prompt templates.Last updated -JavaScript
Appeared in Searches
- Proof-of-Concept Examples for Multi-Component Processes (Model Context Protocol)
- List of This Week's 15 Most Popular Free Minecraft Servers
- A customizable and widely supported Minecraft server
- Setting Up AI Employee Tools on Docker Containers with MCP Servers
- Free and easy-to-setup Minecraft server hosting for solo web developers