@neobarrientos/neo4j_mcpserver
v1.0.3
Published
A Neo4j MCP server implementation for managing graph database operations
Downloads
51
Maintainers
Readme
Neo4j MCP Server 🚀
A Neo4j MCP server implementation for managing graph database operations.
🔌 Compatible with both Cursor and Claude Desktop!
Prerequisites 🔧
Before you begin, ensure you have:
- Neo4j database credentials
- Node.js (v16 or higher)
- Cursor IDE (v0.45.6 or higher) or Claude Desktop
Installation ⚡
npx @neobarrientos/neo4j_mcpserverConfiguration ⚙️
Configuring Cursor 🖥️
To set up the Neo4j MCP server in Cursor:
- Open Cursor Settings
- Navigate to Features > MCP Servers
- Click on the "+ Add New MCP Server" button
- Fill out the following information:
- Name: Enter a nickname for the server (e.g., "neo4j-mcp")
- Type: Select "command" as the type
- Command: Enter the command to run the server:
Important: Replace the credentials with your actual Neo4j database credentials.env=NEO4J_URI=your-neo4j-uri,NEO4J_USER=your-neo4j-user,NEO4J_PASSWORD=your-neo4j-password npx -y @neobarrientos/neo4j_mcpserver
Using Environment Variables 🔑
If you prefer not to include credentials in the command, you can use a .env file:
- Create a
.envfile in your project root:
NEO4J_URI=your-neo4j-uri
NEO4J_USER=your-neo4j-user
NEO4J_PASSWORD=your-neo4j-password- Then use this command in Cursor:
npx @neobarrientos/neo4j_mcpserverAvailable Tools 🛠️
neo4j-query
Execute Cypher queries against your Neo4j database.
Example usage in Cursor:
MATCH (n) RETURN n LIMIT 5Troubleshooting 🔧
If you encounter issues:
Verify Neo4j Credentials
- Check that your Neo4j URI, username, and password are correct
- Ensure your Neo4j database is accessible
Path Issues
- Ensure there are no spaces in the installation path
- Use forward slashes (/) in paths
Tool Detection Issues
- Try restarting Cursor
- Verify the server is running (check Cursor's MCP server list)
- Check that environment variables are properly set
Development 👩💻
To run locally:
git clone <repository-url>
cd neo4j-mcpserver
npm install
npm run build
npm startLicense
ISC
