The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Memgraph listing page.
Build powerful AI applications with graph-powered RAG using Memgraph. This toolkit provides everything you need to integrate knowledge graphs into your GenAI workflows.
Turn your Claude Code and Codex sessions into a queryable knowledge graph. Install the plugin and every session records the tools it called, the skills it used, and the memories it wrote — all joined on a shared (:Session) node in Memgraph.
Inside Claude Code:
Then bootstrap, set your identity, and verify:
Query across every session — e.g. which skills a user has used:
👉 Context Graph guide — components, Codex setup, SDK usage, and reconciling sessions into an entity graph.
Transform PDFs, URLs, and documents into queryable knowledge graphs:
👉 Full Documentation | Examples
Expose Memgraph to LLMs via MCP. Run with Docker:
Available Tools:
| Tool | Description |
|---|---|
run_query | Execute Cypher queries |
search_schema | Search the graph schema by regex pattern |
get_node_schema | Get full schema definition of a node by its labels |
get_relationship_schema | Get full schema definition of a relationship |
get_enum_schema | Get schema definition of an enum by its name |
Migrate from MySQL/PostgreSQL to Memgraph with AI assistance:
| Package | Description | Install |
|---|---|---|
| memgraph-toolbox | Core utilities for Memgraph | pip install memgraph-toolbox |
| langchain-memgraph | LangChain tools and chains | pip install langchain-memgraph |
| mcp-memgraph | MCP server for LLMs | pip install mcp-memgraph |
| unstructured2graph | Document to graph conversion | pip install unstructured2graph |
| lightrag-memgraph | LightRAG storage on Memgraph | pip install lightrag-memgraph |
| sql2graph | Database migration agent | See docs |
A family of components that persist your Claude Code / Codex sessions into one Memgraph graph. See the Context Graph guide.
| Package | Description | Install |
|---|---|---|
| agent-context-graph | Event hub: routes runtime hooks to connectors | pip install agent-context-graph |
| actions-graph | Tool calls, results, messages as action nodes | pip install actions-graph |
| skills-graph | Skill definitions and per-session skill usage | pip install skills-graph |
| sessions-graph | User/session provenance, memories, reconciliation | pip install sessions-graph |
Which databases are supported? Memgraph is the primary target. The sql2graph agent supports MySQL and PostgreSQL as source databases.
Do I need an LLM API key? Yes, for features like entity extraction (unstructured2graph) and natural language queries (langchain-memgraph).
Can I use local LLMs? Yes! LangChain integration supports any LangChain-compatible model, including Ollama.
⭐ If you find this toolkit helpful, please star the repository!
You can build and test each package directly from your repo.
Create a .env file with your OPENAI_API_KEY, as the tests depend on LLM calls:
The Context Graph components (and unstructured2graph) test against a live Memgraph. scripts/dev-memgraph.sh owns that lifecycle — it starts an isolated instance, runs each component's suite against it, and tears down:
To run a complete database migration workflow with the agent:
Note: The agent requires both MySQL and Memgraph connections. Set up your environment variables in .env based on .env.example.
If you are running any test on macOS in zsh, add "" to the command: