Run Cypher queries, explore graph schemas, and analyze relationships in Neo4j directly from Claude Code — perfect for recommendation engines, fraud detection, and knowledge graphs.
The Neo4j MCP connects Claude Code to your Neo4j graph database instance, enabling it to execute Cypher queries, traverse relationships, inspect graph schemas, and reason about highly connected data. It is especially valuable for domains where relationships between entities are as important as the entities themselves — social networks, fraud detection, supply chains, and knowledge graphs.
mcpizy install neo4j
Provide your Neo4j Bolt URI (e.g., bolt://localhost:7687 or neo4j+s://xxxx.databases.neo4j.io), username, and password during setup.
Find all users who purchased the same product as a given user (collaborative filtering seed):
MATCH (u:User {id: "user_123"})-[:PURCHASED]->(p:Product)
<-[:PURCHASED]-(other:User)
WHERE other <> u
RETURN other.id, count(p) AS shared_products
ORDER BY shared_products DESC
LIMIT 10;
:User(id)) — ask Claude to verify your index plan before querying large graphs.gds.pageRank or gds.louvain.