# Neo4j Cypher (MCP Server)

> Natural language to Cypher queries against Neo4j graphs

- Type: MCP server
- Publisher: Neo4j Labs (official)
- Categories: Data & Analytics
- Website: https://github.com/neo4j-contrib/mcp-neo4j
- Source: https://github.com/neo4j-contrib/mcp-neo4j
- Transport: stdio
- Launch command: uvx mcp-neo4j-cypher@0.6.0 --transport stdio
- Sign-in: api-key
- Environment variables: NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE
- GitHub stars: 986
- Listed: 2024-12-03

## About

Neo4j Labs MCP server (mcp-neo4j-cypher) that retrieves graph schema and runs read and write Cypher queries. Part of the neo4j-contrib/mcp-neo4j collection alongside memory, Aura API and data modeling servers; Labs projects are not covered by Neo4j product support.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add neo4j-cypher --env NEO4J_URI=YOUR_NEO4J_URI --env NEO4J_USERNAME=YOUR_NEO4J_USERNAME --env NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD --env NEO4J_DATABASE=YOUR_NEO4J_DATABASE -- uvx mcp-neo4j-cypher@0.6.0 --transport stdio
   ```

   config.toml:

   ```toml
   [mcp_servers.neo4j-cypher]
   command = "uvx"
   args = ["mcp-neo4j-cypher@0.6.0", "--transport", "stdio"]
   
   [mcp_servers.neo4j-cypher.env]
   NEO4J_URI = "YOUR_NEO4J_URI"
   NEO4J_USERNAME = "YOUR_NEO4J_USERNAME"
   NEO4J_PASSWORD = "YOUR_NEO4J_PASSWORD"
   NEO4J_DATABASE = "YOUR_NEO4J_DATABASE"
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Neo4j Cypher",
       params={"command": "uvx", "args": ["mcp-neo4j-cypher@0.6.0", "--transport", "stdio"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "What is in this graph?")
       print(result.final_output)
   ```

## Tools

- `get_neo4j_schema`
- `read_neo4j_cypher`
- `write_neo4j_cypher`

## Example prompts

- "What is in this graph?"
- "Find the top 10 most connected people"
- "Create a node for Acme Corp linked to Alice"
- "Show the schema of my database"

## Related

- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Graphiti MCP](https://chatgptplugins.directory/mcp/graphiti.md): Temporal knowledge graph memory for agents, by Zep
- [MCP Toolbox for Databases](https://chatgptplugins.directory/mcp/mcp-toolbox-databases.md): Google's open-source MCP server for 20+ databases
- [PostHog](https://chatgptplugins.directory/mcp/posthog.md): Query product analytics, feature flags, experiments and errors in PostHog
- [Apify](https://chatgptplugins.directory/mcp/apify.md): Run thousands of Apify Actors for scraping and automation from your agent
- [Firecrawl](https://chatgptplugins.directory/mcp/firecrawl.md): Scrape, search, crawl and interact with live web pages for LLMs

---
Source: https://chatgptplugins.directory/mcp/neo4j-cypher · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
