# io.github.lonniev/personalbrain-mcp (remote · personal-brain.fastmcp.app)

FastMCP server for TheBrain API — AI access to a personal knowledge graph, Tollbooth-monetized

- Trust score: 62/100 (medium)
- Change this week: +9
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- remote · `personal-brain.fastmcp.app`: 62/100 (this document), [markdown](https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain.md), [page](https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain)

## Channel facts

- Endpoint: `https://personal-brain.fastmcp.app/mcp`
- Transports: `streamable-http`
- Auth: `none`
- Version: `1.16.3`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Endpoint Security**: 57/100
  - The endpoint's TLS certificate is valid, in date, and uses a strong key.
  - Authorisation not fully verified: no authorisation is required to call this server, and 81 tool(s) never declared a destructiveHint. The MCP spec treats an absent hint as destructive by default, so we cannot call this surface safe.
  - HTTPS is enforced; there's no plaintext access path.
  - HSTS check failed: the Strict-Transport-Security header is absent.
  - DNSSEC check failed: this domain isn't protected by DNSSEC.
- **Transport & Reachability**: 100/100
  - Verified streamable-http transport via a live MCP handshake.
- **Schema Quality & AI Usability**: 53/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 13310 tokens (~164/item across 81 items; 81 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 93/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 76% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add --transport http lonniev-personalbrain-mcp https://personal-brain.fastmcp.app/mcp
```

### Codex

```toml
[mcp_servers.lonniev-personalbrain-mcp]
url = "https://personal-brain.fastmcp.app/mcp"
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "lonniev-personalbrain-mcp": {
      "type": "remote",
      "url": "https://personal-brain.fastmcp.app/mcp",
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add lonniev-personalbrain-mcp --url https://personal-brain.fastmcp.app/mcp --transport streamable-http
```

### Hermes

```yaml
mcp_servers:
  lonniev-personalbrain-mcp:
    url: "https://personal-brain.fastmcp.app/mcp"
```

### Other

```json
{
  "mcpServers": {
    "lonniev-personalbrain-mcp": {
      "type": "http",
      "url": "https://personal-brain.fastmcp.app/mcp"
    }
  }
}
```

The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 62, +1)

No change was recorded against any check on this day. Stability & Change Management went from 23 to 27. That category is still filling its 30-day observation window: 7 days of observed history at the previous scan, 8 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-08-01 (score 61, +1)

No change was recorded against any check on this day. Stability & Change Management went from 17 to 20. That category is still filling its 30-day observation window: 5 days of observed history at the previous scan, 6 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-07-31 (score 60, +5)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-29 (score 55, +1)

No change was recorded against any check on this day. Stability & Change Management went from 7 to 10. That category is still filling its 30-day observation window: 2 days of observed history at the previous scan, 3 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-07-28 (score 54, +1)

- [functional] Server version: 3.4.4 → 3.4.5

### 2026-07-27 (score 53, 0)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-26 (score 53)

First indexed and scored.

## MCP tools (81)

### `brain_check_balance` (~208 tokens)

Check a patron's credit balance at this operator.

This is the patron's spending balance — credits purchased via
Lightning for tool calls at this operator. For the operator's
own balance at the Authority (needed to certify patron purchases),
use authority_check_balance instead.

Free — no credits required. Proof of npub ownership is required
to prevent anyone-with-the-registry from enumerating balances.

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The Nostr public key (npub1...) whose balance to check.

### `brain_purchase_credits` (~198 tokens)

Buy credits via Bitcoin Lightning.

Creates a Lightning invoice. Pay it with any Lightning wallet,
then call check_payment to confirm. Proof of npub ownership is
required so credits land in the correct ledger.

Free — no credits required to call.

Input parameters:

- `amount_sats` (integer): Satoshis to purchase (default 1000).
- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The Nostr public key (npub1...) the credits will fund.

### `brain_check_payment` (~194 tokens)

Check the payment status of a Lightning invoice.

Call after paying the invoice from purchase_credits.
Free — no credits required. Proof of npub ownership is required
to prevent credit-grant front-running by an observer of the
invoice ID.

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `invoice_id` (string, required): The invoice ID returned by purchase_credits.
- `npub` (string, required): The Nostr public key (npub1...) that purchased the invoice.

### `brain_restore_credits` (~233 tokens)

Credit a patron's ledger from a BTCPay-settled invoice.

\**RESTRICTED to the operator** — the operator owns the books and is
the only party who can issue a manual credit grant. Patrons who
believe they paid but never got credits must escalate to the
operator's support, who then invokes this tool on their behalf.

Use cases: cold-start vault races during check_payment, ncred
delivery hiccups, patrons closing Top-Off sheets before settle,
any infrastructure incident that left an invoice settled at BTCPay
but uncredited on the operator's ledger.

Idempotent — if the invoice is already credited (in the patron's
\``credited_invoices``), returns success with credits_granted=0.

Input parameters:

- `dpop_token` (string, required): A kind-27235 Nostr event signed by the OPERATOR's nsec for this tool. Patron proofs are rejected.
- `invoice_id` (string, required): The BTCPay invoice ID to verify and credit.
- `patron_npub` (string, required): The patron's npub whose ledger receives the grant.

### `brain_account_statement` (~222 tokens)

Generate a patron's account statement at this operator.

Returns the patron's purchase history, active credit tranches,
per-tool usage breakdown, and recent daily usage logs. This is
the patron's spending account — not the operator's Authority
tax balance.

Free — no credits consumed. Proof of npub ownership is required
to prevent statement-scraping of arbitrary patrons.

Input parameters:

- `days` (integer): Number of days of daily usage history to include (default 30).
- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The patron's Nostr public key (npub1...).

### `brain_account_statement_infographic` (~222 tokens)

Generate a visual SVG infographic of your account statement.

Returns the same data as account_statement, rendered as a dark-themed
SVG graphic with balance hero, metrics cards, health gauge, tranche
table, and tool usage breakdown. Costs 1 api_sat per call. Proof is
verified by ``debit_or_deny`` before any cost is incurred.

Input parameters:

- `days` (integer): Number of days of daily usage history to include (default 30).
- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The Nostr public key (npub1...) whose statement to render.

### `brain_report_issue` (~347 tokens)

File a field report about this service as a GitHub issue on the operator's repo.

Found a tool's metadata or response wrong or confusing? Report it where the tool
lives. The **author of record is your npub** — no npub / no proof, no issue — and it
is stamped into the issue so the report is attributed to you, not the operator. Costs
a small fee (a free write to an issue tracker would be abused). The report is PUBLIC
and goes to the maintainers' normal triage; nothing is verified here.

Returns the filed issue's repo, number, and url. If this operator has not enabled
field reports, returns an "issue reporting not configured" situation and you are not
charged.

Input parameters:

- `body` (string, required): The details — which tool, what was wrong, what you expected.
- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): Your Nostr public key (npub1...); the report's author of record.
- `title` (string, required): One-line summary of the problem.
- `tool_name` (string): Optional: the specific tool the report is about (e.g. "schwab_get_option_chain").

