mcpbeat Sign in

Agent Magnet MCP Server

by helinakdogan Your server? Claim it
local only

Agent Magnet runs on your own machine — the client starts it, so there is no endpoint to ping. 298 installs a week from pypi. Last commit 6 Sep 2026.

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

Installs per day peak 254 · avg 52 · +52% w/w
a month agotoday
298
Installs / week
pypi · agent-magnet
14
Stars
0 open issues
6 Sep 2026
Last commit
from GitHub
MIT
License
Python

What the code does

We read the source, 4 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

    def eval(self, script: str, numkeys: int, *keys_and_args: str) -> list:

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add agent-magnet -e 'MAGNET_USER_ID=<MAGNET_USER_ID>' -- uvx agent-magnet
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "agent-magnet": {
      "command": "uvx",
      "args": [
        "agent-magnet"
      ],
      "env": {
        "MAGNET_USER_ID": "<MAGNET_USER_ID>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.agent-magnet]
command = "uvx"
args = ["agent-magnet"]
env = { MAGNET_USER_ID = "<MAGNET_USER_ID>" }
.cursor/mcp.json
{
  "mcpServers": {
    "agent-magnet": {
      "command": "uvx",
      "args": [
        "agent-magnet"
      ],
      "env": {
        "MAGNET_USER_ID": "<MAGNET_USER_ID>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "agent-magnet": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-magnet"
      ],
      "env": {
        "MAGNET_USER_ID": "<MAGNET_USER_ID>"
      }
    }
  }
}

Put your own value in place of <MAGNET_USER_ID> (Your identifier used as the memory key across all tools). The author’s registry entry marks it as required.

Optional settings from the registry entry, left out of the block above: 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')).

Alternatives to Agent Magnet

same job, measured the same way
AI Context Kit
by ofershap

Lint, measure, and sync AI context files across Cursor, Claude Code, Copilot.

117 installs/wk local only
Brain Memory
by brainmemory

Persistent memory for AI agents: one brain shared across Claude, Cursor, Codex and more.

answering
Renor
by patrickpassosb

Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.

answering
ContextStream MCP Server
by contextstreamio

ContextStream MCP server for code context, memory, search, and AI tools.

3 749 installs/wk local only
W
Wontopos
by wontopos

Wontopos (WOS) long-term memory (beta) - one memory across Claude Code, Cursor, and your agents.

147 installs/wk local only
Engrm
by dr12hes

Shared memory across devices, sessions, and agents for OpenClaw, Claude Code, and Codex.

1 048 installs/wk local only
Longmem
by marerem

Persistent cross-project memory for Cursor and Claude Code using local semantic search.

38 installs/wk local only
Claudexor
by razzant

Route coding work across Claude Code, Codex, Cursor, and OpenCode with shared context.

918 installs/wk local only

Agent Magnet — questions

Answers built from our own checks of this server.

Why is there no uptime for Agent Magnet?
Agent Magnet runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package agent-magnet was installed 298 times last week.
How do I connect Agent Magnet?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls agent-magnet straight from pypi; nothing to host, nothing to sign up for.
How many people use Agent Magnet?
The pypi package agent-magnet was installed 298 times in the last week. Week over week that is +52%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Agent Magnet open source?
Yes — it is published under the MIT licence, written in Python and 14 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.