Build the code graph.Query it in Neo4j too.
Use Graphify to build a graph of your codebase and serve it to agents over MCP. Use Neo4j when you need a general purpose graph database to query and join that graph with other data in Cypher. They work together: graphify export neo4j writes a Cypher import script.
Checked against neo4j.com, its docs, pricing and licensing pages and the neo4j/mcp README on 27 November 2026.
How Graphify and Neo4j differ.
Graphify builds and keeps a graph of your code and docs for your agents; Neo4j is the database you load a graph into and query in Cypher.
- 01
Graphify builds the graph of your code for you
Hosted Graphify parses each repository you connect and rebuilds the graph on every push to the default branch. Graphify CLI builds the same kind of graph on your machine. Functions, classes, imports and calls become nodes and edges, each tagged with the file and line it came from.
How Neo4j compares. Neo4j stores and queries whatever graph you model and load into it, from CSV, JSON or your own application code.
- 02
Agents query it over MCP, with nothing to run
Agents connect to the hosted Graphify MCP server with OAuth and ask for callers, paths and impact. The graph comes with Memory and pull request reviews; the Wiki is in the Graphify app.
How Neo4j compares. The Neo4j MCP server gives an agent get-schema, read-cypher, write-cypher and list-gds-procedures against a Neo4j database you run.
- 03
They work together
graphify export neo4j writes the code graph as a Cypher script, or pushes it straight to a running Neo4j database, so you can join it with other data in Cypher.
How Neo4j compares. Neo4j adds Cypher across all of your data, graph algorithms through Graph Data Science, and Browser and Bloom to look at the result.
Graphify and Neo4j, row by row.
What each one is, then how agents connect, what it costs and its licence. Numbers in brackets link to the source for that cell.
When Neo4j may fit better.
Choose Neo4j if
- You need a production graph database for data that is not code
- You need Cypher joins across several systems
- You need graph algorithms from Graph Data Science
Choose Graphify if
- You want the graph of your code built and kept current for you
- Your agents need callers, paths and impact over MCP, with nothing to run
- You want Memory and pull request reviews on the same graph
From your repository to Cypher.
These are the steps from the Neo4j export cookbook. Install Graphify CLI with the neo4j extra (it needs Python 3.11.5 through 3.14), build the graph, then export it:
uv tool install "graphifyy[neo4j]"
cd your-repo
graphify extract . --code-only
graphify export neo4j
cypher-shell -u neo4j -p "$NEO4J_PASSWORD" < graphify-out/cypher.txtOr skip the script and push to a running database with graphify export neo4j --push bolt://localhost:7687 --user neo4j, which creates an index on id for each node label and upserts with MERGE, so you can push again after a rebuild. Nodes are labelled Code, Rationale and Concept; relationships include CALLS and IMPORTS.
On 27 November 2026 we ran the export on a public repository, psf/requests. The script had 1,522 node statements and 2,902 relationship statements. We did not run the import here.
$ graphify export neo4j
cypher.txt written - import with: cypher-shell < graphify-out/cypher.txt
$ head -4 graphify-out/cypher.txt
// Neo4j Cypher import - generated by /graphify
MERGE (n:Code {id: 'tests_test_requests_testrequests'}) SET n.label = 'TestRequests';
MERGE (n:Code {id: 'src_requests_exceptions_chunkedencodingerror'}) SET n.label = 'ChunkedEncodingError';
$ grep "resolve_redirects'}), (b" graphify-out/cypher.txt | grep CALLS
MATCH (a {id: 'src_requests_sessions_sessionredirectmixin_resolve_redirects'}), (b {id: 'src_requests_exceptions_toomanyredirects'}) MERGE (a)-[:CALLS {confidence: 'EXTRACTED'}]->(b);
MATCH (a {id: 'src_requests_sessions_sessionredirectmixin_resolve_redirects'}), (b {id: 'src_requests_cookies_merge_cookies'}) MERGE (a)-[:CALLS {confidence: 'EXTRACTED'}]->(b);
MATCH (a {id: 'src_requests_sessions_sessionredirectmixin_resolve_redirects'}), (b {id: 'src_requests_sessions_sessionredirectmixin_send'}) MERGE (a)-[:CALLS {confidence: 'EXTRACTED'}]->(b);
…Graphify vs Neo4j: questions
What people ask when they want a graph of their code.
Yes. graphify export neo4j writes graphify-out/cypher.txt, a Cypher import script, and graphify export neo4j --push writes the graph straight to a running Neo4j 5 database. Install the neo4j extra for --push: uv tool install "graphifyy[neo4j]", which needs Python 3.11.5 through 3.14.
No. Hosted Graphify keeps the graph for you and agents query it over MCP, and Graphify CLI keeps it on your machine as graph.json. Neo4j is an export target for when you want Cypher or want to join the code graph with other data.
Nodes are labelled Code, Rationale and Concept. Relationships are the graph relations in upper case, such as CALLS, CONTAINS, IMPORTS and REFERENCES, and each one carries its confidence. A pushed graph also keeps source_file and source_location, so Cypher results show the file and line.
Graphify, the hosted product and the open source Graphify CLI, against Neo4j as neo4j.com, its docs, its pricing and licensing pages and the neo4j/mcp README described it on 27 November 2026.
Graphify CLI is free under Apache 2.0 and needs no account. The hosted product has a Free plan with no card for 3 repositories. Pro and Teams raise the limits.
Neo4j rows come from its getting started docs, the Cypher manual, the neo4j/mcp README, its pricing and licensing pages, all read on 27 November 2026. Graphify rows come from pricing, the Graphify MCP docs, the Neo4j export cookbook, the languages page and the graphify README. Next re-check: February 2027. Neo4j is a trademark of Neo4j, Inc.; Graphify Labs is not affiliated with it. Spotted something out of date? Tell us on GitHub.
Related: what a knowledge graph is, knowledge graph vs vector database for code, Graphify vs vector databases, integrations, all comparisons.