A simple Neo4j MCP server
Project description
Neo4j MCP Server
Overview
A Model Context Protocol (MCP) server implementation that provides database interaction and allows graph exploration capabilities through neo4j. This server enables running Cypher graph queries, analyzing complex domain data, and automatically generating business insights that can be enhanced with Claude's analysis when an Anthropic API key is provided.
Components
Resources
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 Claude Desktop
# Add the server to your claude_desktop_config.json
"mcpServers": {
"neo4j": {
"command": "uv",
"args": [
"--directory",
"parent_of_servers_repo/servers/src/neo4j",
"run",
"mcp-server-neo4j",
"--db-url",
"bolt://localhost",
"--username",
"neo4j",
"--password",
"<your-password>"
]
}
}
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_neo4j_cypher-0.1.1.tar.gz.
File metadata
- Download URL: mcp_neo4j_cypher-0.1.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7e57a79a492edd52b2e2f95874e5cd3087517791d3a3c9b6b37c7392884caa4
|
|
| MD5 |
d91a9d0a7d35d537c6be00cc6408ead3
|
|
| BLAKE2b-256 |
ea84ebedcddc57246683b5778734c2408574fbeab6508172c56e08dffdc6afc4
|
Provenance
The following attestation bundles were made for mcp_neo4j_cypher-0.1.1.tar.gz:
Publisher:
publish.yml on neo4j-contrib/mcp-neo4j
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_neo4j_cypher-0.1.1.tar.gz -
Subject digest:
f7e57a79a492edd52b2e2f95874e5cd3087517791d3a3c9b6b37c7392884caa4 - Sigstore transparency entry: 154739327
- Sigstore integration time:
-
Permalink:
neo4j-contrib/mcp-neo4j@33383fc130b3c469ea6229ad1ee3b648d30c14af -
Branch / Tag:
refs/tags/mcp-neo4j-cypher-v.0.1.1 - Owner: https://github.com/neo4j-contrib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33383fc130b3c469ea6229ad1ee3b648d30c14af -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_neo4j_cypher-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_neo4j_cypher-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d5964cc215c0cc5f107349091640f4376f724251fe41e29046d31a9916f8784
|
|
| MD5 |
aa1e007b91cbbb01f2b6c4b18c1e5ae3
|
|
| BLAKE2b-256 |
fcbcadf9135c1592469f86109169e03d3bf5410d7cc0b86779a6cd0dc85f9b44
|
Provenance
The following attestation bundles were made for mcp_neo4j_cypher-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on neo4j-contrib/mcp-neo4j
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_neo4j_cypher-0.1.1-py3-none-any.whl -
Subject digest:
8d5964cc215c0cc5f107349091640f4376f724251fe41e29046d31a9916f8784 - Sigstore transparency entry: 154739329
- Sigstore integration time:
-
Permalink:
neo4j-contrib/mcp-neo4j@33383fc130b3c469ea6229ad1ee3b648d30c14af -
Branch / Tag:
refs/tags/mcp-neo4j-cypher-v.0.1.1 - Owner: https://github.com/neo4j-contrib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33383fc130b3c469ea6229ad1ee3b648d30c14af -
Trigger Event:
release
-
Statement type: