MCP Neo4j 服务器
一个为 Neo4j 图数据库和 Claude Desktop 提供集成的 MCP 服务器,支持通过自然语言交互操作图数据库。
快速入门
使用 npx 直接运行: npx @alanse/mcp-neo4j 或者将其添加到 Claude Desktop 配置中: { "mcpServers": { "neo4j": { "command": "npx", "args": ["@alanse/mcp-neo4j-server"], "env": { "NEO4J_URI": "bolt://localhost:7687", "NEO4J_USERNAME": "neo4j", "NEO4J_PASSWORD": "your-password" } } } }
安装开发环境
- 克隆仓库: git clone https://github.com/da-okazaki/mcp-neo4j-server.git cd mcp-neo4j-server
- 安装依赖: npm install
- 构建项目: npm run build
使用示例
查询数据: User: 显示销售部门的所有员工 Claude: 执行查询并返回结果。 创建节点: User: 添加一个名为 John Doe 的新人 Claude: 创建新节点并返回 ID。 创建关系: User: 让 John Doe 和 Jane Smith 成为朋友 Claude: 创建关系并返回结果。