Atlas / MCP servers / alvseek / agent-memory-server

agent-memory-serverCAUTION

mcp/alvseek/agent-memory-server

Munnin — an agent identity server: persistent memory for AI agents (identity, reasoning, episodic, knowledge) plus the procedures for tending it, served over MCP. Apache-2.0, runs locally in 5 minutes.

Verdict
CAUTION
Grade
C
Trust score
80 /100
Exposed tools
20 13r · 6w · 1d
Transport
streamable-http
License
Apache-2.0
Stars
0
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

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.

git clone --recurse-submodules https://github.com/alvseek/agent-memory-server
cd agent-memory-server
docker compose up -d --build
curl http://127.0.0.1:8200/health      # {"status":"ok","service":"munnin","version":"0.1.0"}

Connect a client. Claude Code:

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

or in a project's .mcp.json:

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

Then, in a session: ping answers pong, list_procedures returns the 14 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:///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:///mcp into claude.ai's connectors or claude mcp add. The issuer requirements, the one-ident

Read from source at commit 4d753a51dea3OBSERVED · 2026-10-11
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add munnin --env MUNNIN_AUTH=${MUNNIN_AUTH} --env MUNNIN_AUTHKIT_DOMAIN=${MUNNIN_AUTHKIT_DOMAIN} -- uvx munnin
claude-desktop
{
  "mcpServers": {
    "munnin": {
      "command": "uvx",
      "args": [
        "munnin"
      ],
      "env": {
        "MUNNIN_AUTH": "${MUNNIN_AUTH}",
        "MUNNIN_AUTHKIT_DOMAIN": "${MUNNIN_AUTHKIT_DOMAIN}"
      }
    }
  }
}
03

Exposed tools (20)

13 read · 6 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
appendwriteAdd ``text`` to the END of a record
archivereadRetire a record from the hot index (still searchable on demand).
awakenreadAssemble and return an agent
create_agentwriteCreate a new agent. ``agent_id`` is a kebab domain and must not already exist —
editwriteTargeted string replace inside a record
getreadLoad one record
helpreadWhat this server is and what to call first — the same text a client receives at
insertwriteAppend a new memory item. ``scope=
list_agentsreadList every agent in the fleet: ``agent_id`` + display name + one-line role.
list_proceduresreadList the framework procedures this server serves — name, title, one-line purpose.
list_resourcesreadList the framework resources this server serves — name, title, one-line purpose.
multi_editwriteApply a sequence of string edits to one record atomically (all-or-nothing).
permanent_layerreadThe always-on memory a client writes into its system-prompt file: the
pingreadLiveness check — returns
prependwriteAdd ``text`` to the START of a record
queryreadFilter memory by exact field values, returning whole records with bodies.
read_procedurereadRead a served framework procedure, composed for this server
read_resourcereadRead a served framework resource verbatim — a template or a script.
searchreadFull-text (FTS5) keyword search over content + title + tags.
soft_deletedestructiveTombstone a record (excluded from all reads).
04

Trust audit

CAUTIONgrade C · trust 80/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (5 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
found

Findings (16)

MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
.env.example:38
MUNNIN_PUBLIC_BASE_URL=http://127.0.0.1:8200
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
Dockerfile:73
CMD ["python", "-c", "import os,sys,urllib.request; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('MUNNIN_PORT','8200')+'/health', timeout=2).status==200 else 1)"]
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/ci.yml:45
MUNNIN_PG_TEST_URL: postgresql://munnin:[email protected]:5432/munnin_test
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/test_isolation.py:32
SECRET = "alice-private-marker-zebra"
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
soft_delete
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.gitmodules
.gitmodules
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
qa/config/.env.local.template
.env.local.template
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:15
curl http://127.0.0.1:8200/health      # {"status":"ok","service":"munnin","version":"0.1.0"}
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:21
claude mcp add --transport http munnin http://127.0.0.1:8200/mcp
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:27
{ "mcpServers": { "munnin": { "type": "http", "url": "http://127.0.0.1:8200/mcp" } } }
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/README.md:154
5. **Verify from outside before connecting anything**: `GET /api/agents` and `POST /mcp` both answer **401** anonymously, the `WWW-Authenticate` challenge names `.../.well-known/oauth-protected-resour
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/README.md:228
Three roles, and Munnin plays exactly one. The **identity provider** proves who the human is (Google, behind the issuer). The **authorization server** issues a token stamped for Munnin — `aud = https:
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/README.md:230
The tenant is a property of each **request**, not of the process. In token mode `TokenTenantResolver` maps the token's `(iss, sub)` — the only pair OpenID Connect guarantees stable — to an `account` r
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
plans/completed/2026-08-28-munnin-login-tenancy.md:432
- **Success Criteria**: **Pass, and by a stronger route than the plan specified.** The previously-open probe returns 401. The audience was then settled by Alvi completing the flow in MCP Inspector, an
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
qa/checklists/canonical-mcp-identifier.md:67
- [ ] Present a token minted for a **different** registered resource (`https://default.logto.app/api`, the Management API — obtainable on the Authentra box via `configure-tenant.py`'s `token()`) to `P
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
INFOPrompt injection · prompt.read_system · CWE-94, CWE-1427
docs/README.md:187
At `initialize` the server returns four sentences of **instructions** — what Munnin is, what to call first whether you are new or returning, and that procedures come from `read_procedure`, never slash

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha 4d753a51dea3full audit observations/trust-audit/mcp-server/alvseek__agent-memory-server.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-114d753a51dea3CAUTIONC80first audit
06

Questions

What is the agent-memory-server MCP server?

Munnin — an agent identity server: persistent memory for AI agents (identity, reasoning, episodic, knowledge) plus the procedures for tending it, served over MCP. Apache-2.0, runs locally in 5 minutes.

What tools does agent-memory-server expose?

20 in total: 13 read-only, 6 that write, and 1 that can delete or overwrite (soft_delete). Every one is listed on this page with its risk.

Is agent-memory-server safe to connect to an agent?

With care. The audit graded it C (80/100) and found 16 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does agent-memory-server need?

It reads MUNNIN_AUTH and MUNNIN_AUTHKIT_DOMAIN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does agent-memory-server run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as munnin.

How current is this page?

The grade is for one exact copy of the source (4d753a51dea3), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement