Neo4j MCP Server for Cursor

Neo4j MCP Server for Cursor

neo4j-mcp•byezedinff

A Model Context Protocol server that lets Cursor interact with Neo4j databases, running Cypher queries and retrieving database information.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Connects to Neo4j databases using explicit credentials or environment variables.
  • •Executes Cypher queries against the connected Neo4j database and retrieves results.
  • •Retrieves database information including version, edition, node and relationship counts, labels, and relationship types.
  • •Reports connection status and diagnostics, and provides a disconnect tool.

BEST FOR

  • •Querying a Neo4j graph database from within the Cursor IDE.
  • •Inspecting Neo4j graph structure and statistics such as labels, relationship types, and entity counts.

ABOUT NEO4J-MCP

Neo4j MCP Server for Cursor is cataloged as an MCP server attributed to ezedinff. A Model Context Protocol server that lets Cursor interact with Neo4j databases, running Cypher queries and retrieving database information. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Neo4j MCP Server for Cursor are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server communicate with Cursor?

It uses stdio transport via the official MCP SDK.

Can credentials be supplied without being passed as tool parameters?

Yes, one connection tool uses Neo4j credentials from environment variables.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 69450ba12357 · 采集于 2026-11-13 10:39:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Neo4j MCP Server for Cursor

A Cursor MCP (Model Context Protocol) server that enables seamless interaction with Neo4j databases directly from the Cursor IDE.

Features

  • Connect to Neo4j databases
  • Execute Cypher queries and retrieve results
  • Transform Neo4j-specific data types to standard JavaScript objects
  • Uses the official MCP SDK with stdio transport for seamless integration with Cursor
  • Support for environment variables for secure credential management
  • Retrieve detailed database information and metrics
  • Monitor connection status and diagnostics

Prerequisites

  • Bun (v1.0.0 or higher)
  • Neo4j database (local or remote)

Running Neo4j with Docker Compose

This project includes a Docker Compose configuration to easily run Neo4j in a container:

  1. Make sure you have Docker and Docker Compose installed.

  2. Start Neo4j using Docker Compose:

    docker-compose up -d
    
  3. Access the Neo4j Browser at http://localhost:7474

    • Default username: neo4j
    • Default password: your_password (as specified in the docker-compose.yml)
  4. To stop Neo4j:

    docker-compose down
    
  5. To stop Neo4j and remove all data:

    docker-compose down -v
    

Note: The default password in docker-compose.yml is set to your_password. For production use, change this to a secure password and update your .env file accordingly.

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/neo4j-mcp.git
    cd neo4j-mcp
    
  2. Install dependencies:

    bun install
    
  3. Configure environment variables: Create a .env file in the root directory with your Neo4j credentials:

    NEO4J_URI=neo4j://localhost:7687
    NEO4J_USERNAME=neo4j
    NEO4J_PASSWORD=your_password
    NEO4J_DATABASE=neo4j
    NODE_ENV=development
    

Usage

Starting the Server

The server uses stdio transport for communication with Cursor, so it should be started by Cursor itself. However, you can test it manually:

# Run directly
bun run index.ts

# Run with logging using the provided script
./run-mcp-server.sh

Available Tools

The MCP server exposes the following tools:

1. Connect to Neo4j with Explicit Credentials

Connects to a Neo4j database with the provided credentials.

Parameters:

  • uri: Neo4j database URI (e.g., neo4j://localhost:7687)
  • username: Neo4j database username
  • password: Neo4j database password
  • database: (Optional) Neo4j database name

2. Connect to Neo4j with Environment Variables

Connects to a Neo4j database using credentials from environment variables.

No parameters required.

3. Execute a Cypher Query

Executes a Cypher query against the connected Neo4j database.

Parameters:

  • query: Cypher query to execute
  • params: (Optional) Query parameters

4. Get Database Information

Retrieves detailed information about the connected Neo4j database, including:

  • Neo4j version and edition
  • Database name
  • Node and relationship counts
  • Available labels
  • Relationship types

No parameters required.

5. Get Connection Status

Retrieves the current connection status, including:

  • Connection state (connected/disconnected)
  • Connection details (URI, database)
  • Connection time
  • Last error (if any)

No parameters required.

6. Disconnect from Neo4j

Disconnects from the Neo4j database.

No parameters required.

Environment Variables

The following environment variables can be set in a .env file:

VariableDescriptionDefault
NEO4J_URINeo4j database URIneo4j://localhost:7687
NEO4J_USERNAMENeo4j database usernameneo4j
NEO4J_PASSWORDNeo4j database password(empty)
NEO4J_DATABASENeo4j database name(default database)
NODE_ENVEnvironment (development/production)development

Integration with Cursor

This MCP server is designed to be used with Cursor's MCP integration. Cursor will automatically detect and use the tools provided by this server.

Development

Project Structure

  • index.ts - Entry point that starts the MCP server
  • src/mcpNeo4jServer.ts - MCP server implementation using the MCP SDK
  • src/services/neo4jService.ts - Neo4j service for database operations
  • src/types/index.ts - TypeScript type definitions
  • src/utils/errorHandler.ts - Utility functions for error handling

Building for Production

To build the server for production:

# Build the server
bun build index.ts --outdir ./dist

# Make the output file executable
chmod +x ./dist/index.js

The build process bundles all dependencies into a single JavaScript file, making it easy to distribute and run the server without installing dependencies.

Running the Server

You can run the server using the provided shell script:

./run-mcp-server.sh

This script:

  • Sets the working directory to the script's location
  • Creates a logs directory if it doesn't exist
  • Runs the server using Bun and logs output to logs/mcp-server.log

Note: The script requires Bun to be installed and available in your PATH.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Neo4j MCP Server for Cursor from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/neo4j-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage