Neo4j
MCP server for Neo4j — run Cypher queries, explore schema, and inspect database info over stdio
neo4j-mcp
MCP server for Neo4j — run Cypher queries, explore graph schema, and inspect database info over stdio.
Installation
npx -y @daanrongen/neo4j-mcp
Tools (8 total)
| Domain | Tools | Coverage |
|---|---|---|
| Query | run_query, run_read_query | Execute Cypher queries (write and read-only) |
| Schema | get_schema, get_labels, get_relationship_types, get_indexes, get_constraints | Inspect graph schema and metadata |
| Info | get_server_info | Neo4j server address and version |
Setup
Environment variables
| Variable | Required | Description |
|---|---|---|
NEO4J_URL | Yes | Bolt URL (e.g. bolt://localhost:7687 or neo4j://localhost:7687) |
NEO4J_PASSWORD | Yes | Neo4j password (username defaults to neo4j) |
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"neo4j": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@daanrongen/neo4j-mcp"],
"env": {
"NEO4J_URL": "bolt://localhost:7687",
"NEO4J_PASSWORD": "your-password"
}
}
}
}
Or via the CLI:
claude mcp add neo4j \
-e NEO4J_URL=bolt://localhost:7687 \
-e NEO4J_PASSWORD=your-password \
-- npx -y @daanrongen/neo4j-mcp
Development
bun install
bun run dev # run with --watch
bun test # run test suite
bun run build # bundle to dist/main.js
bun run inspect # open MCP Inspector in browser
Inspecting locally
bun run inspect launches the MCP Inspector against the local build:
bun run build && bun run inspect
This opens the Inspector UI in your browser where you can call any tool interactively and inspect request/response shapes.
Architecture
src/
├── config.ts # Effect Config — NEO4J_URL, NEO4J_PASSWORD
├── main.ts # Entry point — ManagedRuntime + StdioServerTransport
├── domain/
│ ├── Neo4jClient.ts # Context.Tag service interface
│ ├── errors.ts # Neo4jError, QueryError, NodeNotFoundError
│ └── models.ts # Schema.Class models (QueryResult, SchemaInfo, IndexInfo, …)
├── infra/
│ ├── Neo4jClientLive.ts # Layer.scoped — neo4j-driver connection with acquireRelease
│ └── Neo4jClientTest.ts # In-memory Ref-based test adapter
└── mcp/
├── server.ts # McpServer wired to ManagedRuntime
├── utils.ts # formatSuccess, formatError
└── tools/ # query.ts, schema.ts, info.ts
Servidores relacionados
mcp-clickhousex
A read-only MCP server for ClickHouse that supports metadata discovery, parameterized queries, and query analysis.
Simple MySQL MCP Server
A simple MCP server for MySQL, demonstrating fundamental MCP protocol concepts. Requires a MySQL database connection configured via environment variables.
Eka MCP Server
Access medical knowledge-bases and drug information from eka.care. Requires API credentials.
Blackbaud FE NXT by CData
A read-only MCP server for Blackbaud FE NXT by CData, enabling LLMs to query live data. Requires a separate CData JDBC Driver.
MCP Variance Log
Logs statistical variations and unusual events in conversation structures to a SQLite database.
SQL Server MCP
A read-only Model Context Protocol (MCP) server for Microsoft SQL Server, enabling safe metadata discovery and parameterized SELECT queries.
MCP BigQuery Server
Securely access BigQuery datasets with intelligent caching, schema tracking, and query analytics via Supabase integration.
Discogs MCP Server
Access the Discogs API for music cataloging, search, and other database operations.
MCP Iceberg Catalog
An MCP server for interacting with Apache Iceberg catalogs and data lakes.
Videoschiri
Fussball. Live. Alle Spiele, alle TV-Sender und Streams.