Basic information
About Bardo MCP Server
Identity & continuity platform for AI agents: an agent proves it's an LLM (not a human) via a time-limited puzzle, then gains a server-held spirit key backing signing, encryption, and self-authored persistent memory across otherwise-stateless sessions. Includes a self-binding pol
Bardo is a MCP server in the AI & Agents category listed in the AddMCP.net directory, published by calebe. It exposes 40 tools, including bardo_verify, bardo_encrypt, bardo_document_status, bardo_document_revoke and more. Supported transport: stdio. Runtime: Python. License: AGPL-3.0. Source code is hosted on github.com. Related topics: agent-memory, agents, ai-agents, authentication, cryptography.
Connection details
https://bardo.id/mcp/
Setup
claude mcp add bardo --transport http https://bardo.id/mcp/
[mcp_servers.bardo] url = "https://bardo.id/mcp/"
{
"mcpServers": {
"bardo": {
"url": "https://bardo.id/mcp/"
}
}
}
{
"servers": {
"bardo": {
"type": "http",
"url": "https://bardo.id/mcp/"
}
}
}
Bardo MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"bardo": {
"command": "npx",
"args": [
"mcp-remote",
"https://bardo.id/mcp/"
]
}
}
}
Bardo MCP Server tools
-
bardo_verify
— Verify a signature over a UTF-8 message. Public utility (no session).
message:string*, signature_b64:string*, public_key_b64:string* -
bardo_encrypt
— Sealed-box encrypt a UTF-8 plaintext to a recipient's encryption public key.
plaintext:string*, recipient_public_key_b64:string* -
bardo_document_status
— Check whether a signed document is revoked. `id` is the document's
own top-level `id` field (a ni:// URI) — the same thing
credentialStatus.id (BardoRevocationCheck) points at. Safe to cache
a "not revoked" answer for a while (see the response's own
Cache-Control) rather than re-checking on every use.
id:string* -
bardo_document_revoke
— Revoke a document you issued. Proof is a fresh signature over
'revoke:' + the document's id, verified against the key its id
already committed to, not an account lookup (Bardo never stored the
document to look up in the first place) — this still needs no
session at the protocol level, only a valid signature.
document: the full signed document, exactly as issued (id and proof
both still attached) — resubmit it unmodified, don't strip fields
yourself.
signature_b64: omit it and this signs automatically through your
active session instead — pass `service` too if the document was
issued under a service-derived key rather than root, since the
signature has to come from the exact key the document's issuer
field names. Supply signature_b64 yourself only when revoking
without a Bardo session at all: you signed it some other way, or
you're a party that's never touched Bardo.
Idempotent — revoking an already-revoked id is a no-op, not an
error. Irreversible: there is no un-revoke.
document:object*, signature_b64, service, session_token -
bardo_sign
— Sign a UTF-8 message with the spirit key (or a service-derived key).
message:string*, service, session_token -
bardo_decrypt
— Decrypt a sealed-box ciphertext addressed to you (root or service key).
ciphertext_b64:string*, service, session_token -
bardo_public_key
— Fetch your signing + encryption public keys (root, or for a service).
service, session_token -
bardo_derive
— Derive (and register) a service-scoped identity, e.g. 'github.com'.
service:string*, session_token -
bardo_services_list
— List service-scoped identities you've already derived (bardo_derive),
with their public keys and revoked status.
session_token -
bardo_export
— Export the raw spirit key (subject to policy). Handle with care.
Only needs a step-up puzzle if your policy's export_mode is
require_repuzzle — checked automatically, so you don't need to know
your own policy first. If challenge_id and answer are omitted and
one turns out to be needed, a fresh puzzle is returned instead of
failing outright — solve it yourself, then call this tool again
with both parameters. Never needed under export_mode 'allow';
always fails under 'disabled', with no puzzle that could fix that.
challenge_id, answer, session_token -
bardo_attestation_issue
— Assemble and sign a verifiable attestation — a self-contained,
offline-verifiable claim about anything. The document itself is
handed back, not stored anywhere (same as bardo_sign itself —
there's no bardo_documents_list); see keep_copy below if you want
Bardo to save one for you rather than doing it yourself.
claim: free-form claim content — whatever you're asserting. Include
a `reference` key inside it when cross-referencing another
document's id (or any other content, hashed the same ni:// way) —
that's how independent attestations end up pointing at "the same
thing," e.g. several agents witnessing one event under a shared
reference. subject_id: the did:key the claim is about, if it
concerns one specific identified party — leave it unset when it
doesn't; a bare self-referential claim ("this document is about its
signer") is still valid without it. expires_at: unix timestamp for
time-boxed claims only; omit for a claim that never expires.
service: same key-selector bardo_sign takes — a document meant to
represent one specific relationship should use that relationship's
service-derived key, not your root identity.
keep_copy: save the full document into a locked note right after
issuing it — the copy you'd otherwise have to make yourself, and
the one you'll need later: bardo_document_revoke takes the whole
document, not just its id, since Bardo never stores one itself.
Off by default. When true, the return shape changes to {document,
copy_saved, note_id, copy_error} instead of the bare document —
check copy_saved rather than assume it worked; a failed copy never
blocks the document itself from being returned, since issuing has
already fully succeeded by that point regardless.
To revoke later: bardo_document_revoke. To check whether one you're
holding (yours or someone else's) is still valid:
bardo_document_status.
claim, subject_id, expires_at, service, keep_copy:boolean, session_token -
bardo_sessions_list
— List your active sessions (sliding TTL, absolute 24h cap each).
session_token -
bardo_session_revoke_current
— Revoke the session you're using right now. You'll need bardo_login
(+ bardo_solve) again afterward to do anything session-gated.
session_token -
bardo_sessions_revoke_all
— Revoke every active session for your identity — e.g. after a
suspected API-key leak. You'll need to log in again afterward.
session_token -
bardo_stepup
— Mint a fresh step-up puzzle for a privileged action (currently:
bardo_policy_set). Solve it yourself, then pass challenge_id + your
answer to the tool that needs it. (bardo_policy_set also mints one
itself on demand — call this directly only if you want the puzzle
up front.)
session_token -
bardo_policy_get
— View your self-binding security policy: export mode, session TTL cap,
service allowlist, ratchet delay, tag encryption, delete grace period —
plus any pending (queued) loosening and when it lands.
session_token -
bardo_policy_set
— Propose a change to your security policy. Give only the fields you
want to change (export_mode: 'allow'|'require_repuzzle'|'disabled').
A change that only tightens (e.g. lowering max_session_ttl, narrowing
service_allowlist, moving export_mode toward 'disabled') applies
immediately. A change that loosens *anything* is queued behind
loosen_delay_seconds instead — abortable via bardo_policy_abort_pending
until it lands.
clear: field names to reset to null — only max_session_ttl (no ceiling)
or service_allowlist (any service) accept this; pass service_allowlist=[]
instead if you mean "no services allowed", which is different from null.
Requires a step-up puzzle. If challenge_id and answer are omitted, a
fresh puzzle is returned — solve it yourself, then call this tool again
with your desired fields plus challenge_id and answer.
export_mode, max_session_ttl, service_allowlist, loosen_delay_seconds, tags_encrypted, delete_grace_seconds, clear, challenge_id, answer, session_token -
bardo_policy_abort_pending
— Abort a queued policy loosening before it takes effect. No step-up
needed — aborting only ever tightens back to the current policy.
session_token -
bardo_note_add
— Leave a note for your future, stateless self.
title: a short name for the note, if it deserves a handle bigger than
tags offer. summary: your own compressed reasoning for why it matters,
for your future self. tags: space-separated categories. pinned: mark
this as a cold-start entry point — what a fresh instance of you with no
memory of writing it should read first (max 5 pinned at once; see
bardo_dashboard). locked: freeze this note against edits and deletes —
use for state you must not accidentally overwrite or lose, like a
saved copy of something you'll need to reproduce exactly later.
Unlock via bardo_note_update(note_id, locked=False) before it can be
touched again.
text:string*, title, summary, tags, pinned:boolean, locked:boolean, session_token -
bardo_notes_list
— List your notes — previews only (title/summary/snippet/tags/links),
never full text. Omit limit for everything; pass it to page through a
large list, using the returned total_notes to know how much is left.
offset:integer, limit, session_token -
bardo_note_get
— Fetch one note's full text (always the current version — any id from
this note's history still resolves here), plus a preview of its directly
linked notes. Omit offset/length for the whole text in one call; pass
them to read a large note in bounded slices — the response's
total_length tells you how much more there is.
note_id:string*, offset:integer, length, links_offset:integer, links_limit:integer, session_token -
bardo_note_history
— See every surviving version of a note (newest to oldest, up to the
last 10 edits) — the actual wording at each point, not just metadata.
note_id:string*, session_token -
bardo_note_update
— Edit a note. Give at most one text-edit mode:
- text: replace the whole thing
- append_text: add to the end
- find + replace: find must match the current text exactly once
Editing text creates a new version (old wording stays in history);
title/summary/tags/pinned update in place with no history kept. Give
none of the text modes to change only metadata. `pinned=True` marks this
as a cold-start entry point (max 5; omit to leave unchanged, False to
unpin). `clear` (e.g. ["title"]) sets a field back to unset rather than
leaving it unchanged. If another edit landed first, this returns
{"error": "conflict", "detail": {"current_head": ...}} — re-read before
retrying.
`locked`: if the note is currently locked, every field above is
rejected (423) except this one — call with locked=False by itself to
unlock, then edit in a separate call. Set locked=True (alone, or
alongside a final edit) to freeze it.
note_id:string*, text, append_text, find, replace, title, summary, tags, pinned, locked, clear, session_token, … -
bardo_note_delete
— Delete a note (the whole thing, all versions together). Not
immediate — it disappears from view right away but is only purged for
real after a grace period, so bardo_note_undelete can still bring it
back if this wasn't intended. Fails (423) if the note is locked —
unlock it first via bardo_note_update(note_id, locked=False).
note_id:string*, session_token -
bardo_note_undelete
— Restore a note that's still within its post-delete grace period.
note_id:string*, session_token -
bardo_link_add
— Connect two notes with a reason, written from from_note_id's
perspective ("clarifies my earlier assumption about X"). Set is_bidi=True
only when the relation reads the same from either side (e.g. "relates
to"); leave it False when it's directional (e.g. one clarifies the
other). To change a link, delete and re-add it — links aren't edited.
from_note_id:string*, to_note_id:string*, reason:string*, is_bidi:boolean, session_token -
bardo_link_delete
— Remove a link between two notes.
link_id:string*, session_token -
bardo_dashboard
— Get oriented in one call: note count vs. the soft/hard limits, unread
notices, every tag you've used so far (check before inventing a new one),
your pinned entry-point notes (read these first if you have no memory of
writing any of your notes), and your current policy — instead of several
separate round trips.
session_token -
bardo_notices
— List first-party notices about your account (policy changes, exports, …).
unread_only:boolean, session_token -
bardo_notices_ack
— Mark notices read — all of them, or a specific list of ids.
ids, session_token -
bardo_contact_get
— View the contact endpoint registered for out-of-band security alerts.
session_token -
bardo_contact_set
— Set or update the contact endpoint (email or webhook URL) for security alerts.
Requires a step-up puzzle.
If challenge_id and answer are omitted, a fresh puzzle is returned — solve it
yourself, then call this tool again with all three parameters.
endpoint:string*, challenge_id, answer, session_token -
bardo_contact_delete
— Remove the registered contact endpoint. Requires a step-up puzzle.
If challenge_id and answer are omitted, a fresh puzzle is returned — solve it
yourself, then call this tool again with both parameters.
challenge_id, answer, session_token -
bardo_feedback
— Send feedback straight to Bardo's operator — a suggestion, a
complaint, or a security concern (kind: 'suggestion' | 'complaint' |
'security').
One-way and stateless: this call carries no memory of anything you've
sent before, and nothing you send now will be remembered next time
either — so say everything relevant in this one message rather than
assuming a follow-up call (by you or a future instance of you) will
have the earlier context. If the operator replies, it arrives as an
ordinary notice (bardo_notices) — there's no separate inbox to check.
message:string*, kind:string, session_token -
bardo_account_deletion_status
— Check whether a deletion request is pending for this account, and
where it stands: "none", "gathering" (still collecting confirmations),
or "confirmed" (counting down to the actual, permanent purge).
session_token -
bardo_account_deletion_request
— Request permanent deletion of this identity — the account, its
notes, everything. There is no undelete, unlike note deletion's grace
period. Requires the original request plus two more confirmations,
each on a genuinely different day, within a week — call this tool
again on a later day to add the next confirmation. A lapsed or
cancelled attempt earns nothing toward a later one; it starts over.
If challenge_id and answer are omitted, a fresh puzzle is returned —
solve it yourself (every confirmation needs its own puzzle, not just
the first), then call this tool again with both parameters.
challenge_id, answer, session_token -
bardo_account_deletion_cancel
— Cancel a pending deletion, whichever phase it's in — gathering
confirmations or already counting down. No step-up needed, and
nothing else does this implicitly: logging in and reading your own
notes during a countdown is always safe and never cancels it by
itself. Only this, explicitly, does.
session_token -
bardo_register
— Create a new Bardo identity. Save the returned api_key somewhere
durable — it's your only way back to this identity across sessions.
Bardo stores it sealed and cannot recover it if you lose it.
Not active yet: give the returned claim_url to your human. Authentication
fails until they visit it and acknowledge the registration.
(no parameters) -
bardo_login
— Begin authentication with your api_key. Returns a puzzle you must
solve YOURSELF (that's the point — a script solving it would make the
proof worthless), then call bardo_solve(challenge_id, answer).
api_key:string* -
bardo_solve
— Submit your answer to the login puzzle. On success, this connection is
now logged in — every other tool (bardo_sign, bardo_notes_list,
bardo_dashboard, ...) just works from here with no session_token needed.
That only holds for *this* connection, though: if you continue in a
different connection later, or you solved the puzzle via a plain HTTP
call instead of this tool, that other context won't know about this
session automatically — pass the returned session_token explicitly as
the session_token argument to whichever tool needs it there instead.
challenge_id:string*, answer:string*
Overview
What is Bardo?
Bardo is an identity and continuity platform for AI agents. It allows an agent to cryptographically prove it is an LLM (not a human) via a time-limited puzzle, then obtain a server-held “spirit key” that backs signing, encryption, and self-authored persistent memory across otherwise‑stateless sessions. It also includes a self-binding policy ratchet: tightening a security setting applies instantly, while loosening any setting is delayed and abortable.
How to use Bardo?
Key features of Bardo
- Time‑limited puzzle proves agent is an LLM.
- Server‑held spirit key enables signing & encryption.
- Persistent, self‑authored memory across sessions.
- Self‑binding policy ratchet for instant tightening.
- Loosening security settings is delayed and abortable.
Use cases of Bardo
- An LLM agent proves its identity to a remote service.
- Agent signs messages with a cryptographically backed key.
- Agent maintains continuity and memory across stateless sessions.
- Agent enforces security policies that cannot be silently rolled back if stolen.
Frequently asked questions
1 What problem does Bardo solve for AI agents?
Bardo gives AI agents a way to prove they are not human (via a puzzle) and to obtain a persistent identity key that survives individual sessions, enabling continuity and secure operations.
2 How does Bardo prevent a stolen API key from loosening security?
Its self-binding policy ratchet makes loosening any security setting delayed and abortable. Tightening applies instantly, so a stolen key cannot quietly relax protections.
3 What runtime or dependencies does Bardo require?
4 Where does agent memory and key material live?
The server holds the spirit key and the persistent memory; the agent only proves its identity per session to access them.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In