MCP cover image
See in Github
2025-02-16

Une implémentation du serveur NEO4J MCP pour gérer les opérations de base de données de graphiques via le protocole de contexte du modèle

1

Github Watches

1

Github Forks

1

Github Stars

Neo4j MCP Server

A Neo4j MCP server implementation for managing graph database operations through the Model Context Protocol.

🔌 Compatible with both Cursor and Claude Desktop!

Quick Start

You can run the server directly using 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-mcpserver

Installation

If you prefer to install the package globally:

npm install -g neo4j-mcpserver

Then run it:

NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password neo4j-mcpserver

Environment Variables

You can provide the Neo4j connection details in two ways:

  1. Using a single connection string:

    NEO4J_CONNECTION=<uri>,<user>,<password>
    
  2. Using separate environment variables:

    NEO4J_URI=<your-uri>
    NEO4J_USER=<your-user>
    NEO4J_PASSWORD=<your-password>
    

You can also use a .env file in your project root:

NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-password

Configuration ⚙️

Configuring Cursor 🖥️

To set up the Neo4j MCP server in Cursor:

  1. Open Cursor Settings
  2. Navigate to Features > MCP Servers
  3. Click on the "+ Add New MCP Server" button
  4. 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:
    env=NEO4J_URI=your-neo4j-uri,NEO4J_USER=your-neo4j-user,NEO4J_PASSWORD=your-neo4j-password npx -y @neobarrientos/neo4j_mcpserver
    
    Important: Replace the credentials with your actual Neo4j database credentials.

Available Tools 🛠️

neo4j-query

Execute Cypher queries against your Neo4j database.

Example usage in Cursor:

MATCH (n) RETURN n LIMIT 5

Troubleshooting 🔧

If you encounter issues:

  1. Verify Neo4j Credentials

    • Check that your Neo4j URI, username, and password are correct
    • Ensure your Neo4j database is accessible
  2. Path Issues

    • Ensure there are no spaces in the installation path
    • Use forward slashes (/) in paths
  3. 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 start

License

ISC

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

    Reviews

    4 (1)
    Avatar
    user_xRuBguE5
    2025-04-16

    I've been using the neo4j-mcpserver by Tobarrientos2, and it's been incredibly efficient for managing my Neo4j databases. The setup is straightforward, and the documentation available on GitHub is comprehensive, making it easy even for beginners. Its seamless integration and performance enhancement features have significantly optimized my workflow. Highly recommend this tool for anyone seeking robust graph database solutions.