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()
メソッドを使用してカスタム ツールを定義します。
- 実装をビルドしてテストします。
貢献
問題や機能強化のリクエストをお気軽にお寄せください。
ライセンス
マサチューセッツ工科大学
You must be authenticated.
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 Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.Last updated -10Python
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -1Python
- -securityFlicense-qualityA Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.Last updated -275JavaScript
- 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 -19TypeScriptMIT 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)