### `brain_service_status` (~20 tokens)

Check the health and configuration of this service. Free.

### `brain_get_operator_onboarding_status` (~56 tokens)

Report this operator's configuration readiness.

Shows which operator settings are configured, which are missing,
and how to deliver each missing value. For patron-level credential
status, use get_patron_onboarding_status instead. Free.

### `brain_get_patron_onboarding_status` (~137 tokens)

Report a patron's credential readiness for this operator.

For set-once services (eXcalibur, TheBrain), shows which patron
secrets are configured and which are missing. For dynamic/OAuth2
services (Schwab), reports that no patron credentials are needed.
Free. Proof of npub ownership is required because credential
presence is sensitive information about the patron's setup.

Input parameters:

- `dpop_token` (string, required): A kind-27235 Nostr event signed by patron_npub for this tool.
- `patron_npub` (string, required): The patron's Nostr public key (npub1...).

### `brain_session_status` (~285 tokens)

Check operator readiness. Returns the operator lifecycle
state and clear guidance on what to do next. Free.

Lifecycle states:
\- ready: Operator is warm and fully operational — vault AND pricing
  model verified. Proceed with tool calls.
\- warming_up: Operator is initializing (cold start). Try a tool call — it will warm up on demand.
\- misconfigured: Persistence rejected a query with a permanent SQL
  error (permission denied, missing relation). Paid tools will fail
  until the operator repairs the database — retrying does not help.
\- quota_exceeded: The persistence provider (Neon) answered HTTP 402 —
  the operator's database has exhausted its compute/storage quota, so
  the books are locked for billing. Paid tools fail; retrying does NOT
  help. The operator's Authority must restore capacity (upgrade the
  plan or wait for the quota reset). Free tools remain available.
\- not_registered: Operator has no Authority relationship yet. Call register_operator first.
\- no_identity: Operator nsec is not configured. Deployment issue.

Input parameters:

- `patron_npub` (string): Optional. If supplied, the response includes an ``upstream_oauth`` block with the patron's stored OAuth token expiry (runtime-derived from vault state) so a client can refresh proactively rather than…

### `brain_request_credential_channel` (~250 tokens)

Open a Secure Courier channel for credential delivery.

This is the CREDENTIAL-DELIVERY flow — use it to hand over a service
secret (API keys, tokens). To merely prove you control an npub (the
usual answer to a ``proof_required`` error), use ``request_npub_proof``
instead. Note: dynamic/OAuth2 services (e.g. Schwab) need NO couriered
secret — check ``service_status`` first.

Sends a welcome DM with a credential template. The recipient
must read the DM in their Nostr client, fill in the fields,
and reply manually. **This is a human-in-the-loop flow.**

After calling this tool, STOP and tell the user what to do.
Wait for the user to confirm they have replied before calling
\``receive_credentials``. Do NOT poll or retry — each
\``receive_credentials`` call destructively drains the relay
mailbox.

Input parameters:

- `sender_npub` (string): Required. The npub to send the template to.
- `service` (string): Required. The credential service name (e.g., from get_operator_onboarding_status or get_patron_onboarding_status).

### `brain_receive_credentials` (~322 tokens)

Pick up credentials from the Secure Courier.

Completes the CREDENTIAL-DELIVERY flow (the ownership-proof
counterpart is ``receive_npub_proof``).

