Neo4j MCP Server allows you to interact with Neo4j databases and services using natural language through the Model Context Protocol (MCP). This integration enables AI assistants like Claude to execute Cypher queries, manage knowledge graphs, control Aura instances, and create data models - all through conversation.
The mcp-neo4j-cypher
server translates natural language to Cypher queries, allowing you to query and update Neo4j databases using conversational language.
The mcp-neo4j-memory
server creates a personal knowledge graph in Neo4j, storing entities and relationships mentioned in your conversations for retrieval across different sessions and clients.
The mcp-neo4j-cloud-aura-api
server provides management capabilities for Neo4j Aura instances, enabling creation, deletion, scaling, and feature management through natural language.
The mcp-neo4j-data-modeling
server supports interactive graph data modeling and visualization, including import/export functionality with Arrows.app.
To install any of the Neo4j MCP servers, follow these general steps:
Clone the repository:
git clone https://github.com/neo4j/mcp.git
cd mcp
Navigate to the specific server directory:
cd servers/[server-name]
Install dependencies (typically using npm):
npm install
Start the server:
npm start
To use these servers with an MCP client (Claude Desktop, VS Code, Cursor, etc.), you'll need to configure the client to connect to your running MCP server. Typically, this involves adding the server URL to your client's MCP configuration.
For Claude Desktop, add the server in the Claude settings under "Model Context Protocol".
Here are some example prompts you can use with the different servers:
Cypher Server:
Memory Server:
Aura API Server:
Data Modeling Server:
For detailed documentation on each server's capabilities and configuration options, visit the dedicated server directories in the repository.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-neo4j-cypher" '{"command":"npx","args":["-y","mcp-neo4j-cypher"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-neo4j-cypher": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-cypher"
]
},
"mcp-neo4j-memory": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-memory"
]
},
"mcp-neo4j-cloud-aura-api": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-cloud-aura-api"
]
},
"mcp-neo4j-data-modeling": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-data-modeling"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-neo4j-cypher": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-cypher"
]
},
"mcp-neo4j-memory": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-memory"
]
},
"mcp-neo4j-cloud-aura-api": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-cloud-aura-api"
]
},
"mcp-neo4j-data-modeling": {
"command": "npx",
"args": [
"-y",
"mcp-neo4j-data-modeling"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect