Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

graphmemory

Skill by bradAGI

Builds and queries embedded GraphRAG knowledge graphs on DuckDB, with vector, full-text and hybrid search. Aimed at developers who need a graph store with semantic search and no separate server.

  • Score 57
  • 161 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install graphmemory

Built from the published package, never by AI.

git clone --depth 1 https://github.com/bradAGI/GraphMemory /tmp/GraphMemory && mkdir -p ~/.claude/skills && cp -r /tmp/GraphMemory ~/.claude/skills/graphmemory

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install graphmemory in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

GraphMemory is an embedded GraphRAG database built on DuckDB. It is a single Python package with no server or external services. It stores nodes and edges with vectors and supports HNSW vector search, BM25 full-text search and hybrid search. It also includes a fluent query builder, multi-hop traversal and GraphRAG context assembly.

The package adds fuzzy deduplication, DSPy-based entity and relation extraction from text, and NetworkX graph algorithms such as PageRank and centrality. It includes a zero-dependency D3.js visualizer for browsers. The source suggests it for prototyping with file-backed or in-memory graphs, and for developers who want a knowledge graph without Neo4j, Postgres or pgvector.

Written from the project's SKILL.md and checked against it.

What it can do

  • Vector, full-text and hybrid searchRuns nearest-neighbor vector search, BM25 text search, or a weighted combination of both.
  • Query builder and traversalFilters nodes by type and property and walks multi-hop paths from a source node.
  • GraphRAG retrievalAssembles graph context for a query and can answer questions through a user-supplied LLM callable.
  • Entity extraction with DSPyExtracts entities and relations from text and merges them into the graph.
  • Fuzzy merge and deduplicationMerges nodes on natural keys with Jaro-Winkler matching and cleans up existing duplicates.
  • Graph algorithmsRuns PageRank, betweenness centrality and component analysis through NetworkX.
  • Browser visualizationOpens the graph in an interactive D3.js view in the browser.
  • TransactionsGroups graph writes in an atomic block that rolls back on error.

What you need

  • Python
  • pip install graphmemory
  • Optional extras: extraction (DSPy) and algorithms (NetworkX)
  • Embedding model whose output length matches vector_length
  • LLM provider for DSPy extraction and ask (examples use OpenAI)

Try asking

  • Store these people and their reporting lines in my knowledge graph.
  • Find everyone connected to Alice within two hops in the graph.
  • Run hybrid search for who leads the ML team and show the context.

Good to know

  • Single-writer DuckDB, so do not write to the same file from multiple processes.
  • vector_length and distance_metric are fixed when the database is created.
  • Fuzzy resolve_duplicates is roughly O(n²) on large graphs.
  • Not intended for hundreds of millions of nodes.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to graphmemory

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

graphmemory: common questions

Does GraphMemory need a separate database server?

No. The source describes it as a single Python package with no server and no external services, built on DuckDB.

Can it extract a knowledge graph from raw text?

Yes. The source says the optional extraction extra uses DSPy to extract entities and relations from text and store them with deduplication.

Can I change the embedding model after creating a database?

Not directly. The source says vector_length and distance_metric are locked at init, so switching embedding models means creating a new database.

How do I install graphmemory?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is graphmemory free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is graphmemory safe to use?

It scores 57 of 100. Grades: maintenance D, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to graphmemory?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

graphmemory Install

Add to stack

Loading.