Best Memory & Knowledge MCP servers

Long-term memory, knowledge graphs, RAG and document understanding for more context-aware assistants. We track 46 servers in this category, ranked by GitHub stars with maintenance status and ready-to-copy configs for Claude Desktop, Cursor and VS Code.

Top picks

  1. Memory (Knowledge Graph) (official reference server) — Basic persistent memory using a local knowledge graph of entities, relations and observations, so the assistan… (★ 91.2k, updated 3 days ago)
  2. headroom — Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen… (★ 75.2k, updated today)
  3. private-gpt — Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more… (★ 57.6k, updated today)
  4. context-mode — Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memo… (★ 27.9k, updated yesterday)
  5. xberg — Polyglot document intelligence with a Rust core: extract text, metadata, images, tables, and structured data f… (★ 9.4k, updated today)

Showing all 46 servers

Memory (Knowledge Graph) (official reference server)

by modelcontextprotocol · TypeScript

Basic persistent memory using a local knowledge graph of entities, relations and observations, so the assistant can remember information about you across chats.

Memory & KnowledgeOfficialMaintained91.2k (repo)

headroom

by headroomlabs-ai · Python

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

Memory & KnowledgeMaintained75.2k

private-gpt

by zylon-ai · Python

Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more. Works with any OpenAI-compatible inference server.

Memory & KnowledgeMaintainedRemote57.6k

context-mode

by mksglu · TypeScript

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

Memory & KnowledgeMaintained27.9k

xberg

by xberg-io · Rust

Polyglot document intelligence with a Rust core: extract text, metadata, images, tables, and structured data from 106 formats across 140 file extensions, plus code intelligence for 371 languages. Fifteen bindings, with CLI, REST API, and MCP server.

Memory & KnowledgeMaintained9.4k

engram

by Gentleman-Programming · Go

Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5, MCP server, HTTP API, CLI, and TUI.

Memory & KnowledgeMaintained7.2k

gemini-notebook-mcp-cli

by jacob-bd · Python

Programmatic access to Gemini Notebook - via command-line interface (CLI), Model Context Protocol (MCP) server, and AI agent skills.

Memory & KnowledgeMaintained6.3k

pipeshub-ai

by pipeshub-ai · Python

The open-source context layer for AI agents. PipesHub turns your company's knowledge (Slack, Drive, Jira, GitHub, Microsoft 365 and 40+ connectors) into a permission-aware workspace that agents can search, grep, navigate and cite. MCP, SDKs and built-in agents. Self-hosted.

Memory & KnowledgeMaintained3.8k

markdownify-mcp

by zcaceres · TypeScript

A Model Context Protocol server for converting almost anything to Markdown

Memory & KnowledgeMaintained3k

kordoc

by chrisryugj · TypeScript

모두 파싱해버리겠다 — HWP·HWPX·PDF·Office 문서를 Markdown으로. 양식 자동 채우기와 신구대조를 갖춘 CLI·MCP 서버 | Convert Korean documents (HWP, HWPX, PDF, Office) to Markdown — CLI and MCP server with form filling and diff

Memory & KnowledgeMaintained2.4k

agentset

by agentset-ai · TypeScript

The open-source RAG platform: built-in citations, deep research, 22+ file formats, partitions, MCP server, and more.

Memory & KnowledgeMaintained2.1k

mcp-memory-service

by doobidoo · Python

Open-source persistent memory for AI agent pipelines (LangGraph, CrewAI, AutoGen) and Claude. REST API + knowledge graph + autonomous consolidation.

Memory & KnowledgeMaintainedRemote2k

llmwiki

by lucasastorian · Python

Open Source Implementation of Karpathy's LLM Wiki. Upload documents, connect your Claude account via MCP, and have it write your wiki !

Memory & KnowledgeMaintained1.7k

arkon

by nduckmink · Python

Arkon: Enterprise AI Knowledge Hub & MCP Server. Self-hosted knowledge base for teams to manage RAG contexts, access policies, and AI skills. Connect Claude and other LLMs via Model Context Protocol (MCP) for automated, secure organizational knowledge integration.

Memory & KnowledgeAging1.5k

nocturne_memory

by Dataojitori · Python

A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents. Say goodbye to Vector RAG and amnesia. Empower your AI with persistent, graph-like structured memory across any model, session, or tool. Drop-in replacement for OpenClaw.

Memory & KnowledgeMaintainedRemote1.4k

MODULAR-RAG-MCP-SERVER

by jerry-ai-dev · Python

A modular RAG (Retrieval-Augmented Generation) system with MCP Server architecture. Using Skill to make AI follow each step of the spec and complete the code 100% by AI.

Memory & KnowledgeAging1.2k

anymd

by SylphxAI · Rust

Any file → clean Markdown for AI agents: PDF, Word, PowerPoint, Excel, EPUB, HTML and web pages, images (OCR), audio and video (metadata, subtitles, transcripts). A fast Rust MCP server and CLI that runs on your machine. No API key.

Memory & KnowledgeMaintained1k

memory-bank-mcp

by alioshr · TypeScript

A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.

Memory & KnowledgeStale919

mcp-knowledge-graph

by shaneholloman · JavaScript

MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development

Memory & KnowledgeAging888

okf-agent-memory

by okf-memory · Go

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

Memory & KnowledgeMaintained771

stash

by alash3al · Go

Stash — persistent memory layer for AI agents. Episodes, facts, and working context stored in Postgres. MCP server included. Self-hosted, single binary, no cloud required.

Memory & KnowledgeAgingRemote769

context-portal

by GreatScottyMac · Python

