Back to MCP directory
publicPublicdnsLocal runtime

mcp-neo4j-server

MCP Neo4j服务器是一个连接Neo4j图数据库与Claude桌面的中间件,支持通过自然语言进行图数据库操作,包括查询、创建节点和关系等功能。

article

README

🚀 MCP Neo4j 服务器

一个MCP服务器,提供Neo4j图数据库与Claude Desktop之间的集成,通过自然语言交互实现图数据库操作。用户可借助该服务器,更便捷地对Neo4j图数据库进行各类操作。

🚀 快速开始

你可以直接使用npx运行此MCP服务器:

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": "你的密码"
      }
    }
  }
}

✨ 主要特性

此服务器提供与Neo4j数据库交互的工具:

工具

  • execute_query:在Neo4j数据库上执行Cypher查询

    • 支持所有类型的Cypher查询(读取、创建、更新、删除)
    • 返回结构化的查询结果
    • 可以传递参数以防止注入攻击
  • create_node:创建图数据库中的新节点

    • 指定节点标签和属性
    • 返回已创建的节点及其内部ID
    • 支持Neo4j的所有数据类型属性
  • create_relationship:在两个现有节点之间创建关系

    • 定义关系类型和方向
    • 添加关系属性
    • 需要源节点和目标节点的ID

📦 安装指南

运行测试套件:

npm test

📄 许可证

本项目采用MIT许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client