\**Call this only after the user confirms they have replied.**
Deterministic, one-shot retrieval: name the response you want with
\``(sender_npub, service, dpop_token)`` and the tool drains ONLY the
rendezvous relay that channel was pinned to. Every popped DM with the
wrong session phrase is deleted and its sender is NACK'd; the first DM
with the matching phrase is accepted (ACK'd) and the scan stops. If
none match, the queue is drained and a ``courier_not_found`` result is
returned. Do NOT poll, loop, or retry.

If a credential_card (ncred1...) is provided, it is redeemed directly
without any relay access (dpop_token not required for that path). On
success, the payment processor client is reinitialized from the new
credentials — no server restart needed.

Input parameters:

- `credential_card` (string): Optional. An ncred1... card to redeem directly (bypasses the relay drain; dpop_token not needed).
- `dpop_token` (string): Required. The session phrase returned by request_credential_channel for this exact channel.
- `sender_npub` (string): Required. The npub that sent the credentials.
- `service` (string): Required. The credential service name (must match the service used in request_credential_channel).

### `brain_forget_credentials` (~195 tokens)

Delete vaulted credentials for a specific service and npub.

For operator credentials, pass the operator's own npub. For patron
credentials, pass the patron's npub. Always requires proof of
npub ownership — a deletion is as destructive as a write.

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The Nostr public key (npub1...) whose credentials to forget.
- `service` (string, required): The credential service to forget.

### `brain_request_patron_credentials` (~45 tokens)

Open a Secure Courier channel for patron credential delivery.

Sends a welcome DM with a credential template to the patron.
Free.

Input parameters:

- `sender_npub` (string)

### `brain_receive_patron_credentials` (~122 tokens)

Pick up patron credentials from the Secure Courier.

Deterministic, one-shot retrieval: name the response with
\``(sender_npub, dpop_token)`` and the tool drains ONLY the pinned
rendezvous relay for that channel, stopping at the matching DM.
Provide an ncred1... credential_card to redeem directly instead
(dpop_token not required for that path). Do NOT poll or retry.
Free.

Input parameters:

- `credential_card` (string)
- `dpop_token` (string)
- `sender_npub` (string)

### `brain_update_patron_credential` (~217 tokens)

Add or update a single patron credential field.

Merges into existing stored credentials without affecting
other fields. Useful for setting an account identifier
after OAuth, changing a default brain, etc. Free. Proof of
npub ownership is required — this is a write to the patron's
sensitive credential vault.

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `field` (string, required): The credential field name to set.
- `npub` (string, required): The patron's Nostr public key (npub1...).
- `value` (string, required): The value to store.

### `brain_delete_patron_credential` (~184 tokens)

Remove a single patron credential field.

Deletes one field from stored credentials without affecting
other fields. Free. Proof of npub ownership is required —
this is a write to the patron's sensitive credential vault.

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `field` (string, required): The credential field name to remove.
- `npub` (string, required): The patron's Nostr public key (npub1...).

### `brain_get_patron_credential_fields` (~233 tokens)

List stored patron credential field names (not values).

Returns the names of fields stored for a patron, plus each
field's ``delivered_at`` ISO-8601 timestamp when known (null
for secrets vaulted before timestamps were recorded). Values
are never exposed — use this to verify which fields are
configured and how old each one is. Free. Proof of npub
ownership is required: the list of configured fields is itself
sensitive (reveals which integrations a patron has set up).

Input parameters:

- `dpop_token` (string, required): Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL…
- `npub` (string, required): The patron's Nostr public key (npub1...).

### `brain_request_npub_proof` (~487 tokens)

Request npub ownership proof from a patron via Nostr DM.

This is the npub-OWNERSHIP-PROOF flow — use it when a call returns
\``proof_required``. It proves the caller controls an npub; it does
NOT deliver any service secret. To hand an operator its API keys or
OAuth secrets, use ``request_credential_channel`` instead.

Sends a challenge DM that the patron must sign and reply to
using their Nostr client. **This is a human-in-the-loop flow.**

After calling this tool, STOP and tell the user to check their
Nostr client and reply to the challenge. Wait for the user to
confirm they have replied before calling ``receive_npub_proof``.
Do NOT poll or retry — each ``receive_npub_proof`` call
destructively drains the relay mailbox.

\**Returns** a ``dpop_token`` — the demonstrated-proof-of-possession
token that the calling application MUST remember and pass as the
\``dpop_token`` parameter on every subsequent paid tool call. The MCP
does not retain this value across restarts.

\**Lifecycle:** The cached proof expires after the patron's
chosen duration. When it expires, call ``request_npub_proof``
again for a fresh challenge, then wait for the user, then
call ``receive_npub_proof``.

Free.

Input parameters:

- `patron_npub` (string): Required. The patron's npub to request proof from.
- `reason` (string): Optional. A human-readable purpose for the request ("I'm working on your request XYZ and need the Operator to do ABC for you"). Signed into the provenance attestation and shown in the DM, so the reci…
- `verify_at` (string): Optional. A free-form statement of WHERE you (the initiating agent) already showed this proof's one-time code to the user — a URL, or "your Claude.ai conversation", "the Grok session". The OAuth 2.0…

