MemForgeAI/memforge
The open-source memory layer for AI agents. MCP-native, single Postgres, #1 on LOCOMO benchmark.
<div align="center">
The open-source memory layer for AI agents.
*#1 on the LOCOMO benchmark. One database. One MCP server. Four tools.*
<br/>
[](https://www.npmjs.com/package/memforge) [](https://github.com/MemForgeAI/memforge/actions) [](LICENSE) [](https://modelcontextprotocol.io/) [](https://www.postgresql.org/) [](#benchmarks)
<br/>
Quick Start • Benchmarks • How It Works • Docs
</div>
---
AI agents are stateless. Every LLM call starts from zero. MemForge fixes that.
Your agent talks to MemForge through MCP — the same protocol it uses for every other tool. It remembers what it learns, recalls what's relevant, reflects on patterns, and forgets what's outdated. No SDK. No integration code. One URL.
┌─────────────────────────────────────────────┐
│ Your AI Agent (Claude, Cursor, custom) │
│ Just adds the MemForge MCP server URL. │
├─────────────────────────────────────────────┤
│ MEMFORGE MCP SERVER │
│ Tools: remember | recall | reflect | forget│
├─────────────────────────────────────────────┤
│ CONTEXT ENGINE │
│ embed → extract → dedup → rank → pack │
├─────────────────────────────────────────────┤
│ PostgreSQL 17 │
│ pgvector (semantic) + AGE (graph) + JSONB │
└─────────────────────────────────────────────┘MemForge is #1 on the LOCOMO benchmark — the standard evaluation for long-term c
Loading reviews...