
Agent Memory Mcp
Markdown files as a shared memory layer across AI tools. Saves rules, decisions, and context with severity levels and enforcement categories, then auto-projects them to AGENTS.md, CLAUDE.md, Cursor MDC files, and Gemini instructions so every tool sees the same constraints. The check_action tool gates destructive operations by matching proposed actions against your rule store and issuing cryptographically signed compliance receipts with 60 second TTLs. Breaking change in v0.12: delete_memory requires a valid receipt. You can grep the memory directory, edit rules in vim, commit to git, and sync across machines. Falls back to regex matching when sampling isn't available, so enforcement works even in clients without LLM-in-the-loop support.
- tools
- 2
- transport
- STDIO
- env vars
- 3
- last updated
- Jun 4, 2026
Tools
2 toolsPublic tool metadata for what this MCP can expose to an agent.
writeSave a value to agent memory3 params
Save a value to agent memory
agentIdstringkeystringvaluestringreadRead a value from agent memory2 params
Read a value from agent memory
agentIdstringkeystringSponsors
Configuration
AGENT_MEMORY_DIRAbsolute path to a custom memory storage directory. Overrides the default per-project location.
AGENT_MEMORY_SCOPESet to 'global' to store memories in ~/.agent-memory/ instead of the per-project default ./.agent-memory/.
AGENT_MEMORY_LOGLog level: debug | info | warn | error. Defaults to info. Logs go to stderr (won't pollute MCP stdio).
Readme
agent-memory-mcp
Guardrails for AI coding agents — write the rule once, every tool obeys, destructive actions get blocked.
Details
- Repository
- github.com/xultrax-web/agent-memory-mcp
- Categories
- Databases, AI & LLM Tools, Documents & Knowledge
- Package
@xultrax-web/agent-memory-mcp- Transport
- STDIO
- Registry
- MCP registry, active