### `brain_receive_npub_proof` (~309 tokens)

Receive npub ownership confirmation from a patron.

Completes the npub-OWNERSHIP-PROOF flow (the credential-delivery
counterpart is ``receive_credentials``).

\**Call this only after the user confirms they have replied.**
Deterministic, one-shot retrieval: name the response with
\``(patron_npub, dpop_token)`` — the ``dpop_token`` being the value
returned by ``request_npub_proof``. The tool drains ONLY the pinned
rendezvous relay that challenge was published on, stopping at the DM
whose phrase matches. Mismatched DMs are deleted and NACK'd (without
revealing the expected phrase). If called before the user replies,
their message will never be found. Do NOT poll, loop, or retry.

The signed DM itself proves npub ownership (the patron's nsec
signed it). On success, returns the ``dpop_token`` — the same
token. The calling application MUST remember it and pass it as the
\``dpop_token`` parameter on every subsequent paid tool call. The
proof (a hash of the token) is stored in the vault keyed by that
hash — the MCP never stores the raw token itself. Free.

Input parameters:

- `dpop_token` (string): Required. The dpop_token returned by request_npub_proof.
- `patron_npub` (string): Required. The patron's npub to receive proof from.

### `brain_check_proof_status` (~137 tokens)

Check whether a previously-cached dpop_token is still valid.

Mirrors ``check_oauth_status`` for the npub-proof flow: a calling
agent can ask "will my next paid call accept this dpop_token?"
before burning credits on a guaranteed failure.

Free, no side effects — does not evict the cache or touch relays.

Input parameters:

- `dpop_token` (string): Required. The dpop_token phrase returned by ``request_npub_proof`` / ``receive_npub_proof``.
- `patron_npub` (string): Required. The patron's npub (npub1...).

### `brain_oracle_how_to_join` (~24 tokens)

Get DPYC onboarding instructions from the Oracle. Free.

### `brain_oracle_get_tax_rate` (~23 tokens)

Get the current DPYC certification tax rate. Free.

### `brain_oracle_lookup_member` (~32 tokens)

Look up a DPYC community member by npub. Free.

Input parameters:

- `npub` (string, required)

### `brain_oracle_about` (~21 tokens)

Describe the DPYC ecosystem via the Oracle. Free.

### `brain_oracle_network_advisory` (~24 tokens)

Get active network advisories from the Oracle. Free.

### `brain_check_authority_balance` (~72 tokens)

Check this operator's tax balance at the Authority.

Returns the sats available for certifying patron credit purchases.
When this balance reaches zero, patron top-ups cannot be certified
and the operator must call purchase_credits on the Authority.

This is the operator's own funding — not a patron balance. Free.

### `brain_get_pricing_model` (~50 tokens)

Get the active pricing model for this operator. Free.

If no model exists, self-initializes a scaffold with all
registered tools at 0 sats.  No economic data from code.

### `brain_set_pricing_model` (~67 tokens)

Set the active pricing model. RESTRICTED to operator.

Requires a valid proof (Schnorr-signed kind-27235 event)
proving the caller holds the operator's nsec.

Input parameters:

- `dpop_token` (string)
- `model_json` (string, required)

### `brain_reset_pricing_model` (~80 tokens)

Erase all pricing models and restore a viable default.

Deletes every stored model, then self-initializes a fresh one
from the tool registry — all tools at 0 sats with proper UUIDs.
Returns the new model.

RESTRICTED to operator — requires proof (nsec-signed).

Input parameters:

- `dpop_token` (string)

### `brain_request_adoption` (~192 tokens)

Ask a chosen Authority to adopt this operator (deferred courtship).

RESTRICTED to the operator — requires proof the caller controls this
operator's npub. Resolves the Authority's MCP endpoint from the
community registry, mints an inline ownership proof with this
operator's nsec, and delivers the request MCP-to-MCP. The Authority
records it as pending; its owner approves on their own time. Poll
\``adoption_status`` for progress; the operator flips to ``ready``
once the Authority provisions it.

Input parameters:

- `authority_npub` (string, required): npub of the Authority to request adoption from.
- `dpop_token` (string): operator-npub ownership proof (inline kind-27235 or cached token).
- `note` (string): optional message for the Authority owner.
- `service_url` (string): this operator's MCP endpoint (advertised to the Authority).

### `brain_adoption_status` (~69 tokens)

Check this operator's adoption-request status at a chosen Authority.

Free. Polls the Authority MCP-to-MCP for the status of this operator's
request (pending / approved / rejected / provisioned).

Input parameters:

- `authority_npub` (string, required)
- `dpop_token` (string)

### `brain_restore_neon_schema` (~147 tokens)

Re-run ``ensure_schema()`` on every NeonVault this operator uses.

Diagnostic / recovery tool for the case where the Neon HTTP SQL API
is returning persistent 4xx errors and the operator suspects the
schema isn't there or grants are wrong. Idempotent — uses
\``CREATE TABLE IF NOT EXISTS`` so a successful re-run is harmless.

Returns the per-step result. If any step raises, surfaces the Neon
error message inline (0.31.0 reads the SQL error body that earlier
wheels swallowed behind ``raise_for_status``).

RESTRICTED to operator — requires proof (nsec-signed).

