
da-okazaki/mcp-neo4j-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
da-okazaki/mcp-neo4j-server は [https://github.com/da-okazaki/mcp-neo4j-server.] からインポートされた MCP サーバーの候補です
概要
da-okazaki/mcp-neo4j-server は [https://github.com/da-okazaki/mcp-neo4j-server.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Neo4j グラフデータベースと Claude デスクトップの統合を実現する MCP サーバーで、自然言語のやりとりでグラフのデータベース操作を可能にします。
クイックスタート
npx を使用して、この MCP サーバーを直接実行できます。
または、Claudeデスクトップの設定に追加します。
##特徴
このサーバーは、Neo4j データベースとやり取りするためのツールを提供しています。
Neo4jエンタープライズサポート
このサーバーでは、Neo4j Enterprise Edition で特定のデータベースに接続できるようになりました。 デフォルトでは「neo4j」データベースに接続しますが、NEO4J_DATABASE]環境変数を使用して異なるデータベースを指定できます。
ツール
-
[
execute_query]: Neo4j データベースで Cypher クエリを実行 -
すべてのタイプの Cypher クエリをサポート (READ, CREATE, UPDATE, DELETE)
-
構造化された形式でクエリ結果を返す
-
注入の攻撃を防ぐために変数は渡ることができます
-
[
create_node: グラフデータベースに新しいノードを作成する -
ノードラベルとプロパティを指定する
-
作成したノードを内部 ID で返す
-
すべてのNeo4jデータ型をサポート
-
関係のタイプおよび方向を定義して下さい
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Neo4j Server
An MCP server that provides integration between Neo4j graph database and Claude Desktop, enabling graph database operations through natural language interactions.
Quick Start
You can run this MCP server directly using npx:
npx @alanse/mcp-neo4j
Or add it to your Claude Desktop configuration:
{
"mcpServers": {
"neo4j": {
"command": "npx",
"args": ["@alanse/mcp-neo4j-server"],
"env": {
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USERNAME": "neo4j",
"NEO4J_PASSWORD": "your-password",
"NEO4J_DATABASE": "neo4j"
}
}
}
}
Features
This server provides tools for interacting with a Neo4j database:
Neo4j Enterprise Support
This server now supports connecting to specific databases in Neo4j Enterprise Edition. By default, it connects to the “neo4j” database, but you can specify a different database using the NEO4J_DATABASE environment variable.
Tools
-
execute_query: Execute Cypher queries on the Neo4j database- Supports all types of Cypher queries (READ, CREATE, UPDATE, DELETE)
- Returns query results in a structured format
- Parameters can be passed to prevent injection attacks
-
create_node: Create a new node in the graph database- Specify node labels and properties
- Returns the created node with its internal ID
- Supports all Neo4j data types for properties
-
create_relationship: Create a relationship between two existing nodes- Define relationship type and direction
- Add properties to relationships
- Requires node IDs for source and target nodes
Installation
Installing via Smithery
To install MCP Neo4j Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @alanse/mcp-neo4j-server --client claude
For Development
- Clone the repository:
git clone https://github.com/da-okazaki/mcp-neo4j-server.git
cd mcp-neo4j-server
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
The server requires the following environment variables:
NEO4J_URI: Neo4j database URI (default: bolt://localhost:7687)NEO4J_USERNAME: Neo4j username (default: neo4j)NEO4J_PASSWORD: Neo4j password (required)NEO4J_DATABASE: Neo4j database name (default: neo4j) - Use this to connect to a specific database in Neo4j Enterprise
Usage Examples
Here are examples of how you can interact with the Neo4j database using natural language:
Connecting to a Specific Database
インストール
npx @alanse/mcp-neo4j-server設定
{
"mcpServers": {
"neo4j": {
"command": "npx",
"args": ["@alanse/mcp-neo4j-server"],
"env": {
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USERNAME": "neo4j",
"NEO4J_PASSWORD": "your-password",
"NEO4J_DATABASE": "neo4j"
}
}
}
}