MrTechKing

6 min read

Graphiti: Give AI Agents a Memory That Tracks Changing Facts (GitHub, Scanned)

A free Python framework from Zep that turns chats and data into a knowledge graph for AI agents, tracking when each fact changes.

Graphiti logo
✅
Scan: safe. Nothing malicious. Two things to know: it sends anonymous usage statistics to PostHog unless you set GRAPHITI_TELEMETRY_ENABLED=false, and its MCP and REST servers have no sign-in, so keep them off open networks. Scanned Nov 28, 2026; the full report is below.

Graphiti is a free, open-source Python framework that gives AI agents a long-term memory in the form of a knowledge graph. You feed it episodes, such as chat messages, emails or JSON records, and a language model picks out the people, products and facts in them and links them in a graph database. Your agent then searches that graph by meaning, keywords and connections, and gets back facts such as "Kendra loves Adidas shoes" together with when that became true.

It earns its place because it keeps history instead of overwriting it: when a fact changes, the old one is marked as no longer valid rather than deleted, so an agent can answer both what is true now and what was true in March. New data is added piece by piece without rebuilding the graph, every fact links back to the episode it came from, and you can define your own entity types with Pydantic. It works with Neo4j, FalkorDB, Amazon Neptune or an embedded database, uses OpenAI by default and also supports Anthropic, Gemini, Groq and local models through OpenAI-compatible servers such as Ollama. Its MCP server lets Claude, Cursor and other assistants use it as memory.

Graphiti is Apache-2.0 licensed and maintained by Zep, a company that sells a hosted context platform built on it; Graphiti itself is self-hosted only. It has about 33,000 stars and around 70 contributors. graphiti-core 0.32.1 and version 1.1.5 of its MCP server came out on 24 November 2026.

  • Repository: github.com/getzep/graphiti
  • Licence: Apache-2.0 (Apache License 2.0)
  • Language: Python. Stars: 33.2K. Forks: 3,421. Last push: Nov 27, 2026.
  • Scan: safe, Nov 28, 2026, commit 343a7bb

Who it is for

Developers building AI agents, chatbots and assistants that need to remember people over time, and teams trying graph-based retrieval instead of plain RAG. You need Python 3.10 or newer, a graph database (Docker is the easy way) and an API key for a language model, or a local model server.

Getting started

1. Start FalkorDB, the graph database, in Docker (it also opens a web view on port 3000)

docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest

2. In another terminal, install Graphiti with FalkorDB support

pip install "graphiti-core[falkordb]"

3. Give it a language model key (OpenAI by default)

export OPENAI_API_KEY=your-key

4. Run the official quickstart, which adds a few episodes and searches them

git clone https://github.com/getzep/graphiti
cd graphiti/examples/quickstart
pip install -r requirements.txt
python quickstart_falkordb.py

5. Optional: turn off its anonymous usage statistics

export GRAPHITI_TELEMETRY_ENABLED=false

6. Read the docs, including the MCP server guide

https://help.getzep.com/graphiti

pip installs graphiti-core and its 9 dependencies, including the PostHog library it uses for usage statistics, and changes nothing else. The docker run line opens the database on ports 6379 and 3000 to your network with no password, so use it on a private machine. The example sends your episode text to OpenAI to pull out facts and make embeddings, which costs API credits. The MCP and REST servers in the repo are reference code with no sign-in, meant for your own machine. Our scan covers the source code, not the PyPI packages or Docker images.

Safety scan

We cloned getzep/graphiti at commit 343a7bb on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 0 secret hits and no committed binaries across 458 files and about 110,000 lines, almost all Python. graphiti_core/telemetry/telemetry.py holds a PostHog project key, which is a public key made to ship inside apps, not a secret.
  • 0 pattern hits. The one script the scanner lists as an installer, .github/scripts/setup-triage-labels.sh, creates issue labels on GitHub for the maintainers and is not part of what you install. The odd hosts in the code are test values, such as help.getzep.com.evil.com in a test that checks the pull request bot strips look-alike links, plus api.typesafe.ai, the address of an optional decision model client that is only used if you set it up.
  • No install script: you install the graphiti-core package with pip or uv, which pulls in 9 required dependencies, or run the MCP server from the zepai/knowledge-graph-mcp Docker image with the Compose files in mcp_server/docker, which bind every port to your own machine only.
  • 16 advisories across 497 Python packages in 4 lockfiles, none critical. The 7 high ones in the main lockfile are in pyasn1, soupsieve and jupyter-server, which come from the developer tools (Jupyter) and the optional Google Gemini extra, not the basic install. The MCP server's Docker image does ship pyasn1 0.6.4 through its Google provider, with 4 high bugs that let crafted ASN.1 data use a lot of CPU; Graphiti only reaches it through Google's sign-in library. The REST server's lockfile has 0.
  • Graphiti talks to the model and database you configure and, each time it starts, sends PostHog an anonymous ID, its version, your OS, Python version and architecture, and which providers you picked; it skips this under pytest or when GRAPHITI_TELEMETRY_ENABLED=false, and the README lists all of it. 15 workflows. Of the 3 on pull_request_target, the CLA bot and the intake bot never run pull request code, and the lint job checks out fork code but only runs ruff on it, with a read-only token, no secrets and credentials removed. All 19 third-party actions are pinned to a commit. A security policy, Dependabot and CodeQL are present; no OpenSSF Scorecard result.

