Skip to main content
Glama
MCP Server Template for Cursor IDE

MCP Server Template for Cursor IDE

カーソル 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-simple-tool

# Using SSE transport on custom port
uv run mcp-simple-tool --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

2 tools
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

    B3.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have completely distinct purposes: one fetches website content, while the other returns a static mood response. There is no overlap or ambiguity between them, making it easy for an agent to select the correct tool for each task.

    Naming Consistency3/5

    The tools use different naming conventions: 'mcp_fetch' follows a prefix_verb pattern, while 'mood' is a simple noun. This mixed style lacks a predictable pattern, though both names are readable and descriptive of their functions.

    Tool Count2/5

    With only two tools, the server feels thin and under-scoped for a template intended for Cursor IDE, which typically involves more complex operations. This minimal set may not adequately cover common IDE-related tasks, suggesting a mismatch in scope.

    Completeness2/5

    Inferred as a template for IDE integration, the tool surface is severely incomplete. It lacks core functionalities like file manipulation, code analysis, or project management, leaving significant gaps that would hinder agent workflows in an IDE context.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers