Neo4j MCP Server

Neo4j MCP Server is an MCP server that provides a read-only query and exploration service for Neo4j graph databases. Built with Java 21, Spring Boot, and Spring AI, it connects directly to local or remote Neo4j instances over the Bolt protocol using standard stdio communication. Database engineers, software developers, and data analysts use it to allow AI assistants to safely inspect graph structures without risking unwanted data modifications. The server strictly enforces read-only operations, allowing query statements like MATCH, RETURN, and WITH while blocking mutating commands such as CREATE, MERGE, DELETE, or DROP. Through ten specialized MCP tools, assistants can execute custom read-only Cypher queries, fetch database metadata, inspect schema constraints and indexes, traverse relationships between specific nodes, retrieve node neighborhoods up to multiple degrees of separation, and perform text searches across node properties. It also includes guardrails such as a 1000-record query limit and a 30-second timeout to maintain database stability.

Category: Databases & Data Stores

Tags: cypher, graph, neo4j, nosql

Visit Neo4j MCP Server

How to install and configure Neo4j MCP Server

  1. Ensure you have Java 21+ and Maven 3.6+ installed, along with an accessible Neo4j instance. 2. Clone the repository and configure your connection details in src/main/resources/application.properties (including neo4j.uri, neo4j.username, and neo4j.password). 3. Build the JAR file using Maven: bash ./mvnw clean package -DskipTests 4. Add the server configuration to your MCP client, such as Claude Desktop, pointing to the built JAR file: json { "mcpServers": { "neo4j": { "command": "java", "args": ["-jar", "/path/to/neo4jmcp-0.0.1-SNAPSHOT.jar"] } } } 5. Restart your MCP client to register the tools.

What you can do with Neo4j MCP Server

  • Running read-only Cypher queries to aggregate data and extract specific node patterns without risking database mutations. - Inspecting graph database schemas, including labels, relationship types, property keys, constraints, and indexes. - Exploring multi-degree node neighborhoods to visualize and analyze local cluster connectivity around specific entities. - Searching for graph entities by text matching across node properties to quickly locate matching records. - Determining direct relationship types and links existing between two designated node identifiers.

Key facts

  • Open Source
  • https://github.com/STUzhy/java-neo4j-mcp
  • Databases & Data Stores, Developer Tools & Code Intelligence
  • cypher, graph, neo4j, nosql

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

What can Neo4j MCP Server do?

Neo4j MCP Server exposes ten read-only tools to inspect and traverse Neo4j graph databases. It lets AI assistants run safe Cypher queries, view database statistics, retrieve schema details like indexes and constraints, find relationships between specific nodes, explore neighboring nodes up to several degrees of separation, and perform text searches on node attributes.

How do I install Neo4j MCP Server?

You need Java 21+ and Maven 3.6+. Clone the repository, configure your connection settings in the application properties file, and package the project using Maven with the skip tests flag. Then, register the resulting JAR file in your MCP client configuration using the java command.

Which MCP clients work with Neo4j MCP Server?

It operates over standard input and output (stdio), making it compatible with any MCP client that supports stdio process execution, including Claude Desktop.

Is Neo4j MCP Server open source?

Yes, Neo4j MCP Server is open source and hosted on GitHub under the STUzhy/java-neo4j-mcp repository.

Can Neo4j MCP Server modify data in Neo4j?

No, it enforces strict read-only safety. It permits statements containing MATCH, RETURN, OPTIONAL MATCH, and UNWIND, while explicitly rejecting write commands like CREATE, MERGE, DELETE, SET, and DROP.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories