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
bunx @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 |
Configuration
| 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) |
Setup
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"neo4j": {
"type": "stdio",
"command": "bunx",
"args": ["@daanrongen/neo4j-mcp"],
"env": {
"NEO4J_URL": "bolt://localhost:7687",
"NEO4J_PASSWORD": "your-password"
}
}
}
}
Claude Code CLI
claude mcp add neo4j \
-e NEO4J_URL=bolt://localhost:7687 \
-e NEO4J_PASSWORD=your-password \
-- bunx @daanrongen/neo4j-mcp
Development
bun install
bun run dev # run with --watch
bun test # run test suite
bun run typecheck # tsc type check
bun run lint # biome lint
bun run build # bundle to dist/main.js
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, …)
│ ├── query.test.ts # Domain query tests (uses Neo4jClientTest)
│ └── schema.test.ts # Domain schema tests (uses Neo4jClientTest)
├── 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
License
MIT
Related Servers
Octagon
Deliver real-time investment research with extensive private and public market data.
Local Context Memory MCP
A production-ready persistent memory system for AI agents, offering searchable memory across sessions with semantic search and support for multiple database backends.
MySQL MCP Server
Provides access to a MySQL database, allowing agents to execute SQL queries.
SEC EDGAR MCP Server
Provides AI assistants with access to the SEC EDGAR database via its API.
Avro MCP Server by CData
A read-only MCP server for Avro data sources, powered by the CData JDBC Driver.
MariaDB / MySQL
Provides access to MariaDB and MySQL databases for querying and data manipulation.
Snowflake MCP Service
An MCP server for interacting with Snowflake databases.
mcp-1c
1C:Enterprise integration — metadata, BSL code search, queries, event log, syntax reference. One Go binary, zero dependencies.
MCP Redis Diagnostics
Redis diagnostics MCP server — analyze memory usage, slowlog patterns, client connections, and keyspace health with AI-powered recommendations. Lightweight npx install, no Docker required.
Hive MCP Server
Enables AI assistants to interact with the Hive blockchain through the Model Context Protocol.