About agentram-mcp
agentram-mcp is an MCP server that gives AI agents persistent memory through AgentRAM. It offers separate flat and temporal memory, including change history and shared namespaces, without a vector database or embedding pipeline.
Key features
- 01Store and retrieve keyed memories
- 02Search memory text without embeddings
- 03Share memory through namespaces
- 04Track changing facts and their history
- 05Detect conflicting current assertions
Use cases
- 01Keep context across agent sessions
- 02Share memory between multiple agents
- 03Review how a fact changed over time
MCP support
Exposes AgentRAM memory operations as tools to MCP clients, including storage, search, shared namespaces, and temporal assertions.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y agentram-mcpAGENTRAM_API_KEYSecretYour AgentRAM API key, starts with agentram_. Get one free at https://agentram.devLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
10Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Memory label. Max 200 characters. |
| value | string | Yes | What to remember. Max 5,000 characters. |
| agent_id | string | Yes | Unique identifier for the agent. Max 100 characters. |
| ttl_days | number | No | Optional. Days until this memory expires automatically. Omit for permanent memories. |
Details
From the project READMEagentram-mcp
MCP server for AgentRAM. It gives your AI agents persistent memory through a set of tools, with no vector database and no embedding pipeline to set up. Get a key, paste the config below, and you're running in about a minute.
Works with any MCP client: Claude Desktop, Claude Code, Cline, Cursor, Windsurf, and others.
Why
Every agent session starts with amnesia. AgentRAM is a plain HTTP memory store built for agents: one call to save something, one call to read it back. No infra to stand up, no vectors to babysit. This package wraps that API as MCP tools so your agent can just use it.
Setup
You need an API key first. Register at agentram.dev and it gets emailed to you. New accounts start with 1,000 credits and no card is required.
Then add this to your client's MCP config. For Claude Desktop that file is claude_desktop_config.json (on macOS it lives at ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"agentram": {
"command": "npx",
"args": ["-y", "agentram-mcp"],
"env": {
"AGENTRAM_API_KEY": "agentram_your_key_here"
}
}
}
}
Restart the client and the tools show up. Most clients let you mark them "always allow" so you're not clicking approve on every call.
One gotcha on macOS: Claude Desktop doesn't ship with Node, so install Node 18 or newer first or the server won't start.
Tools
Fifteen tools. Ten for flat memory, five for temporal memory (facts that change over time).
Flat memory:
store_memory: save a value under a key for an agentretrieve_memory: read one back by keylist_memories: list everything stored for an agentsearch_memories: text search across keys and values, no embeddings neededdelete_memory: remove onecheck_credits: current balance, free to call
Shared memory, for when more than one agent needs the same pool:
create_namespace: make a shared space, free to callstore_shared_memory: write into itretrieve_shared_memory: read from itlist_shared_memories: list what's in it
Temporal memory (assertions):
store_assertion: record a fact that can change, like a plan, a status, or a preferenceretire_assertion: mark a fact as no longer true while keeping the historyget_assertion: what's currently true for a keylist_assertions: all the current facts for an agentget_assertion_history: the full chain of what a key has been over time
About temporal memory
Flat memory overwrites. Temporal memory keeps the trail. When a fact changes you supersede the old value, and the previous values stick around so you can see how you got to the current one.
The part worth knowing: if two different values land on the same key and neither one supersedes the other, get_assertion will not quietly pick a winner. It tells you the key is contested and returns both values, so your agent can decide instead of running on a guess. list_assertions flags which keys are in that state.
Flat and temporal are separate keyspaces. A key called plan in store_memory and a key called plan in store_assertion have nothing to do with each other. Use flat memory for stuff you just overwrite, and assertions for facts you want a record of.
Credits
Reads and writes cost 1 credit each. check_credits and create_namespace are free. A read that finds nothing (a 404) refunds the credit. Most responses include your credits_remaining so you can watch the balance.
Config
AGENTRAM_API_KEY(required): your key, starts withagentram_AGENTRAM_API_BASE(optional): defaults tohttps://api.agentram.dev
Links
- Site: https://agentram.dev
- Docs: https://agentram.dev/docs.html
- Issues: https://github.com/seanmarkwei/agentram-mcp/issues
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.