MCP Starter

by instructa
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides linkage to the author's Bluesky profile (@kevinkern.dev) for social connectivity

  • References the author's other GitHub projects that users might find relevant

  • Mentioned in relation to the author's AI Prompts project, suggesting compatibility or relevance with GitHub Copilot

MCP サーバー スターター

独自の MCP サーバーを構築したいですか?

MCP Server Starter は、MCP 標準を使用して Cursor、Claude などのローカル ツールを実行するための基本構造を提供します。


特徴

  • 📡柔軟なコミュニケーション
    • クライアントとサーバー間の複数の通信プロトコルをサポートし、
    • stdio : ローカル使用
    • Streamable HTTP :リモートおよびローカルでの使用
    • sse : リモートおよびローカルでの使用 (非推奨)~~
  • 📦最小限のセットアップ- 基本的なサーバー実装ですぐに開始できます。
  • 🤖カーソル AI 統合- .cursor/mcp.json構成の例が含まれています。
  • ⌨️ TypeScript - プロジェクトに型の安全性を追加します。

藤堂

  • [ ] 独自のパッケージを公開するオプションを追加
  • [ ] スキャフォールディングのCLIサポートの改善
  • [ ] ツールを即座に構築するためのプロンプト

はじめる

前提条件

  • Node.js (必要に応じてバージョンを指定してください)
  • MCP互換クライアント(例: Cursor

使用法

サポートされているトランスポートオプション

モデルコンテキストプロトコルは複数のトランスポート方法をサポートします。

標準入出力

ローカル設定に推奨

コードエディターのサポート

以下のコードスニペットを追加します

  • カーソル: .cursor/mcp.json

ローカル開発/テスト

mcpサーバーをローカルでテストする場合はこれを使用します

{ "mcpServers": { "my-starter-mcp-stdio": { "command": "node", "args": ["./bin/cli.mjs", "--stdio"] } } }

公開されたパッケージ

npmレジストリにパッケージを公開したときにこれを使用します

{ "mcpServers": { "my-starter-mcp-stdio": { "command": "npx", "args": ["my-mcp-server", "--stdio"] } } }

ストリーミング可能なHTTP

重要: ストリーミング可能な HTTP は Cursor ではまだサポートされていません

リモートサーバーの使用に推奨

重要: stdioとは対照的に、正しいフラグでサーバーを実行する必要があります。

ローカル開発 ストリーミングstreamable httpトランスポートを使用する

  1. MCPサーバーを起動します。ターミナルでこれを実行します。
node ./bin/cli.mjs --http --port 4200

またはMCPインスペクター

npm run dev-http # npm run dev-sse (deprecated)
  1. これを設定に追加してください
{ "mcpServers": { "my-starter-mcp-http": { "command": "node", "args": ["./bin/cli.mjs", "--http", "--port", "4001"] // "args": ["./bin/cli.mjs", "--sse", "--port", "4002"] (or deprecated sse usage) } } }

公開されたパッケージ

npmレジストリにパッケージを公開したときにこれを使用します

ターミナルでこれを実行します

npx my-mcp-server --http --port 4200 # npx my-mcp-server --sse --port 4201 (deprecated)
{ "mcpServers": { "my-starter-mcp-http": { "url": "http://localhost:4200/mcp" // "url": "http://localhost:4201/sse" } } }

インスペクターを使用する

inspectコマンドを使用してmcpサーバーをデバッグします

コマンドラインオプション

プロトコルの選択

プロトコル説明注記
stdio標準I/O(なし)デフォルト
httpHTTP REST--port <num> (定義: 3000), --endpoint <path> (定義: /mcp )
sseサーバー送信イベント--port <num> (定義: 3000)非推奨

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。


リンク

コース

他のプロジェクトもご覧ください:

  • AIプロンプト- Cursor AI、Cline、Windsurf、Github Copilot向けに厳選されたAIプロンプト
  • codefetch - 簡単なターミナルコマンドでコードを LLM 用の Markdown に変換します
  • aidex AI言語モデルに関する詳細な情報を提供し、開発者がニーズに合った適切なモデルを選択できるように支援するCLIツール。# mcp-starter

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Cursor や Claude Desktop などの AI アシスタントがアクセスできるツールを提供するカスタム ローカル モデル コンテキスト プロトコル (MCP) サーバーを構築するための基盤。

  1. Features
    1. Todo
      1. Getting Started
        1. Prerequisites
      2. Usage
        1. Supported Transport Options
        2. stdio
        3. Streamable HTTP
      3. Use the Inspector
        1. Command-Line Options
          1. Protocol Selection
        2. License
          1. Links
            1. Courses
              1. See my other projects:
                ID: uh9fbrnkxd