Neo4j MCP Server
Servidor MCP Neo4j
Una implementación de servidor MCP de Neo4j para administrar operaciones de bases de datos gráficas a través del Protocolo de Contexto de Modelo.
🔌 ¡Compatible con Cursor y Claude Desktop!
Inicio rápido
Puedes ejecutar el servidor directamente usando npx:
# Using a single connection string
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password npx neo4j-mcpserver
# Or using separate environment variables
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io NEO4J_USER=neo4j NEO4J_PASSWORD=your-password npx neo4j-mcpserverRelated MCP server: Neo4j MCP Server
Instalación
Si prefiere instalar el paquete globalmente:
npm install -g neo4j-mcpserverLuego ejecútalo:
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password neo4j-mcpserverVariables de entorno
Puede proporcionar los detalles de conexión de Neo4j de dos maneras:
Usando una sola cadena de conexión:
NEO4J_CONNECTION=<uri>,<user>,<password>Usando variables de entorno separadas:
NEO4J_URI=<your-uri> NEO4J_USER=<your-user> NEO4J_PASSWORD=<your-password>
También puedes utilizar un archivo .env en la raíz de tu proyecto:
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-passwordConfiguración ⚙️
Configurando el cursor 🖥️
Para configurar el servidor MCP de Neo4j en Cursor:
Abrir configuración del cursor
Vaya a Características > Servidores MCP
Haga clic en el botón "+ Agregar nuevo servidor MCP"
Complete la siguiente información:
Nombre: Ingrese un apodo para el servidor (por ejemplo, "neo4j-mcp")
Tipo: Seleccione "comando" como tipo
Comando: Ingrese el comando para ejecutar el servidor: GXP7
Importante: reemplace las credenciales con sus credenciales de base de datos Neo4j reales.
Herramientas disponibles 🛠️
consulta neo4j
Ejecute consultas Cypher en su base de datos Neo4j.
Ejemplo de uso en Cursor:
MATCH (n) RETURN n LIMIT 5Solución de problemas 🔧
Si encuentra problemas:
Verificar credenciales de Neo4j
Comprueba que tu URI, nombre de usuario y contraseña de Neo4j sean correctos
Asegúrese de que su base de datos Neo4j sea accesible
Problemas de ruta
Asegúrese de que no haya espacios en la ruta de instalación
Utilice barras diagonales (/) en las rutas
Problemas de detección de herramientas
Intente reiniciar el cursor
Verifique que el servidor esté ejecutándose (verifique la lista de servidores MCP de Cursor)
Compruebe que las variables de entorno estén configuradas correctamente
Desarrollo 👩💻
Para ejecutar localmente:
git clone <repository-url>
cd neo4j-mcpserver
npm install
npm run build
npm startLicencia
ISC
Available Tools
1 toolneo4j-queryC
Execute a Cypher query against the Neo4j database
Inputs: query (required), parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a single, clear purpose: executing Cypher queries against a Neo4j database.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'neo4j-query' follows a clear and descriptive pattern, though no pattern can be established or broken with a single tool.
A single tool is too few for a database server's apparent scope, which typically requires operations like creating, updating, deleting, and querying data. This minimal set limits functionality and forces all operations through a generic query interface, which is insufficient for structured interactions.
The tool surface is severely incomplete for a Neo4j database server. While 'neo4j-query' allows executing arbitrary Cypher queries, it lacks dedicated tools for common operations like creating nodes, updating relationships, or managing transactions, leaving significant gaps that agents must work around with raw queries.
Maintenance
Related MCP Connectors
Intelligent context infrastructure for AI teams: knowledge graph, sessions, tasks, documents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A private graph database you query in plain English or Cypher. Hosted, nothing to install.
Draw, shape, and edit Neo4j graph data models in toro4n with your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with persistent graph database memory using Neo4j, enabling task management, relationship understanding, semantic search with embeddings, file indexing, and multi-agent coordination through the Model Context Protocol.290MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Neo4j graph databases through natural language, supporting Cypher queries, schema management, data manipulation, and graph algorithms.MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Neo4j databases from the Cursor IDE by executing Cypher queries, managing connections, and retrieving database information.3-

Graphiti MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceA knowledge graph server for AI agents, built with Neo4j and integrated with Model Context Protocol, enabling dynamic graph management and semantic search.141MIT