Serve a secret to an agent exactly N times from locked RAM, then wipe it and self-destruct.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Burn-after-reading secrets for AI agents.
ningen-shikkaku ships two small Rust binaries β dazai (the session-bound daemon) and motokano (a self-immolating one-shot MCP server).
Your MCP configs are full of plaintext API keys, and every agent you run can read all of them β and they keep working long after the agent is done. dazai inverts that: secrets live in locked, non-swappable RAM, are served to agents over MCP, and are destroyed after N reads β or the instant your session dies.

Point any MCP client at it and call get_key once β you receive s3cr3t
β the server wipes the value out of locked memory and SIGKILLs itself. Call
again β the process is gone.
Prebuilt binaries are built with default features; the seccomp-confined daemon
is a from-source build (it links libseccomp β install libseccomp-dev +
pkg-config first).
Any MCP client works the same way β the transport is plain stdio.
The same daemon is a session kill-switch. Any MCP client registers its PID;
when your shell/SSH session dies, your heartbeat stops, or a panic signal
arrives, dazai SIGKILLs every registered process, overwrites its secrets
with a wipe the compiler can't optimize away, and exits. Walk away: agents
die, secrets burn.
It runs only on your own machine, on your own secrets and your own configured tools. It never touches another process, file, or host.
It ships in two layers:
mlock (no swap),
madvise(MADV_DONTDUMP) + prctl(PR_SET_DUMPABLE, 0) (no core dumps / no
ptrace), a seccomp syscall allowlist (no execve/open/connect/β¦), and
a non-elidable explicit_bzero / memset_s wipe; andpython-reference.md).| Component | What it does |
|---|---|
dazai daemon | The watchdog: holds mlock'd secrets + a UNIX-socket heartbeat; wipes and self-destructs on session loss. seccomp-confined on Linux. |
dazai client | The heartbeat client β ties the daemon's life to a shell / SSH session. |
dazai mcp | An MCP server exposing the daemon as tools, so any agent can register its PID for session-bound protection (it gets SIGKILLed if your session dies). |
motokano | A standalone self-immolating MCP server: serve N tool calls, then wipe secret state and exit. |
| Python reference | secmem.py / deadman.py / heartbeat.py / shellrc.sh β the portable proof-of-concept. |
daZai shrinks the window and the surface in which plaintext secrets are reachable, and makes session-end deterministically destroy them.
It protects against:
| Risk | How |
|---|---|
| Secrets paged to swap | mlock locks the buffers into RAM |
| Secrets captured in core dumps | madvise(MADV_DONTDUMP) + prctl(PR_SET_DUMPABLE, 0) (Linux) |
| Session loss leaving secrets resident | heartbeat drop / logout β wipe + SIGKILL |
| Secrets lingering in process memory after use | explicit_bzero / memset_s β a wipe the compiler may not elide |
| A confined process escaping | seccomp allowlist denies execve / open / connect / ptrace / β¦ (Linux) |
| ptrace snooping the daemon | prctl(PR_SET_DUMPABLE, 0) (Linux) |
It does NOT protect against (and the project is deliberately honest about this):
exec-tool stdout. motokano's kind=exec tools return a command's
stdout, which is OS-buffered and not held in a locked buffer. Use
kind=static (a pre-loaded, locked, wipeable value) when you need the wipe
guarantee.bytes freely,
so a secret may transiently live in unlocked heap before/after the locked
buffer. The Rust implementation eliminates this for its own buffers (data
is written into the locked mapping and never copied to a GC heap); the Python
tier is a reference, not a hard guarantee./proc/<pid>/mem,
a debugger) reading memory before the wipe. mlock stops swap, not memory
reads; seccomp + PR_SET_DUMPABLE raise the bar on Linux, but an adversary
who already has privileged access to your running machine is out of scope.kill -9, power loss): the wipe
path can't run, so nothing is zeroed. The mechanism is best-effort on these
paths and never claims otherwise.In short: daZai is not, and cannot be, a guarantee against an attacker who already owns your running machine. It is a sharp tool for making secrets ephemeral and session-bound, with every limitation stated up front.
KillProcess filter β aarch64 (locally) and x86_64
(CI) β where the daemon
installs the live filter and the full integration suite runs against it with
no SIGSYS.--features seccomp),
clippy -D warnings, and rustfmt --check on x86_64 Linux as a permanent
regression gate.Deep technical docs (per-crate design, the seccomp allowlist, the
adversarial-review history) live in rs/README.md; the Python
proof-of-concept is in python-reference.md.
Named for the novelist Osamu Dazai, whose work circles themes of disappearance and self-erasure β fitting for software whose defining act is to wipe itself out the moment it is no longer being watched over. The repository takes its name from his novel No Longer Human (δΊΊιε€±ζ Ό, Ningen Shikkaku). It's flavor, not a manifesto; the software just self-destructs on cue.
MIT Β© 2026 New1Direction.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/dazai-burn-after-reading-secret-motokano)<a href="https://allmcps.com/mcp/dazai-burn-after-reading-secret-motokano"><img src="https://allmcps.com/api/badge/dazai-burn-after-reading-secret-motokano?style=directory" alt="Dazai β burn After Reading secret (motokano) on AllMCPs" /></a>