MCP サーバーテンプレート 🛠️
独自のモデルコンテキストプロトコル(MCP)サーバーを構築するためのスターターテンプレートです。このテンプレートは、CursorまたはClaude Desktopで使用できるカスタムMCPを作成するために必要な基本的な構造と設定を提供します。
特徴
- TypeScript を使用した基本的な MCP サーバーのセットアップ
- サンプルツールの実装
- すぐに使えるプロジェクト構造
- @modelcontextprotocol/sdkで構築
プロジェクト構造
はじめる
- このテンプレートを複製します:
- 依存関係をインストールします:
- プロジェクトをビルドします。
これにより、コンパイルされた MCP サーバー スクリプトである/build/index.js
ファイルが生成されます。
カーソルの使用
- カーソル設定 -> MCP -> 新しいMCPサーバーの追加に移動します
- MCP を構成します。
- 名前: [自分の名前を選択してください]
- タイプ: コマンド
- コマンド:
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js
Claude Desktopでの使用
次の MCP 構成を Claude Desktop 構成に追加します。
発達
テンプレートには、 index.ts
にサンプルツールの実装が含まれています。独自の MCP を作成するには、以下の手順を実行します。
index.ts
内のサーバー構成を変更します。
server.tool()
メソッドを使用してカスタム ツールを定義します。
- 実装をビルドしてテストします。
貢献
問題や機能強化のリクエストをお気軽にお寄せください。
ライセンス
マサチューセッツ工科大学
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Cursor または Claude Desktop と統合できるモデル コンテキスト プロトコル サーバーを構築するためのスターター テンプレート。開発者は AI アシスタント用のカスタム ツールと拡張機能を作成できます。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA starter template for building Model Context Protocol (MCP) servers, enabling developers to create and add custom tools that can be integrated with Claude Desktop.Last updated -2TypeScript
- -securityFlicense-qualityA modular, extensible Model Context Protocol server framework designed for Claude Desktop that uses convention-based automatic module discovery to easily extend AI application functionality without modifying core code.Last updated -3Python
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -123TypeScriptMIT License
Appeared in Searches
- A JavaScript library for building user interfaces (React)
- How to create a sandbox environment
- Model-Controller-Presenter (MCP) for Building iOS Apps
- Information about AWS (Amazon Web Services)
- Most Popular MCPS (Microsoft Certified Professionals, Music Copyright Societies, or Montgomery County Public Schools)