Input parameters:

- `dpop_token` (string)

### `brain_list_canonical_identities` (~124 tokens)

Return canonical (tool_id, mcp_name, …) for every registered tool.

The authoritative source for any client (Studio, agents, FE)
that needs to know how this MCP identifies its tools.
Reconcile uses this output to UUID-join against the stored
pricing model — no name-based UUID derivation, no guessing.

If the operator renames a function or rebrands a slug, the
mcp_name in this output changes but tool_id stays. That's the
whole point of the canonical-UUID design.

Free, no side effects.

### `brain_get_nostr_profile` (~87 tokens)

Read an npub's public Nostr profile (NIP-01 kind-0 metadata).

Free, no proof — the data is already public on relays. Returns the
latest metadata fields (name, display_name, about, picture, banner,
nip05, website, lud16) or an empty profile if none is published.

Input parameters:

- `npub` (string)

### `brain_publish_nostr_profile` (~149 tokens)

Publish a CLIENT-SIGNED kind-0 profile to relays for an npub.

The wheel never holds a patron nsec. The frontend signs the kind-0
metadata event with the patron's session key or a NIP-07 extension and
passes the signed event (JSON) here; the wheel verifies the signature
matches the npub, then relays it to public relays. The signature is the
authorization — no proof token, no key custody. Free.

Input parameters:

- `npub` (string): The patron's Nostr public key the event must be signed by.
- `signed_event` (string): A JSON-encoded, client-signed kind-0 event.

### `brain_check_price` (~179 tokens)

Preview the effective cost of a tool call.

Shows the base cost and any constraint effects (discounts, free
trials, surge pricing). Free — no credits required.

Input parameters:

- `dpop_token` (string)
- `npub` (string)
- `tool_id` (string, required): Either the tool's UUID (from the pricing model) or a bare capability string (e.g. ``"deal_scenario"``). FE callers usually have the capability name; this resolves both so the FE doesn't need to deriv…
- `tool_kwargs` (string): Optional JSON object with tool call parameters for ad valorem / categorical-multiplier pricing preview (e.g. '{"amount_sats": 5000}' or '{"difficulty": "sovereign", "mode": "live"}').

### `brain_list_constraint_types` (~50 tokens)

List all available constraint types and their parameter schemas.

Returns the type, category, description, and parameter specs for
every constraint that can be used in a pricing pipeline.
Free — no credits required.

### `brain_mint_coupon` (~151 tokens)

Create a new operator-owned discount coupon.

Input parameters:

- `discount_percent` (number, required): Percentage off the base price (0-100).
- `dpop_token` (string)
- `name` (string, required): The catchy code patrons type to redeem (operator-scoped uniqueness).
- `total_uses`: Aggregate cap across all patrons (default None = unlimited).
- `uses_per_patron`: How many tool calls one patron can claim the discount on (default 1; pass null/None for unlimited within the window).
- `valid_from` (string, required): ISO-8601 datetime when the coupon becomes active.
- `valid_until` (string, required): ISO-8601 datetime when the coupon expires.

### `brain_list_coupons` (~70 tokens)

List every coupon this operator has minted (newest first).

Each row carries the current ``times_redeemed`` counter — the
Studio renders a progress bar from this against ``total_uses``.
RESTRICTED to operator — requires proof.

Input parameters:

- `dpop_token` (string)

### `brain_update_coupon` (~166 tokens)

Patch a coupon's editable fields.

Pass only the fields you want to change.  To set a cap to
unlimited (NULL in the schema), pass ``clear_uses_per_patron=true``
or ``clear_total_uses=true``.  Renaming the code is allowed —
existing patron redemption rows survive (they key on coupon id).

RESTRICTED to operator — requires proof.

Input parameters:

- `clear_total_uses` (boolean)
- `clear_uses_per_patron` (boolean)
- `coupon_id` (string, required)
- `discount_percent`
- `dpop_token` (string)
- `name`
- `total_uses`
- `uses_per_patron`
- `valid_from`
- `valid_until`

### `brain_delete_coupon` (~81 tokens)

Delete a coupon.  Cascades to all patron redemptions.

Any chain step referencing the deleted coupon_id becomes a
no-op (the constraint returns neutral on unknown ids) — the
Studio surfaces orphan references as warnings.

RESTRICTED to operator — requires proof.

Input parameters:

- `coupon_id` (string, required)
- `dpop_token` (string)

### `brain_redeem_coupon` (~133 tokens)

Claim a coupon by its name (the code the operator shared).

Looks up the operator's coupon by ``code``, validates the window
and total cap, and records a per-patron redemption row.
Subsequent paid tool calls on this MCP auto-apply the discount
until ``uses_per_patron`` is exhausted.

Free — no credits required.  Requires proof of ``npub``.
Idempotent: redeeming the same code twice returns the existing
redemption.

Input parameters:

- `code` (string, required)
- `dpop_token` (string)
- `npub` (string, required)

### `brain_list_my_coupons` (~88 tokens)

List the coupons this patron has redeemed on this operator.

Returns both active and exhausted redemptions with a per-row
\``status`` (``active`` / ``window_closed`` / ``patron_limit`` /
\``total_limit``).  Free — requires proof of ``npub``.

