Home › Other › agentmagnet

agentmagnet

Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.

Python
★ 14 stars Last pushed 2026-09-05 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (pypi 0.1.11)

uvx agent-magnet

Or add to your MCP client config:

{
  "mcpServers": {
    "agentmagnet": {
      "command": "uvx",
      "args": [
        "agent-magnet"
      ],
      "env": {
        "MAGNET_USER_ID": "<YOUR_VALUE>",
        "MAGNET_OPENAI_KEY": "<YOUR_VALUE>",
        "MAGNET_LOCAL_MODE": "<YOUR_VALUE>",
        "MAGNET_REDIS_URL": "<YOUR_VALUE>",
        "MAGNET_PROJECT_ID": "<YOUR_VALUE>"
      }
    }
  }
}
  • MAGNET_USER_ID required — Your identifier used as the memory key across all tools
  • MAGNET_OPENAI_KEY — OpenAI API key for the reflector and classifier models
  • MAGNET_LOCAL_MODE — Set to 1 to use local SQLite storage — no Redis or external services needed
  • MAGNET_REDIS_URL — Redis connection URL for persistent shared storage (overrides local mode)
  • MAGNET_PROJECT_ID — Namespace for memory isolation across projects (defaults to 'default')

Related servers

Data from the Official MCP Registry