What the scanner counted

CheckResult
SecretsNone found.
Suspicious codeNone found.
Install-time code1 installer script
Committed binariesNone.
CI workflows15 workflows. 3 use pull_request_target, 1 of which check out the pull request head. 0 of 19 third-party actions pinned to a tag rather than a commit.
Network hosts27 distinct hosts referenced from source; most often www.apache.org, api.anthropic.com, api.openai.com, github.com. No URLs to bare IP addresses.
Known vulnerabilities16 advisories across 328 pinned packages: 0 critical, 7 high, 7 moderate, 2 low. examples/opentelemetry/uv.lock: 36 packages, 1 advisories; mcp_server/uv.lock: 158 packages, 7 advisories; server/uv.lock: 66 packages, 0 advisories; uv.lock: 237 packages, 16 advisories.
Project hygieneHas security policy, automated dependency updates, CodeQL, licence file, contributing guide.
OpenSSF ScorecardNot scored: the project is not in Scorecard's weekly index.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Installer scripts (1)
Worst known vulnerabilities (16 of 16)
AdvisorySeverityPackageSummary
GHSA-2qm8-x737-gmw5highpyasn1@0.6.4pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding
GHSA-9m75-vc3g-4x39highpyasn1@0.6.4pyasn1 has quadratic-time denial of service in constructed string and indefinite-length ANY decoding
GHSA-fm9c-5rcf-2q5phighpyasn1@0.6.4pyasn1 has quadratic CPU use in schemaless BER/CER/DER container decoding
GHSA-mm57-4v3p-rchxhighpyasn1@0.6.4pyasn1 has quadratic-complexity denial of service in binary REAL decoding
GHSA-c3mw-737p-c7g2highjupyter-server@2.20.0Jupyter Server: 5xx request logging leaks token-bearing Referer header values
GHSA-6655-6qjp-jx7xhighsoupsieve@2.9.2Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
GHSA-mmhr-3c5m-f64fhighsoupsieve@2.9.2Soup Sieve: Polynomial-time denial of service in the descendant combinator
GHSA-mf5v-w3w3-f6cgmoderateopentelemetry-api@1.45.1OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
GHSA-69hj-f68j-2879moderatefilelock@3.20.3filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
GHSA-8mx5-7m5m-r77gmoderatefilelock@3.20.3filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
GHSA-4j63-6c4x-wfg4moderatesoupsieve@2.9.2Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time
GHSA-7g44-g9rc-x53wmoderatesoupsieve@2.9.2Soup Sieve: Uncontrolled recursion in CSS parser lets nested pseudo-class selectors exhaust the Python call stack
GHSA-pcg2-g6cj-q92cmoderatetornado@6.5.10Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
GHSA-r4j5-9xpp-3985moderatetornado@6.5.10Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunks
GHSA-5cjw-f85j-cv6rlowtornado@6.5.10Tornado: Open redirect via triple-slash redirect paths
GHSA-pw9p-v7r6-gx4plowtornado@6.5.10Tornado: Open redirect in RedirectHandler via protocol-relative URLs
Workflows worth a look

By the numbers

Stars33.2K
Forks3,421
Contributors66
Commits1,120
Open issues278
Open pull requests309
Releases206
Latest releasemcp-v1.1.5
LicenceApache-2.0
Main languagePython
Project age2 years
Last pushNov 27, 2026
Tracked files458
Lines of code110K
Checkout size24 MB

Lines by language: Python 92K, Markdown 8,123, JSON 3,481, YAML 3,439, Jupyter 2,529, TOML 282.

Questions

Is Graphiti free?

Yes. It is free and open source under Apache-2.0. You pay for the language model API it calls, unless you run a local model, and Zep, the company behind it, sells a separate hosted platform built on Graphiti.

Graphiti or plain RAG?

Plain RAG searches chunks of documents and is enough for a fixed set of files. Graphiti suits data that changes, such as what a user told your assistant last week, because it links facts and records when each one was true.

Does Graphiti send my data anywhere?

Your episode text goes to the language model and embedding service you configure, OpenAI by default, and the graph stays in your own database. It also sends anonymous usage statistics to PostHog, without your content, until you set GRAPHITI_TELEMETRY_ENABLED=false.

Can I use Graphiti with Claude or Cursor?

Yes, through its MCP server, which gives an assistant tools to add and search memories. It runs on your machine with Docker and has no sign-in, so keep it to your own computer.

Does Graphiti work with a local model?

Yes, through any OpenAI-compatible server such as Ollama, vLLM or LM Studio. The README warns that smaller models often get its structured output wrong, which makes adding data fail.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.