Input parameters:

- `dpop_token` (string)
- `npub` (string, required)

### `brain_forget_coupon` (~87 tokens)

Remove a coupon from this patron's redemption list.

Cosmetic only — the coupon itself still exists at the operator,
and the patron can re-redeem the same code later while the
window allows.  Free — requires proof of ``npub``.

Input parameters:

- `coupon_id` (string, required)
- `dpop_token` (string)
- `npub` (string, required)

### `brain_notarize_ledger` (~53 tokens)

Build a Merkle tree of all patron balances and submit the root
to Bitcoin via OpenTimestamps.

Operator-only background task. Bitcoin confirmation takes 1-6 hours.
Free — no credits required.

### `brain_get_notarization_proof` (~69 tokens)

Generate a Merkle inclusion proof that a patron's balance was
included in a Bitcoin-notarized snapshot.

Input parameters:

- `notarization_id` (string, required): The notarization record ID.
- `npub` (string, required): The patron's Nostr public key (npub1...).

### `brain_list_notarizations` (~51 tokens)

List recent Bitcoin notarization records.

Input parameters:

- `limit` (integer): Maximum records to return (default 20).
- `status` (string): Optional filter (e.g., 'submitted', 'confirmed').

### `brain_list_brains` (~46 tokens)

List available brains.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_get_brain` (~69 tokens)

Get details about a specific brain. Requires npub for credit billing.

Input parameters:

- `brain_id` (string, required): The ID of the brain
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_set_active_brain` (~75 tokens)

Set the active brain for subsequent operations. Requires npub for credit billing.

Input parameters:

- `brain_id` (string, required): The ID of the brain to set as active
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_get_brain_stats` (~74 tokens)

Get statistics about a brain. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_create_thought` (~285 tokens)

Create a new thought with optional type, color, label, and parent link. Requires npub for credit billing.

Input parameters:

- `ac_type` (integer): Access type (0=Public, 1=Private)
- `background_color`: Background color in hex format (e.g., "#0000ff")
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `foreground_color`: Foreground color in hex format (e.g., "#ff0000")
- `kind` (integer): Kind of thought to create — 1=Normal (default) or 2=Type. Tags and Events are NOT created via kind (the API rejects those values); model them as Normal thoughts carrying the appropriate type_id from…
- `label`: Optional label for the thought
- `name` (string, required): The name of the thought
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `relation`: Relation type if linking (1=Child, 2=Parent, 3=Jump, 4=Sibling)
- `source_thought_id`: ID of the source thought to link from
- `type_id`: ID of the thought type to assign

### `brain_get_thought` (~87 tokens)

Get details about a specific thought. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_get_thought_by_name` (~196 tokens)

Exact name lookup — returns the first thought matching the name exactly. Requires npub for credit billing.

⚠️ NOT AUTHORITATIVE. Backed by the vendor's name index, which is known to be
incomplete on large brains (upstream: TheBrainTech/thebrain-api-quickstart-python#1):
a hit is real, but a MISS is NOT proof the thought is absent. Never conclude a
thought does not exist from a null result here — verify by ID with get_thought, or
by graph traversal from a known neighbour, before creating a duplicate.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `name_exact` (string, required): The exact name to match (case-sensitive)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_update_thought` (~288 tokens)

Update a thought's properties and/or its parent in one call. Requires npub for credit billing.

Sets any subset of {name, label, colors, kind, ac_type, type, parent} on a single
thought. Reparenting via ``new_parent_id`` *replaces* the existing parent link (the old
parent child-link is deleted and a new one created); it does not add an additional parent.

Input parameters:

- `ac_type`: New access type
- `background_color`: New background color in hex
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `confirm` (boolean): If True, verify type/parent changes against the authoritative change-log (SET_TYPE / MOVED_LINK) instead of the cached graph, and attach a ``confirmation`` block. Costs one extra billed read.
- `dpop_token` (string)
- `foreground_color`: New foreground color in hex
- `kind`: New kind
- `label`: New label
- `name`: New name
- `new_parent_id`: New parent thought ID (replaces all current parents)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought to update
- `type_id`: New type ID

### `brain_delete_thought` (~151 tokens)

Permanently delete a thought by ID. Cannot be undone. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `confirm` (boolean): If True, verify the deletion against the authoritative change-log (a logged DELETED entry) and attach a ``confirmation`` block. The command store already 404s a deleted thought; this adds an audit-gr…
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_search_thoughts` (~221 tokens)

Full-text search across thought names and content. Requires npub for credit billing.

⚠️ NOT AUTHORITATIVE. Backed by the vendor's search index, which is incomplete on
large brains (upstream: TheBrainTech/thebrain-api-quickstart-python#1) — it returns
empty for the majority of thoughts that provably exist. A hit is real; an empty
result is NOT proof of absence. Use for discovery of older/established thoughts, not
as an existence check — verify by ID with get_thought before acting on "not found".

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `max_results` (integer): Maximum number of results
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `only_search_thought_names` (boolean): Only search in thought names (not content)
- `query_text` (string, required): Search query text

### `brain_get_thought_graph` (~234 tokens)

Get a thought's full connection graph. Requires npub for credit billing.

⚠️ NOT AUTHORITATIVE FOR RECENT CHANGES. Served through the vendor's cached graph
layer (Azure App Service response cache), which lags writes by hours-to-days and
reflects creates but NOT updates or deletes — it can return renamed/retyped thoughts
with their old values and even serve thoughts that were already deleted (upstream:
TheBrainTech/thebrain-api-quickstart-python#2). Use this for fast traversal of
established structure and for finding older thought IDs. Do NOT use it to verify a
recent write — confirm mutations by ID with get_thought, which reads the authoritative
command store.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `include_siblings` (boolean): Include sibling thoughts in the graph
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_get_thought_graph_paginated` (~248 tokens)

