Java-based MCP server for Neo4j graph database interaction

Java-based MCP server for Neo4j graph database interaction

mcp-neo4j-server-sse-java•bydsimile

An MCP server that provides database interaction and graph exploration capabilities through Neo4j, supporting Cypher query execution over SSE or STDIO transports.

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

WHAT IT DOES

  • •Executes Cypher read queries against the Neo4j database and returns results as an array of objects.
  • •Executes updating Cypher queries and returns a result summary counter.
  • •Retrieves the graph database schema, including node types, their attributes, and relationships to other node types.
  • •Supports both SSE and STDIO transports for client connectivity.

BEST FOR

  • •Exploring and querying Neo4j graph databases through an MCP client.
  • •Inspect graph schema when building or analyzing domain data with an AI assistant.

ABOUT MCP-NEO4J-SERVER-SSE-JAVA

Java-based MCP server for Neo4j graph database interaction is cataloged as an MCP server attributed to dsimile. An MCP server that provides database interaction and graph exploration capabilities through Neo4j, supporting Cypher query execution over SSE or STDIO transports. 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 License. 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 Java-based MCP server for Neo4j graph database interaction 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

What transports does this MCP server support?

It supports SSE (Server-Sent Events) and STDIO transports.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b3982d3a183c · 采集于 2026-11-13 14:07:17 UTC

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

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

mcp-neo4j-server-sse-java

mcp-neo4j-server-sse-java is an MCP server implemented by Java using SSE (Server-Sent Events) server transport or STDIO transport as the transport protocol.

Overview

A Model Context Protocol (MCP) server implementation that provides database interaction and allows for graph exploration capabilities through Neo4j. This server enables the execution of Cypher graph queries, analysis of complex domain data, and supports the selection of remotely accessible databases. Inspired by neo4j-contrib/mcp-neo4j.

The project showcases:

  • Integration with spring-ai-mcp-server-webflux-spring-boot-starter
  • Support for both SSE (Server-Sent Events) and STDIO transports
  • Automatic tool registration using Spring AI's @Tool annotation

Prompts

The server provides a demonstration prompt:

  • mcp-demo: Interactive prompt that guides users through database operations
    • Generates appropriate database schemas and sample data

Tools

The server offers six core tools:

Query Tools

  • read-neo4j-cypher

    • Execute Cypher read queries to read data from the database
    • Input:
      • query (string): The Cypher query to execute
    • Returns: Query results as array of objects
  • write-neo4j-cypher

    • Execute updating Cypher queries
    • Input:
      • query (string): The Cypher update query
    • Returns: a result summary counter with { nodes_updated: number, relationships_created: number, ... }

Schema Tools

  • get-neo4j-schema
    • Get a list of all nodes types in the graph database, their attributes with name, type and relationships to other node types
    • No input required
    • Returns: List of node label with two dictionaries one for attributes and one for relationships

Usage with Cline client

1.Clone the repository

git clone https://github.com/dsimile/mcp-neo4j-server-sse-java.git

2.Building the Project

  • Java 17+
cd mcp-neo4j-server-sse-java

mvn clean install -DskipTests

3.Running the Server

  • WebFlux SSE Mode (Default)
    • spring.ai.mcp.server.stdio (Default): false
    • Server ip (Default): 0.0.0.0
    • Server port (Default): 8543
    • Neo4j uri (Default): neo4j://localhost:7687
    • Neo4j username (Default): neo4j
    • Neo4j password (Default): neo4j
    • Neo4j database (Default): neo4j
java -jar target/mcp-neo4j-server-sse-java-1.0-SNAPSHOT.jar
  • STDIO Mode

To enable STDIO transport, set the appropriate properties:

java -Dspring.ai.mcp.server.stdio=true \
     -Dspring.main.web-application-type=none \
     -Dneo4j.uri=neo4j://localhost:7687 \
     -Dneo4j.username=neo4j \
     -Dneo4j.password=<your password> \
     -Dneo4j.database=<your database> \
     -Dlog.path=/absolute/path/to/ \
     -jar target/mcp-neo4j-server-sse-java-1.0-SNAPSHOT.jar

Note: Please ensure that Neo4j is running and accessible for remote connections.

Released Package

Add the server to your cline_mcp_settings.json.

  • WebFlux SSE Mode (Default)
{
  "mcpServers": {
    "neo4j-remote": {
      "url": "http://0.0.0.0:8543/sse",
      "disabled": false,
      "autoApprove": []
    }
  }
}
  • STDIO Mode
{
  "mcpServers": {
    "neo4j-local": {
      "disabled": false,
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dneo4j.uri=neo4j://localhost:7687",
        "-Dneo4j.username=neo4j",
        "-Dneo4j.password=<your password>",
        "-Dneo4j.database=<your database>",
        "-Dlog.path=/absolute/path/to/",
        "-jar",
        "/absolute/path/to/mcp-neo4j-server-sse-java-1.0-SNAPSHOT.jar"
      ],
      "transportType": "stdio"
    }
  }
}

Replace /absolute/path/to/ with the actual path to your built jar file or log file.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

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 Java-based MCP server for Neo4j graph database interaction 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/mcp-neo4j-server-sse-java)

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