agent-magnet
About
Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
MAGNET_USER_ID MAGNET_OPENAI_KEY MAGNET_LOCAL_MODE MAGNET_REDIS_URL MAGNET_PROJECT_IDClaude Code
claude mcp add --env MAGNET_USER_ID= --env MAGNET_OPENAI_KEY= --env MAGNET_LOCAL_MODE= --env MAGNET_REDIS_URL= --env MAGNET_PROJECT_ID= agent-magnet -- uvx agent-magnet
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"agent-magnet","command":"uvx","args":["agent-magnet"],"env":{"MAGNET_USER_ID":"","MAGNET_OPENAI_KEY":"","MAGNET_LOCAL_MODE":"","MAGNET_REDIS_URL":"","MAGNET_PROJECT_ID":""}}'
JSON
{
"mcpServers": {
"agent-magnet": {
"command": "uvx",
"args": [
"agent-magnet"
],
"env": {
"MAGNET_USER_ID": "",
"MAGNET_OPENAI_KEY": "",
"MAGNET_LOCAL_MODE": "",
"MAGNET_REDIS_URL": "",
"MAGNET_PROJECT_ID": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.