
da-okazaki/mcp-neo4j-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
da-okazaki/mcp-neo4j-сервер является кандидатом на сервер MCP, импортированным из https://github.com/da-okazaki/mcp-neo4j-server.
Обзор
da-okazaki/mcp-neo4j-сервер является кандидатом на сервер MCP, импортированным из https://github.com/da-okazaki/mcp-neo4j-server.
Обзор (машинный перевод)
Сервер MCP, который обеспечивает интеграцию между графовой базой данных Neo4j и Claude Desktop, позволяя работать с графовой базой данных посредством взаимодействия на естественном языке.
Быстрый старт
Вы можете запустить этот MCP-сервер напрямую, используя npx:
Или добавьте его в конфигурацию Claude Desktop:
Особенности
Этот сервер предоставляет инструменты для взаимодействия с базой данных Neo4j:
Поддержка Neo4j Enterprise
Этот сервер теперь поддерживает подключение к конкретным базам данных в Neo4j Enterprise Edition. По умолчанию он подключается к базе данных «neo4j», но вы можете указать другую базу данных, используя переменную среды NEO4J_DATABASE.
Инструменты
-
[[Т1]]: Выполнение запросов Cypher в базе данных Neo4j Поддерживает все типы запросов Cypher (Читать, создавать, обновлять, удалять) Возврат результатов запроса в структурированном формате Параметры могут быть переданы для предотвращения инъекционных атак.
-
[[Т2]]: Создание нового узла в графовой базе данных
-
Укажите ярлыки узлов и свойства Возвращает созданный узел с его внутренним идентификатором Поддержка всех типов данных Neo4j для свойств
-
[[Т3]]: Создать связь между двумя существующими узлами
-
Определить тип и направление отношений
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"
}
}
}
}