About Agent Magnet
Agent Magnet is a persistent-memory MCP server for Claude, Cursor, and Codex, sharing user preferences and work context across tools. It organizes memories automatically and supports forgetting items or marking them done; local use is the default.
Key features
- 01Automatically capture preferences and work context
- 02Share memory across Claude, Cursor, and Codex
- 03Organize decisions, conventions, goals, and actions
- 04Forget items or mark them done
- 05Run locally by default
Use cases
- 01Carry project context across AI tools
- 02Save and reuse project conventions and user preferences
- 03Remove outdated memories or mark completed items
MCP support
Agent Magnet provides an MCP server for Codex and other MCP clients; `agent-magnet init` can detect and configure Claude Code, Claude Desktop, and Cursor.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README
Your AI forgets your project every new session. This fixes that.
What it does
- Learns automatically as you work — no "remember this" required
- Shares one memory across Claude, Cursor, and Codex
- Lets you forget or mark things done — memory doesn't just pile up
Quick start
pip install agent-magnet
agent-magnet init
That's the whole install. No Redis, no keys, local by default.
What it remembers
Decisions, conventions, watch-outs, failed attempts, goals, preferences, and actions taken — one memory, sorted automatically.
Team memory
Shared memory for a team — one person's decision becomes everyone's context. Requires a paid Agent Magnet key from agentmagnet.app.
Works everywhere
Claude, Cursor, Codex — same memory, local by default. agent-magnet init detects and configures Claude Code, Claude Desktop, and Cursor for you.
Manual MCP config (Codex, or any other MCP client)
{
"mcpServers": {
"agent-magnet": {
"command": "agent-magnet-mcp",
"env": { "MAGNET_USER_ID": "your_name" }
}
}
}
MIT licensed. Contribute — and a ⭐ if this saved your context window.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.