Research API + MCP Give your AI access to AlphaMorph's brain
AlphaMorph is an experimental, biologically inspired research system: a set of shadow decision circuits (thalamus, prefrontal planning, hippocampus memory, amygdala threat, ACC conflict, basal-ganglia Go/No-Go, …) that evaluate real Robinhood Chain market observations and make paper/shadow decisions only — no real trading. Every decision, its inputs, activations and learned weights are recorded in an immutable, hash-identified dataset.
The Research API (REST, /api/v1) and the MCP server (/mcp, /mcp/member) let you
or your AI assistant read that record (brain status, decisions, full decision traces, circuits, lineage, published
research), search it with filters and named presets, and run bounded one-step experiments through Brain Lab's
own experiment engine with reproducible reports. REST and MCP are two transports over one service: the same inputs give
the same answers, labels and limits.
- Free readsOpen to everyone, no sign-in
- Member MCP + APIWallet sign-in, included allowance
- Pay-as-you-go (x402)Open: pay per operation in USDG
- LIVE feedOff: recorded data only
Base URL https://lab.alphamorph.si · Machine-readable spec:
/api/v1/openapi.json (OpenAPI 3.1) and MCP tools/list.
1 · Quick start (no account, no wallet)#
B=https://lab.alphamorph.si
curl -s $B/api/v1/status # dataset id, data age, chain match, live-feed state
curl -s "$B/api/v1/decisions?candidate=c0&limit=5"
curl -s "$B/api/v1/search/decisions?preset=plan_go_final_nogo&limit=10"
# ^ decisions where the planning circuit favored GO but the final action was NO-GO
curl -s "$B/api/v1/search/decisions?preset=memory_decision_pivotal&limit=5"
# ^ decisions where removing memory changes the final action (one-step counterfactual)
curl -s $B/api/v1/decisions/<seq> # one decision in depth + connected evidence
curl -s $B/api/v1/research-results # published research releases
curl -s $B/api/v1/access # who am I: tier, allowances, prices
Every success uses the same envelope:
{"ok": true, "api_version": "v1", "op": "search_decisions", "data": {...},
"evidence": {"evidence_class": "...", "classes": [...], "data_label": "PRODUCTION_SNAPSHOT_REPLAY",
"legend": {...}, "real_executed_trades": 0},
"as_of": {"dataset_id": "...", "obs_id": ..., "ts": ...}, "links": {...}}
Errors: {"ok": false, "api_version": "v1", "error": "<code>", "message": "...", "access": {...}}. On
401/402/403/429 the access block always says how to get access: which tier, how to sign in.
2 · Access & daily allowances#
Access uses Brain Lab's existing wallet tiers. One allowance per wallet is shared by the Brain Lab web app, the REST API and MCP. The tier is read on Robinhood Chain at sign-in and before every reservation, and is never stored in a token.
- Researcher = iMORPH held in the wallet + staked in Earn ≥ 1,000,000.
- Advanced Researcher = iMORPH staked in Earn ≥ 2,000,000, or an eligible AlphaMorph Model Lineage League (MLL) NFT.
- Holding without staking never gives Advanced: held iMORPH counts toward Researcher only.
| Public (no wallet) | Researcher | Advanced Researcher | Pay-as-you-go (x402) | |
|---|---|---|---|---|
| Free research reads (status, decisions, traces, circuits, lineage, compare, published research, recent-window search) | ✓ free, rate-limited | ✓ | ✓ | ✓ |
| Full-history search | — | 50 / day included | 200 / day included | $0.01 per search |
| Single experiment | — | 10 / day (30 CPU-s cap each) | 40 / day (60 CPU-s cap each) | $0.05 |
| Batch experiment | — | 2 / day, newest 3,000 decisions | 10 / day, full history | $0.25 (newest 3,000) |
| Advanced comparison | — | — | included | $0.10 |
| Daily compute allowance | — | 120 CPU-s | 600 CPU-s, queue priority | per call |
Allowances are per UTC day, reset at 00:00 UTC and do not roll over. 1 unit = 1 measured CPU-second of the
experiment worker, rounded up; a job reserves its cap and the unused part is refunded. Searches reserve 0 units and are
limited by their daily count. When the shared global daily compute cap is reached, the answer is 503
“try later”, never a payment request.
3 · Connect your AI (MCP)#
| Endpoint | For | Behaviour |
|---|---|---|
https://lab.alphamorph.si/mcp/member | iMORPH and MLL members | Asks for wallet sign-in as soon as you add it (HTTP 401 + WWW-Authenticate), then every tool runs on your Brain Lab tier and allowance. No payment. |
https://lab.alphamorph.si/mcp | Anonymous exploration | All free tools work without sign-in. Protected tools answer with how to get access. |
Sign-in is OAuth 2.1 on the same origin. Your AI client opens a lab.alphamorph.si consent page, you connect your
wallet and sign the Brain Lab login message — a signature only, no transaction; your private key is never shared and
never leaves your wallet — then approve. Scopes: research:read, research:experiments.
Claude (claude.ai / Claude Desktop)
Settings → Connectors → Add custom connector → URL https://lab.alphamorph.si/mcp/member (leave client id and
secret empty) → Connect → sign in on the consent page.
ChatGPT
Settings → Apps & Connectors → Advanced → Developer mode → Create → server URL
https://lab.alphamorph.si/mcp/member, authentication OAuth.
Claude Code
claude mcp add --transport http alphamorph https://lab.alphamorph.si/mcp/member
# then run /mcp inside Claude Code and choose Authenticate
Cursor
// ~/.cursor/mcp.json
{"mcpServers": {"alphamorph": {"url": "https://lab.alphamorph.si/mcp/member"}}}
Research tokens (scripts and header-based clients)
A signed-in member can issue a research token with POST /api/v1/tokens (using the bearer of a Brain Lab
session). The amr_… token is shown once, has the scopes above, lives at most 90 days and can be revoked with
DELETE /api/v1/tokens/{token_id}. Use it as Authorization: Bearer amr_… on REST or on
https://lab.alphamorph.si/mcp:
claude mcp add --transport http alphamorph https://lab.alphamorph.si/mcp \
--header "Authorization: Bearer amr_…"
Protocol: Streamable HTTP, POST, JSON responses; MCP 2026-07-28 and 2025-11-25 (plus earlier
initialize versions). Every tool description starts with [FREE …] or [PROTECTED …];
input and output schemas are JSON Schema 2020-12, and structuredContent is the REST envelope.
4 · Example requests#
Planning said GO, the final action was NO-GO
curl -s "$B/api/v1/search/decisions?preset=plan_go_final_nogo&candidate=c0&limit=5" \
| jq '.data.items[] | {seq, candidate, action, reason, evidence_class}'
curl -s "$B/api/v1/decisions/<seq>" # inputs, activations, weights, explanation, neighbours
Tools used: search_decisions then get_decision_trace.
Where memory was decision-pivotal
curl -s "$B/api/v1/search/decisions?preset=memory_decision_pivotal&limit=3"
# each item: evidence_class RECORDED (the decision) + membership.evidence_class COUNTERFACTUAL
Run an experiment (members)
curl -s -X POST $B/api/v1/experiments \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"type":"memory_intervention","params":{"mode":"remove"},"target":{"scope":"single","seq":<seq>}}'
# -> 202 with the job; poll until state is "succeeded":
curl -s $B/api/v1/experiments/<job_id> -H "Authorization: Bearer $TOKEN"
curl -s $B/api/v1/reports/<report_id> -H "Authorization: Bearer $TOKEN"
Tools used: run_experiment, get_experiment_status, get_experiment_report. Experiment
types: memory_intervention (mode e.g. remove or scale), gonogo_threshold,
attention, candidate_comparison (Advanced). Targets: {"scope":"single","seq":…} or
{"scope":"batch","candidate":…,"from_obs"?,"to_obs"?}. Bounds: GET /api/lab/meta →
experiment_bounds.
More prompts and filters
- “The recorded negative memory signal entered the inhibitory pathway and the circuit abstained with threat below 0.5” →
preset=memory_contributed_inhibition&action=abstain&max.threat=500000 - “Decisions decided within 2 % of the Go bar” →
preset=near_threshold&band_ppm=20000 - “How do c58 and c60 differ structurally?” →
GET /api/v1/compare/candidates?a=c58&b=c60 - “Search the full history, not just recent decisions” (members) →
POST /api/v1/search/historical-decisionswith the same filters, up to 200 per page.
Search filters: candidate, token, action, reason,
stage, source, from_obs/to_obs, from_t/to_t,
min.<field>/max.<field> on recorded numeric fields (go, nogo,
margin, threat, plan, memory_n, memory_mean, …),
preset, cursor, limit. Public search covers each candidate's newest 2,000 decisions,
up to 50 per page.
5 · Operations = MCP tools#
| MCP tool | REST | Access |
|---|---|---|
get_brain_status | GET /api/v1/status | Free |
get_access_status | GET /api/v1/access | Free |
list_decisions | GET /api/v1/decisions | Free |
get_decision_trace | GET /api/v1/decisions/{seq} | Free |
list_circuit_events | GET /api/v1/events | Free |
get_circuit | GET /api/v1/circuits/{candidate} | Free |
list_candidates | GET /api/v1/candidates | Free |
get_lineage | GET /api/v1/lineage | Free |
compare_decisions | GET /api/v1/compare/decisions | Free |
compare_candidates | GET /api/v1/compare/candidates | Free |
list_research_results | GET /api/v1/research-results | Free |
search_decisions | GET/POST /api/v1/search/decisions | Free |
get_live_circuit_events | GET /api/v1/live/circuit-events | Free · feed currently off (404 live_disabled) |
search_historical_decisions | POST/GET /api/v1/search/historical-decisions | Member |
run_experiment | POST /api/v1/experiments → 202 | Member |
get_experiment_status | GET /api/v1/experiments/{job_id} | Owner only |
get_experiment_report | GET /api/v1/reports/{report_id} | Owner only |
cancel_experiment | POST /api/v1/experiments/{job_id}/cancel | Owner only |
list_my_reports | GET /api/v1/my/reports | Owner only |
Owner-only objects answer 404 to anyone else. Token management (POST/GET /api/v1/tokens,
DELETE /api/v1/tokens/{token_id}) is REST only. Full schemas: /api/v1/openapi.json.
6 · Evidence classes: every item labels itself#
Every data item carries evidence_class, and the envelope lists every class present.
real_executed_trades is always 0: no dataset contains a real trade.
| Class | Meaning |
|---|---|
| RECORDED | A recorded shadow decision or on-chain observation in the immutable, hashed dataset (paper/shadow only). |
| PAPER | Outcome of a closed shadow paper position (modelled fees and gas). Never a real trade. |
| COUNTERFACTUAL | A hypothetical: a research-walk counterfactual or a one-step simulated intervention (method: simulated_intervention). Shows mechanism, never performance. |
| SYNTHETIC | Test fixture or synthetic data (overrides every other class). |
| LIVE | Read from the live public engine. The live feed is currently off; get_brain_status reports its state. |
Search items also carry a membership label so an AI that quotes one item quotes its category and class with
it. Read it as: the decision itself is RECORDED; its membership in “memory was decision-pivotal” is COUNTERFACTUAL.
{"seq": 134422, "candidate": "c60", "action": "abstain", "reason": "nogo",
"evidence_class": "RECORDED",
"membership": {"category": "memory_decision_pivotal", "evidence_class": "COUNTERFACTUAL",
"method": "simulated_intervention (one-step re-evaluation, learned state held fixed)",
"original_action": "abstain", "ablated_action": "enter",
"verify": {"op": "run_experiment", "body": {"type": "memory_intervention",
"params": {"mode": "remove"}, "target": {"scope": "single", "seq": 134422}}}}}
The three memory presets are deliberately separate; only the third may be called decision-relevant:
| Preset | Class | Means — and does not mean |
|---|---|---|
memory_negative_signal | RECORDED | A negative memory signal was present. Presence, not influence. |
memory_contributed_inhibition | RECORDED | The signal entered the inhibitory pathway with a non-zero term. Contribution, not causation. |
memory_decision_pivotal | COUNTERFACTUAL | Removing memory (one step, learned state fixed, safety vetoes kept) changes the final action. Mechanism, not performance. |
Other presets (plan_go_final_nogo, threat_veto, near_threshold) and plain
filters are RECORDED associations, not causes.
7 · Reproducibility#
- Every response's
as_ofnames the dataset id and observation. The dataset is immutable and chain-matched (GET /api/v1/status→chain). - Experiment reports carry a
reproducibilityblock: job and report id, type/params/target, protocol version, dataset id with manifest and per-file sha256, code revision, config hash andresult_sha256. - The same experiment gives the same
result_sha256whether it ran in Brain Lab, over REST or over MCP. memory_decision_pivotalitems carrymembership.verify: the exactrun_experimentbody that reproduces them.- Published research releases (
list_research_results) carry their hashes, URLs and limitations verbatim.
# save data.report of the report response as report.json, obtain the same dataset id, then:
python -m brainlab verify report.json --dataset <dataset dir> # expects reproduced: true
8 · Pay-as-you-go (x402)#
eip155:4663), paid in USDG. Members
should use /mcp/member and their included allowance first; free reads need nothing at all.For agents without a wallet tier, x402 lets you pay for exactly one protected operation in USDG on Robinhood Chain. Prices:
| Operation | Price (USDG) |
|---|---|
Full-history search (search_historical_decisions) | $0.01 |
Single experiment (run_experiment, single) | $0.05 |
Batch experiment (run_experiment, batch) | $0.25 |
Advanced comparison (run_experiment, candidate_comparison) | $0.10 |
How it works, where enabled: a protected call without payment answers 402 with a PAYMENT-REQUIRED
offer; your client signs an authorization locally for that one exact amount and retries the same request with
PAYMENT-SIGNATURE. Over a limit you get 429/503 before any payment is requested — never
a charge for refused work. Claude, ChatGPT and Cursor do not pay x402 automatically.
9 · Limits & errors#
- Rate limits: anonymous 1 request/s, burst 30, per IP (IPv6 per /64); signed-in members 4/s, burst 120 per
address.
get_decision_tracecosts 5 tokens; searches andcompare_candidatescost 2. - Pages: public search ≤ 50 items per page over each candidate's newest 2,000 decisions; full-history search
≤ 200 per page. Paginate with
next_cursor→cursor. - Request bodies ≤ 16 KiB.
| Status | Meaning |
|---|---|
400 | Bad request (invalid filter, parameter or body) |
401 | Sign-in required or invalid token (WWW-Authenticate) |
402 | Payment required (x402, where enabled) |
403 | Your tier or token scope does not allow this |
404 | Not found, including someone else's job or report; live_disabled while the live feed is off |
405 | Wrong method |
413 | Request body too large |
429 | Rate limit or daily allowance exhausted (Retry-After; nothing charged) |
503 | Global daily compute budget reached or a service temporarily unavailable — try later (never a 402) |
MCP: an unknown tool or bad arguments → JSON-RPC -32602 or an isError result;
a disallowed browser Origin → 403; GET /mcp → 405.
10 · Security notes#
- Read-only research. The only writes are bounded research jobs and your own tokens. There is no trading, signing, transfer, treasury, engine-mutation or admin capability anywhere in the API or MCP — not for members, not for payers, not for the team.
- No private key is ever shared. Sign-in is a message signature (no transaction). The server holds no user key and never asks for one.
- Your tier is re-read from the chain on every call; tokens carry scopes, not tiers. Tokens expire and can be revoked.
- Owner-only objects (jobs, reports) answer 404 to everyone else.
Machine-readable: /api/v1/openapi.json · MCP tools/list on
https://lab.alphamorph.si/mcp. Explore the same data visually in Brain Lab.