Skip to main content
Glama

Neo4j MCP 服务器

Neo4j 模型上下文协议 (MCP) 服务器的分支,具有环境变量支持和改进的配置选项。

特征

  • Neo4j连接的环境变量配置

  • 支持自定义端口和远程 Neo4j 实例

  • 改进的错误处理和日志记录

  • 与模型上下文协议兼容

Related MCP server: Memgraph MCP Server

配置

可以使用以下环境变量配置服务器:

  • NEO4J_URL - Neo4j 连接 URL(默认值:“bolt://localhost:7687”)

  • NEO4J_USER - Neo4j 用户名(默认值:“neo4j”)

  • NEO4J_PASSWORD - Neo4j 密码(默认值:“neo4j”)

例子:

NEO4J_URL="bolt://192.168.0.157:28687" \
NEO4J_USER="neo4j" \
NEO4J_PASSWORD="your-password" \
node dist/servers/mcp-neo4j-memory/main.js

可用工具

mcp-neo4j-内存

存储在 Neo4j 中的知识图谱内存具有以下功能:

  • create_entities - 在知识图谱中创建多个新实体

  • create_relations - 创建实体之间的关系(主动语态)

  • add_observations - 向现有实体添加新的观察结果

  • delete_entities - 删除实体及其关系

  • delete_observations - 从实体中删除特定观察结果

  • delete_relations - 删除特定关系

  • read_graph读取整个知识图谱

  • search_nodes - 根据查询搜索节点

  • open_nodes - 通过名称打开特定节点

发展

# Install dependencies
npm install

# Build
npm run build

# Start the server
npm start

来自上游的变更

  • 增加了对 Neo4j 连接详细信息的环境变量支持

  • 改进的错误处理和连接管理

  • 添加了详细的调试日志记录

  • 更新配置以支持远程 Neo4j 实例

执照

麻省理工学院

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    Not graded
    maintenance
    A lightweight server implementation of the Model Context Protocol that connects Memgraph database with LLMs, allowing users to interact with graph databases through natural language.
    1
    25
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for Neo4j graph database operations, enabling Cypher queries, node/relationship management, and schema discovery.
    40 PyPI
    1
    BSD 3-Clause
  • F
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that enables running Cypher queries and retrieving schema from Neo4j databases, supporting AI-driven graph exploration and text-to-Cypher workflows.
    3
    -