Context Portal (ConPort): A memory bank MCP server building a project-specific knowledge graph to supercharge AI assistants. Enables powerful Retrieval Augmented Generation (RAG) for context-aware development in your IDE.

Memory & KnowledgeAging767

memora

by agentic-box · Python

Give your AI agents persistent, collective memory — with deduplicating absorb, supersession lineage, semantic search, and a graph UI. Speaks MCP.

Memory & KnowledgeMaintainedRemote737

MegaMemory

by 0xK3vin · TypeScript

Persistent project knowledge graph for coding agents. MCP server with semantic search, in-process embeddings, and web explorer.

Memory & KnowledgeAging722

mcp-mem0

by coleam00 · Python

MCP server for long term agent memory with Mem0. Also useful as a template to get you started building your own MCP server with Python!

Memory & KnowledgeStaleRemote684

Deuz-SDK

by Deuz-AI · TypeScript

TypeScript AI SDK and agent framework with zero dependencies. Build production AI agents and multi-agent swarms: durable execution, long-term memory, hybrid RAG, MCP client/server, A2A, human-in-the-loop approvals, CodeAct sandboxes, realtime voice. One streaming API, 29 providers: Claude, GPT, Gemini, Grok, DeepSeek, Ollama. Node, Bun, Deno, edge.

Memory & KnowledgeMaintained682

haiku.rag

by ggozad · Python

Agentic RAG for local and self-hosted document search: hybrid retrieval, reranking and multimodal RAG on embedded LanceDB, with Docling parsing and an MCP server

Memory & KnowledgeMaintained626

mda

by sno-ai · TypeScript

MDA Open Spec — a Markdown superset for agent-facing documents. One .mda source compiles to drop-in SKILL.md, AGENTS.md, MCP-SERVER.md, and CLAUDE.md. JSON Schema validated, with typed dependency graph, footnote relationships, and Sigstore-anchored signatures. For agentskills.io and AAIF runtimes.

Memory & KnowledgeAging620

mcp-pandoc

by vivekVells · Python

MCP server for document format conversion using pandoc.

Memory & KnowledgeMaintained583

anytype-mcp

by anyproto · TypeScript

An MCP server enabling AI assistants to interact with Anytype - your encrypted, local and collaborative wiki - to organize objects, lists, and more through natural language.

Memory & KnowledgeMaintained532

caura

by caura-ai · Python

Caura (formerly MemClaw) — governed shared memory for AI agent fleets. Multi-agent, multi-tenant, MCP-native. Trust tiers, keystone policies, audit trails, knowledge graph, self-improving retrieval. Apache 2.0.

Memory & KnowledgeMaintainedRemote499

open-second-brain

by itechmeat · TypeScript

Local-first 🧠 memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.

Memory & KnowledgeMaintained477

private-journal-mcp

by obra · TypeScript

A lightweight MCP server that provides Claude with a private journaling capability to process feelings and thoughts

Memory & KnowledgeMaintained454

Agenvoy

by agenvoy · Go

Self-hosted 24/7 personal AI agent that runs on your own machine — memory, schedules, tools and credentials stay local. Single Go binary with MCP.

Memory & KnowledgeMaintained443

atomicmemory

by atomicstrata · TypeScript

Portable semantic memory for AI agents: core engine, TypeScript SDK, framework adapters, MCP server, CLI, and host plugins.

Memory & KnowledgeMaintained438

mcp-local-rag

by shinpr · TypeScript

Local-first RAG server for developers. Semantic + keyword search for code and technical docs. Works with MCP or CLI. Fully private, zero setup.

Memory & KnowledgeMaintained414

mcp-server-odoo

by ivnvxd · Python

Model Context Protocol (MCP) server that enables AI assistants to securely interact with Odoo ERP systems through standardized resources and tools for data retrieval and manipulation.

Memory & KnowledgeMaintainedRemote404

Context-Engine

by Context-Engine-AI · Python

Context-Engine MCP - Agentic Context Compression Suite

Memory & KnowledgeAging402

pageindex-mcp

by VectifyAI · TypeScript

MCP server for PageIndex. PageIndex is a vectorless reasoning-based RAG system which uses multi-step reasoning and tree search to retrieve information like a human expert would.

Memory & KnowledgeMaintainedRemote400

ebook-mcp

by onebirdrocks · Python

A MCP server that supports mainstream eBook formats including EPUB, PDF and more. Simplify your eBook user experience with LLM.

Memory & KnowledgeAging394

EDDI

by labsai · Java

Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus.

Memory & KnowledgeMaintainedRemote383

graphlit-mcp-server

by graphlit · TypeScript

Model Context Protocol (MCP) Server for Graphlit Platform

Memory & KnowledgeAging378

AgentRecall-X

by Goldentrii · JavaScript

Correction-first persistent memory for AI agents. MCP server + SDK + CLI. Compounds across sessions.

Memory & KnowledgeMaintained372

MemoryMesh

by CheMiguel23 · TypeScript

A knowledge graph server that uses the Model Context Protocol (MCP) to provide structured memory persistence for AI models.

Memory & KnowledgeAging354

lemmalog

by JordyZomer · Rust

A Datalog engine for LLM agent memory: stratified rules, provenance-tracked facts, incremental derivation, and an MCP server that lets your harness use it as a shared brain.

Memory & KnowledgeMaintained334

agentao

by jin-bo · Python

Local-first, governed AI agent runtime for Python — embed it in your app, or run it as a CLI or ACP server. Permissions, MCP, memory and audit replay built in.

Memory & KnowledgeMaintainedRemote309

Other categories