DevelopersResearch data · no trading

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)ResearcherAdvanced ResearcherPay-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 included200 / 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 decisions10 / day, full history$0.25 (newest 3,000)
Advanced comparison——included$0.10
Daily compute allowance—120 CPU-s600 CPU-s, queue priorityper 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)#

EndpointForBehaviour
https://lab.alphamorph.si/mcp/memberiMORPH and MLL membersAsks 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/mcpAnonymous explorationAll 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

Find decisions where the planning circuit favored GO but the final action was NO-GO, open one, and explain which circuits favored and opposed acting. Cite the evidence class of every claim.
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

Show 3 decisions where removing memory changed the final decision, open the first trace, and say what the counterfactual does and does not show.
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)

Run a memory_intervention experiment with mode remove on one decision and show the report with its reproducibility block.
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-decisions with 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 toolRESTAccess
get_brain_statusGET /api/v1/statusFree
get_access_statusGET /api/v1/accessFree
list_decisionsGET /api/v1/decisionsFree
get_decision_traceGET /api/v1/decisions/{seq}Free
list_circuit_eventsGET /api/v1/eventsFree
get_circuitGET /api/v1/circuits/{candidate}Free
list_candidatesGET /api/v1/candidatesFree
get_lineageGET /api/v1/lineageFree
compare_decisionsGET /api/v1/compare/decisionsFree
compare_candidatesGET /api/v1/compare/candidatesFree
list_research_resultsGET /api/v1/research-resultsFree
search_decisionsGET/POST /api/v1/search/decisionsFree
get_live_circuit_eventsGET /api/v1/live/circuit-eventsFree · feed currently off (404 live_disabled)
search_historical_decisionsPOST/GET /api/v1/search/historical-decisionsMember
run_experimentPOST /api/v1/experiments → 202Member
get_experiment_statusGET /api/v1/experiments/{job_id}Owner only
get_experiment_reportGET /api/v1/reports/{report_id}Owner only
cancel_experimentPOST /api/v1/experiments/{job_id}/cancelOwner only
list_my_reportsGET /api/v1/my/reportsOwner 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.

ClassMeaning
RECORDEDA recorded shadow decision or on-chain observation in the immutable, hashed dataset (paper/shadow only).
PAPEROutcome of a closed shadow paper position (modelled fees and gas). Never a real trade.
COUNTERFACTUALA hypothetical: a research-walk counterfactual or a one-step simulated intervention (method: simulated_intervention). Shows mechanism, never performance.
SYNTHETICTest fixture or synthetic data (overrides every other class).
LIVERead from the live public engine. The live feed is currently off; get_brain_status reports its state.
Not performance evidence. Nothing here is a trading signal, a backtest or a claim of returns. Recorded decisions are shadow/paper decisions; experiments are one-step simulated interventions with the learned state held fixed. They show how the circuits work in a given context, not whether any strategy would make money. Not financial advice.

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:

PresetClassMeans — and does not mean
memory_negative_signalRECORDEDA negative memory signal was present. Presence, not influence.
memory_contributed_inhibitionRECORDEDThe signal entered the inhibitory pathway with a non-zero term. Contribution, not causation.
memory_decision_pivotalCOUNTERFACTUALRemoving 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_of names the dataset id and observation. The dataset is immutable and chain-matched (GET /api/v1/status → chain).
  • Experiment reports carry a reproducibility block: job and report id, type/params/target, protocol version, dataset id with manifest and per-file sha256, code revision, config hash and result_sha256.
  • The same experiment gives the same result_sha256 whether it ran in Brain Lab, over REST or over MCP.
  • memory_decision_pivotal items carry membership.verify: the exact run_experiment body 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)#

Open to everyone on Robinhood Chain mainnet (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:

OperationPrice (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_trace costs 5 tokens; searches and compare_candidates cost 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.
StatusMeaning
400Bad request (invalid filter, parameter or body)
401Sign-in required or invalid token (WWW-Authenticate)
402Payment required (x402, where enabled)
403Your tier or token scope does not allow this
404Not found, including someone else's job or report; live_disabled while the live feed is off
405Wrong method
413Request body too large
429Rate limit or daily allowance exhausted (Retry-After; nothing charged)
503Global 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.