mcpField
N
Neo4j MCP Server

Neo4j MCP Server

Local
github.com/dandelionmayday123Databases0Updated 80w ago

About Neo4j MCP Server

Neo4j MCP Server is an MCP-based service for performing basic operations on Neo4j databases. It is intended for MCP clients that need database access, with asynchronous operations, proxy configuration, and logging.

Key features

  1. 01Basic Neo4j database operations
  2. 02Asynchronous operations
  3. 03Proxy server configuration
  4. 04Logging

Use cases

  1. 01Run Cypher queries through an MCP client
  2. 02Create nodes in a Neo4j database

MCP support

It exposes basic Neo4j database operations to MCP clients, including query execution and node creation.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Neo4j MCP Server

这是一个基于MCP框架的Neo4j数据库操作服务。

功能特性

  • 支持异步操作
  • 提供Neo4j数据库的基本操作接口
  • 支持代理服务器配置
  • 完整的日志记录

安装

pip install -e .

配置

创建.env文件并设置以下环境变量:

NEO4J_URI=http://your-neo4j-server:7474
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=your-password
HTTP_PROXY=http://your-proxy:port  # 可选
HTTPS_PROXY=http://your-proxy:port  # 可选

使用方法

  1. 启动服务器:
python src/server.py
  1. 使用MCP客户端调用服务:
from mcp.client import Client

async with Client() as client:
    # 执行Cypher查询
    result = await client.execute_query("MATCH (n) RETURN n LIMIT 5")
    
    # 创建节点
    node = await client.create_node("Person", {"name": "张三", "age": 30})
    
    # 创建关系
    rel = await client.create_relationship(1, 2, "KNOWS", {"since": "2024"})

开发

  1. 创建虚拟环境:
python -m venv .venv
source .venv/bin/activate  # Linux/Mac
.venv\Scripts\activate  # Windows
  1. 安装开发依赖:
pip install -e ".[dev]"
  1. 运行测试:
python -m pytest

许可证

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.