Cursor-based paginated traversal of a thought's connections. Requires npub for credit billing.

⚠️ NOT AUTHORITATIVE FOR RECENT CHANGES. Same cached graph layer as get_thought_graph
(upstream: TheBrainTech/thebrain-api-quickstart-python#2) — lags writes by hours-to-days
and does not reflect updates or deletes. Use for traversal/ID discovery, never as
read-after-write verification; confirm mutations by ID with get_thought.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `cursor`: Pagination cursor from a previous response
- `direction` (string): "older" (newest first) or "newer" (oldest first)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `page_size` (integer): Number of results per page (default 10)
- `relation_filter`: Filter by relation: "child", "parent", "jump", "sibling"
- `thought_id` (string, required): The ID of the thought

### `brain_get_types` (~75 tokens)

List all thought types defined in the brain. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_get_tags` (~73 tokens)

Get all tags in a brain. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_create_link` (~178 tokens)

Create a relationship between two thoughts by ID. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `color`: Link color in hex format
- `direction`: Direction flags
- `dpop_token` (string)
- `name`: Label for the link
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `relation` (integer, required): Relation type (1=Child, 2=Parent, 3=Jump, 4=Sibling)
- `thickness`: Link thickness (1-10)
- `thought_id_a` (string, required): ID of the first thought
- `thought_id_b` (string, required): ID of the second thought
- `type_id`: ID of link type

### `brain_update_link` (~128 tokens)

Update link properties. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `color`: New color in hex
- `direction`: New direction flags
- `dpop_token` (string)
- `link_id` (string, required): The ID of the link to update
- `name`: New label
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `relation`: New relation type
- `thickness`: New thickness (1-10)

### `brain_get_link` (~86 tokens)

Get details about a specific link. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `link_id` (string, required): The ID of the link
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_delete_link` (~91 tokens)

Permanently delete a link by ID. Cannot be undone. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `link_id` (string, required): The ID of the link
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_add_file_attachment` (~114 tokens)

Add a file attachment to a thought. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `file_name`: Name for the attachment (optional)
- `file_path` (string, required): Path to the file to attach
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_add_url_attachment` (~116 tokens)

Add a URL attachment to a thought. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `name`: Name for the URL attachment (auto-fetched if not provided)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought
- `url` (string, required): The URL to attach

### `brain_get_attachment` (~85 tokens)

Get metadata about an attachment. Requires npub for credit billing.

Input parameters:

- `attachment_id` (string, required): The ID of the attachment
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_get_attachment_content` (~102 tokens)

Get the binary content of an attachment. Requires npub for credit billing.

Input parameters:

- `attachment_id` (string, required): The ID of the attachment
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `save_to_path`: Optional path to save the file locally

### `brain_delete_attachment` (~83 tokens)

Delete an attachment. Requires npub for credit billing.

Input parameters:

- `attachment_id` (string, required): The ID of the attachment
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.

### `brain_list_attachments` (~87 tokens)

List all attachments for a thought. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_get_note` (~103 tokens)

Get the note content for a thought. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `format` (string): Output format (markdown, html, or text)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_create_or_update_note` (~306 tokens)

Create or update a note with markdown content. Requires npub for credit billing.

Note style. Prefer plain prose. Reserve bold for rare critical flags only — a ⚠️ caution, an unconfirmed-status note — never for ordinary emphasis, labels, or whole clauses. Overusing bold buries the links and makes notes hard to scan; let thought-links and source links carry the visual emphasis. Put web sources on a quiet "Sources:" line rather than bolding labels like "TL;DR" or "Source".
Linking to other thoughts. To link from inside a note to another thought, write a wikilink: [[Thought Name]] or [[Thought Name|display text]]. The tool resolves it to the correct in-plex thought link automatically — do not hand-write brain:// URLs or paste GUIDs. If a name is ambiguous or not found, the tool leaves the [[...]] literal and returns it in unresolved; disambiguate by pinning the id with [[#<thoughtId>]]. For external web pages, use normal markdown links: [text](https://…).

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `markdown` (string, required): Markdown content for the note
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_append_to_note` (~302 tokens)

Append content to an existing note. Requires npub for credit billing.

Note style. Prefer plain prose. Reserve bold for rare critical flags only — a ⚠️ caution, an unconfirmed-status note — never for ordinary emphasis, labels, or whole clauses. Overusing bold buries the links and makes notes hard to scan; let thought-links and source links carry the visual emphasis. Put web sources on a quiet "Sources:" line rather than bolding labels like "TL;DR" or "Source".
Linking to other thoughts. To link from inside a note to another thought, write a wikilink: [[Thought Name]] or [[Thought Name|display text]]. The tool resolves it to the correct in-plex thought link automatically — do not hand-write brain:// URLs or paste GUIDs. If a name is ambiguous or not found, the tool leaves the [[...]] literal and returns it in unresolved; disambiguate by pinning the id with [[#<thoughtId>]]. For external web pages, use normal markdown links: [text](https://…).

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `markdown` (string, required): Markdown content to append
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought

### `brain_get_modifications` (~421 tokens)

The brain's authoritative, uncached change-log. Requires npub for credit billing.

Unlike get_thought_graph and search (Azure-cached, stale for recent writes),
this feed reflects every operation promptly — CREATED (101), DELETED (102),
CHANGED_NAME (103), SET_TYPE (203), MOVED_LINK (402), etc. — with old→new
values and timestamps. Use it for two things:

1\. **Confirm a write landed** — after a mutation, query with start_time set to
   just before it and check for the matching entry. This is the authoritative
   read-after-write check (stronger than the cached graph, and it confirms
   deletes and type/link changes the graph hides). The heavy mutating tools
   also expose a ``confirm=True`` flag that does this for you.
2\. **Discover recent / peer activity** — "what changed since T" so an agent can
   pick up where others left off.

⚠️ ``userId`` is the TheBrain *account* owner, shared by every agent using this
operator's key — it distinguishes human-desktop vs API activity, NOT one agent
from another. Peer discovery here is by time + content, not by author.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `end_time`: End time for logs (ISO format)
- `max_logs` (integer): Maximum number of logs to fetch from the API (pre-filter)
- `mod_types`: Only return entries whose modType is in this list (e.g. [102] for deletes)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `source_id`: Only return entries for this thought/link ID
- `source_type`: Only return entries of this SourceType (2=Thought, 3=Link)
- `start_time`: Start time for logs (ISO format)

### `brain_brain_query` (~257 tokens)

Primary tool for pattern-based operations on TheBrain. Requires npub for credit billing.

Accepts BrainQuery (BQL) -- a Cypher subset supporting MATCH, WHERE, CREATE,
SET, MERGE, DELETE, and RETURN.

⚠️ Name-based matching (MATCH by name, WHERE CONTAINS/STARTS WITH/=~) resolves through
the vendor's search/name index, which is incomplete on large brains
(TheBrainTech/thebrain-api-quickstart-python#1): a query may fail to match a thought
that provably exists. An empty match set is NOT proof of absence — do not CREATE/MERGE a
node on the assumption it is missing without an ID-based check (get_thought). Matching by
ID is reliable; matching by name inherits the index's blind spots.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `confirm` (boolean): Set to true to confirm and execute a DELETE operation.
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `query` (string, required): A BrainQuery string (Cypher subset).

### `brain_morph_thought` (~243 tokens)

Atomically reparent and/or retype a thought in one operation. Requires npub for credit billing.

Reparenting *replaces* the thought's existing parent link (the old parent child-link is
deleted and a new one created); it does not add an additional parent. To also set the
thought's name or label in the same call, use update_thought (which now accepts new_parent_id).

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `confirm` (boolean): If True, verify the reparent/retype against the authoritative change-log (MOVED_LINK / SET_TYPE) instead of the cached graph, and attach a ``confirmation`` block. Costs one extra billed read.
- `dpop_token` (string)
- `new_parent_id`: ID of the new parent thought (replaces all current parents)
- `new_type_id`: ID of the new type to assign
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `thought_id` (string, required): The ID of the thought to morph

### `brain_scan_orphans` (~135 tokens)

Scan for orphaned thoughts with zero connections and optionally rescue them. Requires npub for credit billing.

Input parameters:

- `batch_size` (integer): Number of orphans to process per batch
- `brain_id`: The ID of the brain (uses active brain if not specified)
- `dpop_token` (string)
- `dry_run` (boolean): If true, only report orphans without rescuing them
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `orphanage_name` (string): Name of the orphanage thought to rescue orphans under

### `brain_event_for_person` (~134 tokens)

Create an Event+Person+Day in one action. Requires npub for credit billing.

Input parameters:

- `brain_id`: The ID of the brain (uses active brain if not specified)
- `date` (string, required): Flexible date string (ISO, natural language, relative)
- `dpop_token` (string)
- `event_name`: Custom event name (auto-generated if omitted)
- `notes`: Optional markdown note for the Event
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `person` (string, required): Full name or thought ID (UUID)

## Diagnostics

Captured diagnostic sections: TLS, DNSSEC, Authorisation, Transports. The full working is on the page: https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain#diagnostics

## Score history

- 2026-08-03: 62
- 2026-08-02: 61
- 2026-08-01: 61
- 2026-07-31: 60
- 2026-07-30: 55
- 2026-07-29: 55
- 2026-07-28: 54
- 2026-07-27: 53
- 2026-07-26: 53

## Links

- Remote endpoint: https://personal-brain.fastmcp.app/mcp
- Repository: https://github.com/lonniev/thebrain-mcp
- Changelog RSS feed: https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain/changelog.json
- HTML version of this page: https://verifymcp.io/servers/lonniev-personalbrain-mcp/personal-brain
