Skip to main content
Glama
MCP Server Template for Cursor IDE

MCP Server Template for Cursor IDE

by jankowtf

カーソル IDE 用 MCP サーバー テンプレート

モデルコンテキストプロトコル(MCP)を使用してCursor IDE用のカスタムツールを作成するためのシンプルなテンプレートです。このテンプレートから独自のリポジトリを作成し、ツールを変更してCursor IDEに接続します。

サーバーの気分反応

クイックスタート

  1. 「Herokuにデプロイ」ボタンをクリックします

    Herokuへのデプロイ

  2. デプロイ後、カーソルを構成します。

    • カーソル設定を開く→機能

    • 新しいMCPサーバーを追加する

    • Heroku URL を/sseパスとともに使用します (例: https://<your-app-name>.herokuapp.com/sse )

  3. カーソルでエージェントの気分をテストします。

    • エージェントに「サーバーの雰囲気についてお聞きして、どうなっているか教えてください」と依頼してください。

    • サーバーは明るいメッセージとハートで応答します❤️

Related MCP server: MCP Server Template for Cursor IDE

代替設定方法

サーバーは、Docker を使用するか、従来の Python セットアップを使用するか、Cursor IDE で直接実行するかの 3 つの方法で実行できます。

Dockerのセットアップ

このプロジェクトには、簡単に導入できる Docker サポートが含まれています。

  1. 初期設定:

# Clone the repository
git clone https://github.com/kirill-markin/weaviate-mcp-server.git
cd weaviate-mcp-server

# Create environment file
cp .env.example .env
  1. Docker Compose を使用してビルドおよび実行します。

# Build and start the server
docker compose up --build -d

# View logs
docker compose logs -f

# Check server status
docker compose ps

# Stop the server
docker compose down
  1. サーバーは次の場所で利用できます:

  2. クイックテスト:

# Test the server endpoint
curl -i http://localhost:8000/sse
  1. カーソル IDE に接続します。

    • カーソル設定を開く→機能

    • 新しいMCPサーバーを追加する

    • タイプ: 「sse」を選択

    • URL: http://localhost:8000/sseと入力します

従来のセットアップ

まず、uv パッケージ マネージャーをインストールします。

# Install uv on macOS
brew install uv
# Or install via pip (any OS)
pip install uv

stdio (デフォルト) または SSE トランスポートのいずれかを使用してサーバーを起動します。

# Install the package with development dependencies
uv pip install -e ".[dev]"

# Using stdio transport (default)
uv run mcp-hitchcode

# Using SSE transport on custom port
uv run mcp-hitchcode --transport sse --port 8000

# Run tests
uv run pytest -v

インストール後、サーバーを Cursor IDE に直接接続できます。

  1. カーソル内のcursor-run-mcp-server.shファイルを右クリックします。

  2. 「パスをコピー」を選択して絶対パスをコピーします

  3. カーソル設定を開く(歯車アイコン)

  4. 機能タブに移動する

  5. 「MCPサーバー」までスクロールします。

  6. 「新しいMCPサーバーを追加」をクリックします

  7. フォームに記入してください:

    • 名前: 任意の名前を選択します (例: "my-mcp-server-1")

    • タイプ: 「stdio」を選択します (サーバーをローカルで実行するため、「sse」ではありません)

    • コマンド: 先ほどコピーしたcursor-run-mcp-server.shへの絶対パスを貼り付けます。例: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh

環境変数

利用可能な環境変数( .envで設定できます):

  • MCP_SERVER_PORT (デフォルト: 8000) - サーバーを実行するポート

  • MCP_SERVER_HOST (デフォルト: 0.0.0.0) - サーバーをバインドするホスト

  • DEBUG (デフォルト: false) - デバッグモードを有効にする

  • MCP_USER_AGENT - ウェブサイト取得用のカスタム ユーザー エージェント

追加オプション

Smithery経由でインストール

鍛冶屋のバッジ

Smithery経由で Claude Desktop の Cursor IDE 用の MCP サーバー テンプレートを自動的にインストールするには:

npx -y @smithery/cli install @kirill-markin/example-mcp-server --client claude

Glamaサーバーのレビュー

Available Tools

12 tools
apply_prompt_changeC

Provides a prompt for systematically handling change requests

Inputs: change_request (required), specific_instructions, version.

apply_prompt_dockerC

Provides a prompt template for Docker container configurations and orchestration

Inputs: containerization_objective (required), specific_instructions, version.

apply_prompt_fixC

Provides a prompt for performing root cause analysis and fixing issues

Inputs: issue (required), specific_instructions, version.

apply_prompt_fix_linterB

Provides a prompt for analyzing and fixing linter errors

Inputs: issue (required), specific_instructions, version.

apply_prompt_infraC

Provides a prompt template for laying out system infrastructure and tool stack information

Inputs: infrastructure_info (required), specific_instructions, version.

apply_prompt_initialC

Provides an initial prompt template for starting a new project

Inputs: objective (required), specific_instructions, version.

apply_prompt_proceedC

Provides a prompt template for proceeding with a task or project

Inputs: task (required), specific_instructions, version.

apply_prompt_unit_testsC

Provides a prompt for generating unit tests for code

Inputs: code_to_test (required), specific_instructions, version.

fetch_railway_docsC

Fetches the most recent Railway CLI documentation. Optionally, provide a custom URL.

Inputs: url.

fetch_railway_docs_optimizedB

Fetches the most recent Railway CLI documentation. Optionally, provide a custom URL.

Inputs: url.

mcp_fetchC

Fetches a website and returns its content

Inputs: url (required).

moodA

Ask the server about its mood - it's always happy!

Inputs: question (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 12 tools

    Disambiguation2/5

    The tool set has significant ambiguity, particularly between the 'apply_prompt_*' tools which all provide prompt templates for different contexts but could easily be confused by an agent due to overlapping purposes (e.g., 'apply_prompt_fix' vs 'apply_prompt_fix_linter' for fixing issues). Additionally, 'fetch_railway_docs' and 'fetch_railway_docs_optimized' appear to do the same thing with unclear distinctions, leading to potential misselection.

    Naming Consistency4/5

    Most tools follow a consistent snake_case pattern with clear verb_noun structures (e.g., 'apply_prompt_change', 'fetch_railway_docs'), which aids readability. However, there are minor deviations: 'mood' breaks the pattern by being a single noun without a verb, and the duplication in 'fetch_railway_docs' vs 'fetch_railway_docs_optimized' introduces inconsistency in naming for similar functions.

    Tool Count3/5

    With 12 tools, the count is borderline but reasonable for a template server aimed at Cursor IDE, which might cover various development tasks. However, the set feels slightly heavy due to redundant tools like the two Railway docs fetchers and multiple similar prompt tools, suggesting some consolidation could improve coherence without losing functionality.

    Completeness2/5

    The server's domain appears to be development assistance with prompt templates and documentation fetching, but there are significant gaps. For example, it lacks tools for code generation, debugging, or version control integration, which are common in IDE contexts. The inclusion of a trivial 'mood' tool further detracts from covering essential workflows, making the surface incomplete for practical agent use in development tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers