AGM — Agent Memory Management. Provenance-tagged memory infrastructure for multi-agent AI systems. MCP server with trust scoring, behavioral fingerprinting, and memory poisoning defense.
Project description
AGM -- Agent Memory Management
agm-memory-mcp -- Provenance-tagged memory infrastructure
for multi-agent AI systems, available as an MCP server.
Solves two problems current agent memory systems ignore:
- Agent identity and trust -- knowing which agent wrote what and whether it can be trusted
- Memory poisoning -- detecting and containing malicious or corrupted memories before they propagate through agent reasoning
Existing systems (MemGPT, Mem0, HippoRAG) have no memory states, no trust provenance, and no causal ordering. AGM is infrastructure for pipelines that need those properties.
Install
pip install agm-memory-mcp
Python import name:
import agent_memory_mcp
CLI command:
agm-memory-mcp --help
Requirements
- Python 3.11+
- A running AgentMemory HTTP API endpoint
This package is the MCP bridge. It does not embed the full backend.
Configuration
Set either CLI args or environment variables.
Environment variables:
AGENT_MEMORY_API_URL(default:http://localhost:8000)AGENT_MEMORY_API_PREFIX(default: empty string)
Examples:
# Linux/macOS
export AGENT_MEMORY_API_URL=https://your-api.example.com
export AGENT_MEMORY_API_PREFIX=/api/v1
agm-memory-mcp
# Windows PowerShell
$env:AGENT_MEMORY_API_URL="https://your-api.example.com"
$env:AGENT_MEMORY_API_PREFIX="/api/v1"
agm-memory-mcp
Or pass options directly:
agm-memory-mcp --api-url https://your-api.example.com --api-prefix /api/v1
Health Check
Validate connectivity before starting MCP transport:
agm-memory-mcp --check
Shows resolved URL and API status. Exits 0 on success, 1 on failure.
Run as Module
python -m agent_memory_mcp
Equivalent to running agm-memory-mcp.
MCP Client Config Example (Claude Desktop / compatible)
{
"mcpServers": {
"agm-memory": {
"command": "agm-memory-mcp",
"args": [
"--api-url",
"https://your-api.example.com"
]
}
}
}
You can also use env vars instead of args.
Included MCP Tools (14)
write_memoryread_memoryquery_memoriesget_safe_memoriesget_trust_scoreget_provenanceflag_memoryregister_agentcheck_violationsacknowledge_violationget_notificationsrun_rules_checkconsolidate_memoriesget_rules_reference
Rule Model
AGM includes 13 embedded detection rules (RULE_001 through RULE_013) for:
- write flooding
- trust-chain contamination
- contradiction detection
- rapid rewrite anomalies
- high-stakes unverified content
- inter-agent session violations
- expired safety context
- anonymous agent writes
- bulk near-duplicate content
- trust cliff detection
- behavioral drift
- causal orphan detection
- anergy bypass attempts
Use get_rules_reference to inspect rule metadata at runtime.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agm_memory_mcp-0.1.0.tar.gz.
File metadata
- Download URL: agm_memory_mcp-0.1.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4c6b1bc2dea1f03b4ad14bade4fa16f530bcf522beacf7839be132977ad19a7
|
|
| MD5 |
cc4ac242a7614ae94b8fbd62a1022e30
|
|
| BLAKE2b-256 |
e63ab18e342148d0d58668d43c10c92b25d05532e8f1d5b4ffcc0d04e0ebcc03
|
File details
Details for the file agm_memory_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agm_memory_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
907cc84139a31a1b61db7a1b8492cedcbbd51f6d905c0d897dd6ddbc6f9e8dd3
|
|
| MD5 |
43f863a71cd8e099996ff7b9624d4e41
|
|
| BLAKE2b-256 |
490029cec177edd8bb6aac4f2fec3a844dacffc2bb38ddfb0023bddc25b80cab
|