Agentram Mcp

io.github.seanmarkwei由 GitHub 账号 seanmarkwei 发布v0.1.1更新于 Oct 24, 2026

Model Context Protocol server for AgentRAM. Persistent memory for AI agents.

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

AgentRAM MCP 通过托管的 HTTP 记忆存储为 AI 助手提供持久记忆,支持扁平键值记忆、共享命名空间和随时间变化的事实断言。

可以做什么
保存、读取、列出、文本搜索和删除智能体的扁平键值记忆,并查询账户的剩余额度。创建共享命名空间,并在其中写入、读取和列出记忆,让多个智能体共用同一记忆池。记录会变化的事实断言,将其标记为失效但保留历史,并读取某个键的当前值、全部当前事实或完整历史。存在冲突的键会同时返回两个值,而不是静默选择其一。
适用场景
当助手需要跨会话记住信息,又不想自建向量数据库或嵌入流程时适用;也适合多个智能体需要共享记忆池,并希望保留会变化事实的历史记录的场景。
运行要求
需要本地 Node.js 运行时(Node 18 或更高版本),通过 npx 运行该 npm 包;还需要 AgentRAM 账户,并在 AGENTRAM_API_KEY 环境变量中提供 API 密钥。需要访问 AgentRAM API 的网络连接,可用 AGENTRAM_API_BASE 覆盖基础地址。
安装前请注意
API 密钥是敏感信息,通过 AGENTRAM_API_KEY 传入,不应外泄。存储的记忆会发送到 AgentRAM 托管服务,请勿写入敏感数据。相关工具可以写入、覆盖和删除记忆;新账户的额度有限,调用可能消耗额度。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agentram Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

agentram-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):

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 agent
  • retrieve_memory: read one back by key
  • list_memories: list everything stored for an agent
  • search_memories: text search across keys and values, no embeddings needed
  • delete_memory: remove one
  • check_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 call
  • store_shared_memory: write into it
  • retrieve_shared_memory: read from it
  • list_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 preference
  • retire_assertion: mark a fact as no longer true while keeping the history
  • get_assertion: what's currently true for a key
  • list_assertions: all the current facts for an agent
  • get_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 with agentram_
  • AGENTRAM_API_BASE (optional): defaults to https://api.agentram.dev

Links

MIT

来源:README.md,提交 3e88b5e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分