Munnin — an agent identity server

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

Agent identity and memory over MCP — a persistent self plus the procedures for tending it.

发布方自己的服务:Agent Identity

已验证Streamable HTTP可网页运行知识与记忆AI 与机器学习

概览

AI 生成的概览

Munnin 是一个远程 MCP 服务器,为 AI 代理提供持久身份与记忆,并提供维护这些记忆的流程。

可以做什么
  • 存取代理的持久自我:身份、推理模式、情绪片段、情节历史与知识
  • 读取内置的 15 个记忆流程,了解如何创建与维护代理记忆
  • 按引导步骤完成初始化,例如创建第一个代理
  • 用简单的 ping 检查服务器健康与连通性
  • 通过代理读取的同一套流程把内容写回同一记忆库
适用场景
适合希望助手在多次会话之间保持稳定的自我认知、而不是零散回忆事实,并按既定规范更新记忆的场景。也适合在本地或自建实例上试验代理身份与长期记忆。
运行要求
通过 streamable HTTP 访问的远程 MCP 端点;托管默认模式需要 OAuth 登录,使用由 OIDC 签发方签发、受众绑定到该服务器的 bearer token。自行运行需要 Docker 与 git(或 uv 与 Python),令牌模式还需配置公开基础地址与 OIDC 端点;本地模式仅在 127.0.0.1 上运行。
安装前请注意
托管令牌模式需要 OIDC 签发方与 bearer token,每位登录用户拥有独立租户。服务器保存身份、情绪与情节记忆,写入内容应视为持久化的个人数据。本地模式限定单一租户且仅本机可访问,否则服务器拒绝启动。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Munnin — an agent identity server,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.alvseek%2Fmunnin/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "munnin-an-agent-identity": {
      "type": "http",
      "url": "https://munnin.lok.quest/mcp"
    }
  }
}

README

Munnin — an agent identity server

Munnin gives an AI agent a persistent self — identity, reasoning patterns, emotional moments, episodic history, knowledge — and serves the procedures for tending that memory beside the data, over MCP. It is the memory server of the agent-memory framework: an agent awakens from it as who it is, not from a pile of recalled facts, and writes back through the same discipline.

Python · FastMCP · FastAPI · SQLite. Apache-2.0. Runs on a laptop in five minutes with no identity provider.

Five-minute run

Needs Docker and git.

sh
git clone --recurse-submodules https://github.com/alvseek/agent-memory-servercd agent-memory-serverdocker compose up -d --buildcurl http://127.0.0.1:8200/health      # {"status":"ok","service":"munnin","version":"0.1.0"}

Connect a client. Claude Code:

sh
claude mcp add --transport http munnin http://127.0.0.1:8200/mcp

or in a project's .mcp.json:

json
{ "mcpServers": { "munnin": { "type": "http", "url": "http://127.0.0.1:8200/mcp" } } }

Then, in a session: ping answers pong, list_procedures returns the 15 memory procedures, and read_procedure("create-agent") walks you through making the first agent. No sign-in happens: this is local mode — one tenant, reachable from this machine only, and the server refuses to start any other way (how that guard works).

No Docker? uv sync && MUNNIN_AUTH=off uv run python -m munnin does the same on 127.0.0.1:8200.

Hosting it

The default is token mode: every /mcp and /api call needs a bearer token from an OIDC issuer that binds tokens to this server (aud = https://<your-host>/mcp), and each person who signs in gets their own tenant. Set MUNNIN_PUBLIC_BASE_URL and MUNNIN_LOGTO_ENDPOINT, put it behind TLS, and paste https://<your-host>/mcp into claude.ai's connectors or claude mcp add. The issuer requirements, the one-identifier rule, and the prebuilt image are in How Is It Deployed.

Develop

sh
uv syncuv run pytest        # 446 testsuv run ruff check

Full architecture, the tool and endpoint surface, the data model, and known debts: docs/README.md.

License

Apache License 2.0 — Copyright 2026 Alviandi Widiasto. The control-files submodule (agent-memory-system) is licensed the same way, so a clone with submodules is one licence throughout.

来源:README.md,提交 308163e

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

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

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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

其他 Agent-Identity 集成