Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_neo4j_cypher-0.1.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_neo4j_cypher-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for mcp_neo4j_cypher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7e57a79a492edd52b2e2f95874e5cd3087517791d3a3c9b6b37c7392884caa4
MD5 d91a9d0a7d35d537c6be00cc6408ead3
BLAKE2b-256 ea84ebedcddc57246683b5778734c2408574fbeab6508172c56e08dffdc6afc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_neo4j_cypher-0.1.1.tar.gz:

Publisher: publish.yml on neo4j-contrib/mcp-neo4j

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_neo4j_cypher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_neo4j_cypher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d5964cc215c0cc5f107349091640f4376f724251fe41e29046d31a9916f8784
MD5 aa1e007b91cbbb01f2b6c4b18c1e5ae3
BLAKE2b-256 fcbcadf9135c1592469f86109169e03d3bf5410d7cc0b86779a6cd0dc85f9b44

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page