By neo4j-labs
MKG: Neo4j-backed agent memory — capture/recall hooks + MCP server (Neo4j, BigQuery, neocarta).
Memory-grounded multiagent orchestration. Recall prior MKG learnings, deploy subagents to execute a task in verified phases while routing memory into each one, then capture durable new learnings back to the graph. Use to execute, run, or carry out a task or plan with the Meta Knowledge Graph in the loop.
Set up the RoadFlex sales-agent demo for MKG - configure the repo .env, seed Neo4j, optionally enable Diffbot and BigQuery/Neocarta, and verify the MCP tools mount.
Matches all tools
Hooks run on every tool call, not just specific ones
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
The Meta Knowledge Graph (MKG) is a self-improving, graph-structured memory
layer for AI agents, backed by Neo4j. It is harness-agnostic: the Neo4j
store and the MCP server plug into any MCP-capable harness, and the
capture/injection scripts ride on whatever lifecycle hooks the harness exposes.
This repo ships ready-made wiring for Claude Code
(.claude/settings.json) and Codex
(.codex/config.toml plus
.codex/hooks.json); plugging a custom harness in means
pointing its lifecycle events at the same scripts.
It ships as two halves that form a closed capture-and-recall loop:
meta-knowledge-graph) — surfaces project memory, the underlying
graph, the persisted system prompt, and (optionally) a data catalog and
warehouse to the agent as tools.:Learning (scoped project or user) and
:Decision candidates from what just happened.The hooks write to the same graph the MCP tools read from, so each new session starts with the most relevant prior learnings already injected — both project-scoped memory and durable facts about the user. The persisted system prompt and memory extraction prompt are frozen at runtime: they are read on start but never rewrite themselves. The only writers besides the seed scripts are the deliberate consolidation services — a rate-limited Stop/SessionEnd hook that folds accumulated user-profile memory into the system prompt once enough of it has piled up unreviewed, keeping every superseded prompt as version history.
A complete end-to-end demo — a B2B sales / customer-success assistant for an enterprise car-rental provider — ships in the repo; see Sales agent use case for setup.
MKG is harness-agnostic, and there are two ways to run it:
.codex/ wiring is committed, so opening this repo Just Works,
and any harness with lifecycle hooks can drive the same scripts. Dedicated
plugins for Codex and other harnesses are on the roadmap.Either way MKG is two halves — lifecycle hooks (capture + recall) and an
MCP server (Neo4j / BigQuery / neocarta tools) — and the only host
prerequisites are uv and a reachable Neo4j
instance; both halves execute through uv.
claude plugin marketplace add neo4j-labs/meta-knowledge-graph
claude plugin install meta-knowledge-graph@mkg
mkg; the qualified plugin id is meta-knowledge-graph@mkg.SessionStart hooks bootstrap a
uv virtualenv for the plugin cache (one-time; that session is slower).
Later sessions reuse it, and optional MCP subprocesses run from that same
environment instead of doing their own uvx startup install.claude plugin list shows meta-knowledge-graph@mkg enabled; inside
a session the MKG system prompt is injected and mcp__meta-knowledge-graph__*
tools are available.claude plugin disable meta-knowledge-graph@mkg
claude plugin enable meta-knowledge-graph@mkg
claude plugin details meta-knowledge-graph@mkg # component inventory + token cost
Credentials live in one user-global file, ~/.config/meta-knowledge-graph/.env
(mode 600), read by both the hooks and the MCP server. It survives plugin
updates and is never written into the ephemeral plugin cache.
MKG deliberately does not use
/plugin configure— there is nouserConfig/keychain schema, so credentials stay file-based and portable across harnesses (Codex, etc.).
Run the wizard in your own terminal (it prompts for secrets):
uv run --project ~/.claude/plugins/marketplaces/mkg meta-knowledge-graph setup
…or write the file by hand:
mkdir -p ~/.config/meta-knowledge-graph
cat > ~/.config/meta-knowledge-graph/.env <<'EOF'
NEO4J_URI=neo4j+s://xxxx.databases.neo4j.io
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=change-me
NEO4J_DATABASE=neo4j
OPENAI_API_KEY=sk-... # optional: memory extraction + embeddings
# ANTHROPIC_API_KEY / GEMINI_API_KEY / OPENROUTER_API_KEY / DIFFBOT_TOKEN also honored
EOF
chmod 600 ~/.config/meta-knowledge-graph/.env
npx claudepluginhub neo4j-labs/meta-knowledge-graph --plugin meta-knowledge-graphMemory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.
Editorial "Web Designer" bundle for Claude Code from Antigravity Awesome Skills.
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses