Skip to main content
Glama
Neo4j MCP Server

Neo4j MCP Server

Neo4j MCP サーバー

モデル コンテキスト プロトコルを通じてグラフ データベース操作を管理するための Neo4j MCP サーバー実装。

🔌 カーソルとクロードデスクトップの両方と互換性があります。

クイックスタート

npx を使用してサーバーを直接実行できます。

# Using a single connection string
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password npx neo4j-mcpserver

# Or using separate environment variables
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io NEO4J_USER=neo4j NEO4J_PASSWORD=your-password npx neo4j-mcpserver

Related MCP server: Neo4j MCP Server

インストール

パッケージをグローバルにインストールする場合:

npm install -g neo4j-mcpserver

次にそれを実行します:

NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password neo4j-mcpserver

環境変数

Neo4j 接続の詳細は、次の 2 つの方法で提供できます。

  1. 単一の接続文字列を使用する:

    NEO4J_CONNECTION=<uri>,<user>,<password>
  2. 個別の環境変数を使用する:

    NEO4J_URI=<your-uri>
    NEO4J_USER=<your-user>
    NEO4J_PASSWORD=<your-password>

プロジェクト ルートで.envファイルを使用することもできます。

NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-password

設定 ⚙️

カーソルの設定 🖥️

Cursor で Neo4j MCP サーバーを設定するには:

  1. カーソル設定を開く

  2. 機能 > MCP サーバーに移動します

  3. 「+新しいMCPサーバーを追加」ボタンをクリックします。

  4. 以下の情報を入力してください。

    • 名前: サーバーのニックネームを入力します (例: "neo4j-mcp")

    • タイプ: タイプとして「コマンド」を選択します

    • コマンド: サーバーを実行するコマンドを入力してください: GXP7

    重要: 資格情報を実際の Neo4j データベース資格情報に置き換えてください。

利用可能なツール 🛠️

neo4jクエリ

Neo4j データベースに対して Cypher クエリを実行します。

カーソルでの使用例:

MATCH (n) RETURN n LIMIT 5

トラブルシューティング🔧

問題が発生した場合:

  1. Neo4j の資格情報を確認する

    • Neo4j URI、ユーザー名、パスワードが正しいことを確認してください

    • Neo4jデータベースにアクセスできることを確認する

  2. パスの問題

    • インストールパスにスペースがないことを確認してください

    • パスにはスラッシュ(/)を使用する

  3. ツール検出の問題

    • カーソルを再起動してみてください

    • サーバーが実行中であることを確認します(CursorのMCPサーバーリストを確認してください)

    • 環境変数が正しく設定されているか確認する

開発👩‍💻

ローカルで実行するには:

git clone <repository-url>
cd neo4j-mcpserver
npm install
npm run build
npm start

ライセンス

ISC

Available Tools

1 tool
neo4j-queryC

Execute a Cypher query against the Neo4j database

Inputs: query (required), parameters.

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 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a single, clear purpose: executing Cypher queries against a Neo4j database.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'neo4j-query' follows a clear and descriptive pattern, though no pattern can be established or broken with a single tool.

    Tool Count2/5

    A single tool is too few for a database server's apparent scope, which typically requires operations like creating, updating, deleting, and querying data. This minimal set limits functionality and forces all operations through a generic query interface, which is insufficient for structured interactions.

    Completeness2/5

    The tool surface is severely incomplete for a Neo4j database server. While 'neo4j-query' allows executing arbitrary Cypher queries, it lacks dedicated tools for common operations like creating nodes, updating relationships, or managing transactions, leaving significant gaps that agents must work around with raw queries.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with persistent graph database memory using Neo4j, enabling task management, relationship understanding, semantic search with embeddings, file indexing, and multi-agent coordination through the Model Context Protocol.
      290
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Neo4j graph databases through natural language, supporting Cypher queries, schema management, data manipulation, and graph algorithms.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Neo4j databases from the Cursor IDE by executing Cypher queries, managing connections, and retrieving database information.
      3
      -