Build on Erudio reports.
Discovery is free and needs no key: the catalog, every report's preview, any page as Markdown and the free MCP server. A license key comes with a purchase and reads what was bought; the free report is read with the account key its page emails. There is no separate sandbox; everything below works against production, and nothing is charged until a person pays.
Four steps
Over HTTP, start to finish. An MCP agent follows the 5 calls on For agents instead.
- 01
Find and preview a report
catalog.json lists every report; each preview is Markdown or JSON.
- 02
Connect the free MCP
Search, preview and order from any MCP client.
- 03
Order
A quote, a payment link for your user and a pay_url your agent can pay.
- 04
Read what you bought
The license key reads the report over MCP.
# 1. Find a report
curl https://www.erudio.com/catalog.json
# Read its preview
curl https://www.erudio.com/reports/ideate-lung01-nct05280470.md
curl -H "Accept: text/markdown" https://www.erudio.com/reports/ideate-lung01-nct05280470{
"mcpServers": {
"erudio": { "url": "https://mcp.erudio.com/free" }
}
}# 3. Order: returns checkout_url for your user and status_url
curl -X POST https://www.erudio.com/api/orders \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: "<a random UUID per purchase>"' \
-d '{"report": "NCT05280470", "product": "edition",
"buyer_email": "name@company.com"}'{
"mcpServers": {
"erudio": {
"url": "https://mcp.erudio.com/mcp",
"headers": { "Authorization": "Bearer erudio_..." }
}
}
}Connect your AI client
Step-by-step setup for each AI client, checked against its own documentation: where to add the servers, which authentication to pick and what an admin must allow.
APIs and machine-readable files
| Where | Type | What |
|---|---|---|
| /llms.txt | text/plain | The site index for agents |
| /catalog.json | application/json | Every report: trial, NCT ID, drugs, counts, size, price and links |
| /trials/{nct_id}.json | application/json | Any trial by NCT ID, with whether a report exists or can be ordered |
| /reports/{slug}.md, .json | text/markdown, application/json | One report's full public preview |
| /catalog/feed.json, /reports/{slug}/feed.json | application/feed+json | Change feeds (JSON Feed): new editions and substantive changes |
| Any page | text/markdown | Send Accept: text/markdown, or add .md to the URL (/index.md for the home page) |
| /openapi.json | application/json | The order API: create_order, get_order, pay_order |
| /.well-known/api-catalog | application/linkset+json | Every Erudio API with its description and docs (RFC 9727) |
| /.well-known/ai-catalog.json | application/ai-catalog+json | The MCP servers, each with its MCP Server Card (SEP-2127) |
| /.well-known/ard.json | application/json | The same MCP servers with names and example queries for agent discovery (ARD) |
| https://mcp.erudio.com/free | MCP | search_reports, get_report_card, create_order, get_order, recover_key; no sign-in |
| https://mcp.erudio.com/mcp | MCP | Adds read_report, list_reports, get_report_changes and get_my_access; license key or OAuth |
Field-by-field formats are on For agents; every MCP tool is on Erudio MCP.
Keys and scopes
Discovery needs no credentials. A license key starts erudio_ and comes only with a purchase: once an order is paid, its status_url returns the key, and the buyer gets their account key by email. An agent key reads the reports bought with it; the account key reads every report bought with the buyer's email address.
Send the key as Authorization: Bearer erudio_... to the MCP server, and as licence_key (or the same header) with every later create_order, so new reports join it. Store it as a secret. Lost keys are emailed again from /keys or POST /api/keys/recover; the email links a replacement if a key leaked, which changes only that person's key. The account holder can add colleagues by email; each gets their own key, which reads the account's reports.
The MCP server also signs in with OAuth 2.1 and PKCE. Its protected-resource metadata (RFC 9728) is at https://mcp.erudio.com/.well-known/oauth-protected-resource/mcp. Request the least scope you need:
| Scope | Grants |
|---|---|
| read | Read every published report and search the HCP commentary corpus. Granted to Enterprise MCP organizations. |
| report:licensed | Read only the reports bought with the caller's license key or email address. Granted to report buyers. |
Try it without buying
There is no sandbox, because nothing here needs one. Previews, search and quotes are free and real; the only step that costs money is a person paying the checkout link.
- Read any report's preview: findings, counts, sources, trial aspects and limits, as Markdown or JSON.
- Add
https://mcp.erudio.com/freeto your MCP client and call search_reports and get_report_card. - Call create_order to see the exact price, discounts and credit for a buyer. It returns a payment link for a person and a pay_url your agent's payment client can pay. POST pay_url: it answers 402 Payment Required with both offers, MPP (USDC on Tempo, WWW-Authenticate: Payment) and x402 version 2 (USDC on Base, PAYMENT-REQUIRED header). Your payment client pays one and retries the same request; the paid response carries the license key. No network fee on Base: the facilitator pays it. Nothing is charged until one is paid.
- Look up any trial at
/trials/{nct_id}.jsonto see whether a report exists or can be ordered, and its price.
Error format and codes
Every API error is an RFC 9457 problem details object, sent as application/problem+json. code is stable; hint says what to do next. error repeats detail for older clients. A Markdown request for a page that does not exist gets a 404 in Markdown.
{
"type": "https://www.erudio.com/developers#errors-report-not-found",
"title": "Not Found",
"status": 404,
"detail": "No purchasable report matches that slug, report id or NCT id.",
"code": "report_not_found",
"hint": "Pick a report from catalog, or check whether a trial can be ordered at /trials/{nct_id}.json.",
"error": "No purchasable report matches that slug, report id or NCT id.",
"catalog": "https://www.erudio.com/catalog.json"
}| Code | Meaning |
|---|---|
| agent_payments_closed | Agent payments are not open. Pay with the order's checkout_url by card. |
| card_checkout_open | The order's card checkout could not be closed; it may have just been paid. Check status_url before paying. |
| checkout_closed | Online checkout is not open. Ask for an invoice or purchase order at /contact. |
| confirmation_throttled | Confirmation links already went to this address today. Check the inbox. |
| credit_claimed | The purchase credit this order relied on went to another order. Create a new order. |
| email_failed | The message could not be sent. Try again. |
| endpoint_not_found | No API endpoint at this path. See /openapi.json for the order API. |
| idempotency_conflict | This idempotency key (Idempotency-Key header or idempotency_key) already belongs to a different order. Use a new key for a new purchase. |
| free_edition | This report's current edition is free: order product edition and it is emailed to the buyer with a key that reads it. Update plans can still be ordered. |
| free_report_already_sent | The free report was already emailed to this address three times today; the key in those emails reads it. |
| free_report_unavailable | The free report could not be emailed just now. Retry in a minute. |
| not_for_sale | This report's current edition is below Erudio's minimum for clinicians and sources, so no order can be placed for it. The buyer can ask for it through contact; a later edition that reaches the minimum is for sale at its normal price. |
| internal_error | Something failed on our side. Retry, and check status_url first for anything involving payment. |
| invalid_email | Send the buyer's email as JSON: {"email": "..."}. |
| invalid_fields | Some form fields are missing or invalid; fieldErrors names them. |
| invalid_json | The body is not valid JSON. |
| invalid_order | The order body is missing report, product or buyer_email. The response carries an example. |
| invalid_page_path | The page path for Markdown is not a site page. |
| invalid_product_or_email | product must be edition, updates-3, updates-6 or updates-12, and buyer_email a valid address. |
| invalid_request | A field is invalid; detail names it. |
| invalid_signature | The webhook signature did not verify. |
| invalid_trial_id | Give a trial slug or NCT ID, e.g. /trials/NCT01234567.json. |
| licence_key_inactive | The license key sent is not active. Order without it, or recover the account key. |
| method_not_allowed | The endpoint does not accept this method; Allow lists those it does. |
| not_configured | This endpoint is not configured in this environment. |
| order_not_found | No order matches this token. Use the status_url or pay_url create_order returned. |
| payment_in_progress | Another payment for this order is in progress. Check status_url before paying again. |
| rate_limited | Too many requests. Wait a minute and retry. |
| report_exists | This trial already has a report: order product edition or an update plan, not first_edition. |
| report_not_found | No published report matches. Pick one from /catalog.json. |
| requests_unavailable | Report requests are not available right now. |
| organization_required | A paid order names the buyer's organization; ask your person for it. |
| test_edition_only | Test reports sell only as a single edition. |
| trial_not_available | This trial cannot be requested; detail says why. |
| trial_not_registered | The NCT ID is not in ClinicalTrials.gov. |
| unauthorized | Missing or wrong credentials. |
Over a rate limit, wait and retry; the MCP server answers 429 with rate_limit_exceeded. A 429 carries Retry-After in seconds, plus RateLimit-Policy and RateLimit (draft-ietf-httpapi-ratelimit-headers) naming the limit that was hit. Wait that long and retry. Anything involving payment: check status_url before paying again.
How the API changes
- info.version follows semantic versioning. Changes to published paths are additive: new endpoints, optional fields, error codes and enum values. Ignore fields you do not know.
- A breaking change ships under new /v2/ paths while the current ones keep working.
- An endpoint due for removal answers with a Deprecation header (RFC 9745), a Sunset header (RFC 8594) and Link rel="deprecation" to the notice, at least 90 days before it stops. The notice is also on /changelog.
Talk to us
Questions, an invoice or an Enterprise MCP pilot: contact us or write to hello@erudio.com.