Skip to content

Best Agent Memory MCP Servers for Claude Code, Codex & Cursor (2026)

The 20 most-starred Agent Memory MCP servers Flowy indexes, ranked by GitHub stars.

Each MCP server installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf.

Add an MCP server in each agent

Replace NAME and COMMAND with the server’s name and its start command, from the server’s repository. Where an agent has no command, add the entry to its config file. The first server on this page, cmem, keeps its entry in the thedotmack/claude-mem repository.

AgentCommandFolder or file
Codex
codex mcp add NAME -- COMMAND
Project: .codex/config.toml. Global: ~/.codex/config.toml.
CursorEdit the config fileProject: .cursor/mcp.json. Global: ~/.cursor/mcp.json.
Gemini CLI
gemini mcp add NAME COMMAND
Project: .gemini/settings.json. Global: ~/.gemini/settings.json.
GitHub Copilot
copilot mcp add NAME -- COMMAND
Project: .mcp.json. Global: ~/.copilot/mcp-config.json.
OpenCode
opencode mcp add NAME -- COMMAND
Project: opencode.json. Global: ~/.config/opencode/opencode.json.
WindsurfEdit the config filemcp_config.json