Neo4j MCP 服务器
Neo4j MCP 服务器实现,用于通过模型上下文协议管理图形数据库操作。
🔌 与 Cursor 和 Claude Desktop 兼容!
快速入门
您可以直接使用 npx 运行服务器:
安装
如果您希望全局安装该包:
然后运行它:
环境变量
您可以通过两种方式提供 Neo4j 连接详细信息:
- 使用单个连接字符串:
- 使用单独的环境变量:
您还可以在项目根目录中使用.env
文件:
配置⚙️
配置光标🖥️
要在 Cursor 中设置 Neo4j MCP 服务器:
- 打开游标设置
- 导航至“功能”>“MCP 服务器”
- 点击“+ 添加新的 MCP 服务器”按钮
- 填写以下信息:
- 名称:输入服务器的昵称(例如“neo4j-mcp”)
- 类型:选择“命令”作为类型
- 命令:输入运行服务器的命令:GXP7
重要提示:将凭据替换为您的实际 Neo4j 数据库凭据。
可用工具🛠️
neo4j-查询
针对您的 Neo4j 数据库执行 Cypher 查询。
Cursor 中的用法示例:
故障排除
如果您遇到问题:
- 验证 Neo4j 凭据
- 检查您的 Neo4j URI、用户名和密码是否正确
- 确保您的 Neo4j 数据库可访问
- 路径问题
- 确保安装路径中没有空格
- 在路径中使用正斜杠 (/)
- 工具检测问题
- 尝试重新启动 Cursor
- 验证服务器是否正在运行(检查 Cursor 的 MCP 服务器列表)
- 检查环境变量是否正确设置
开发👩💻
要在本地运行:
执照
国际学习中心
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过模型上下文协议管理 Neo4j 图形数据库操作的实现,使用户能够通过 Cursor 和 Claude Desktop 等 AI 助手对其 Neo4j 数据库执行 Cypher 查询。
Related MCP Servers
- -securityFlicense-qualityA fork of the Neo4j Model Context Protocol server that enables interaction with Neo4j knowledge graphs through environment variable configuration and improved options for remote connections.Last updated -2TypeScript
- -securityFlicense-qualityAn MCP server that enables graph database interactions with Neo4j, allowing users to access and manipulate graph data through natural language commands.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol server implementation that enables LLMs to interact with NebulaGraph database for graph exploration, supporting schema understanding, queries, and graph algorithms.Last updated -18PythonApache 2.0
- -securityFlicense-qualityEnables storage and retrieval of knowledge in a graph database format, allowing users to create, update, search, and delete entities and relationships in a Neo4j-powered knowledge graph through natural language.Last updated -3Python