# Agent Research API (MPP): papers, FDA drugs and recalls, clinical trials, LEI > Pay-per-call research data for AI agents: scholarly paper search and DOI metadata (Crossref, 150M+ works), FDA drug labels, FAERS adverse-event signals and food/drug/device recalls (openFDA), clinical trial search and study details (ClinicalTrials.gov), and global legal-entity lookup with parents (GLEIF LEI). Clean, normalized JSON. No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD). No match, invalid input or upstream failure returns 402 and is not charged. ## Docs (free) - Human docs with copy-paste examples: https://mpp-research.fmf-x402.workers.dev/docs - OpenAPI 3.1: https://mpp-research.fmf-x402.workers.dev/openapi.json - This file: https://mpp-research.fmf-x402.workers.dev/llms.txt - MCP server (Streamable HTTP): https://mpp-research.fmf-x402.workers.dev/mcp - Health: https://mpp-research.fmf-x402.workers.dev/health - Attribution counters (no PII): https://mpp-research.fmf-x402.workers.dev/stats/refs ## How to pay No account and no API key. Unpaid calls receive HTTP 402 with an MPP challenge on Tempo (USDC.e or pathUSD). Official clients pay the challenge and retry automatically. POST JSON (or GET with query params) to any paid route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged. Optional ?ref=channel or header X-FMF-Ref attributes the call for our coverage map (ignored by the tool). ## Quick start mppx CLI (creates/uses a Tempo account in your keychain): ```bash npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label -X POST -H 'content-type: application/json' -d '{"name":"semaglutide"}' ``` TypeScript (mppx). After Mppx.create(), global fetch handles 402: ```ts import { Mppx, tempo } from 'mppx/client' import { privateKeyToAccount } from 'viem/accounts' Mppx.create({ methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })], }) // Global fetch now pays the 402 automatically. const res = await fetch('https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label', { method: 'POST', headers: { 'content-type': 'application/json', }, body: JSON.stringify({"name":"semaglutide"}), }) console.log(await res.json()) ``` Python (pympp): ```python # pip install pympp # Docs: https://mpp.dev/sdk/python import asyncio from mpp.client import Mpp from mpp.methods.tempo import TempoAccount from mpp.methods.tempo import client as tempo account = TempoAccount.from_key("0x...") async def main(): async with Mpp(methods=[tempo.charge(account=account)]) as mpp: response = await mpp.fetch("https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label", method="POST", json={"name":"semaglutide"}) print(await response.json()) asyncio.run(main()) ``` An unpaid curl shows the 402 (you are not charged): ```bash curl -i -X POST https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label -H 'content-type: application/json' -d '{"name":"semaglutide"}' ``` ## MCP Add this to Cursor / Claude Desktop / VS Code MCP settings (Streamable HTTP): ```json { "mcpServers": { "fmf-mpp-research": { "url": "https://mpp-research.fmf-x402.workers.dev/mcp" } } } ``` `tools/list` is free. `tools/call` requires an MPP Payment credential in the Authorization header (or just call the HTTP route with mppx). The wrapper does not settle payment on its own and stores nothing. ## Routes - POST https://mpp-research.fmf-x402.workers.dev/mpp/papers/search ($0.002) Scholarly paper search (150M+ works): Search Crossref metadata for journal articles, preprints, books, conference papers and datasets: title, authors, year, venue, DOI, citation count, licence and full-text links. Filters: year range, type; sort by relevance, date or citations. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/papers/search -X POST -H 'content-type: application/json' -d '{"query":"large language model agents tool use","rows":5,"from_year":2024,"sort":"relevance"}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/papers/doi ($0.001) Paper metadata by DOI: Full Crossref record for a DOI: title, all authors with ORCID and affiliations, dates, venue, citation and reference counts, funders, licences, full-text links, relations (preprint/version/retraction updates). Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/papers/doi -X POST -H 'content-type: application/json' -d '{"doi":"10.1038/s41586-021-03819-2"}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label ($0.003) FDA drug label (indications, warnings, dosage): Official FDA structured product label for a drug by brand or generic name: indications, boxed warning, contraindications, warnings, dosage, adverse reactions, interactions, active ingredients, manufacturer, route, NDCs. Not medical advice. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/drugs/label -X POST -H 'content-type: application/json' -d '{"name":"semaglutide"}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/drugs/adverse-events ($0.003) FDA adverse event reports for a drug (FAERS): Counts from FDA Adverse Event Reporting System for a drug: total reports, serious share, top reported reactions, outcomes, reports by year. Signals only; reports do not prove causation. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/drugs/adverse-events -X POST -H 'content-type: application/json' -d '{"name":"ibuprofen","top":10}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/recalls/search ($0.003) FDA recalls search (food, drugs, devices): Search FDA enforcement reports (recalls) for food, drugs or medical devices by text, firm, status and class, newest first: product, reason, class, firm, distribution, dates, recall number. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/recalls/search -X POST -H 'content-type: application/json' -d '{"category":"food","query":"listeria","limit":5}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/trials/search ($0.003) Clinical trials search (ClinicalTrials.gov): Search 500k+ registered clinical studies by condition, intervention, sponsor or free text, filter by status and phase: NCT id, title, status, phases, dates, sponsor, conditions, interventions, enrollment, countries, summary. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/trials/search -X POST -H 'content-type: application/json' -d '{"condition":"type 2 diabetes","intervention":"semaglutide","status":"RECRUITING","limit":5}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/trials/study ($0.002) Clinical trial details by NCT id: One study in depth: design, arms, eligibility criteria, primary and secondary outcomes, sites, contacts, sponsor and collaborators, status dates, whether results are posted. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/trials/study -X POST -H 'content-type: application/json' -d '{"nct_id":"NCT03548935"}'` - POST https://mpp-research.fmf-x402.workers.dev/mpp/company/lei ($0.002) Legal entity lookup (GLEIF LEI): Find legal entities by name or LEI in the global LEI index (2.9M+ entities): legal name, jurisdiction, legal and HQ addresses, legal form, registry id, status, renewal, BIC, and direct and ultimate parents when looking up one LEI. Example: `npx mppx https://mpp-research.fmf-x402.workers.dev/mpp/company/lei -X POST -H 'content-type: application/json' -d '{"name":"Apple Inc","limit":3}'` ## Sources and licences Sources: Crossref REST API (metadata CC0/facts; abstracts excluded); openFDA (public domain; not for medical decisions); ClinicalTrials.gov API (U.S. NLM); GLEIF LEI data (CC0). ## Sister services - [Doc Tools](https://mpp-docs.fmf-x402.workers.dev/docs?ref=cross-research): PDF, Office, audio, OCR and text tools - [Web & Data](https://mpp-agent-data.fmf-x402.workers.dev/docs?ref=cross-research): Scrape, extract, SEC filings, weather, FX - [Utility Tools](https://mpp-tools.fmf-x402.workers.dev/docs?ref=cross-research): Tempo chain, attestation, QR, DNS, email, IP, geo, tech detect, math - [AI Tools](https://mpp-ai.fmf-x402.workers.dev/docs?ref=cross-research): Chat, translation, embeddings, rerank - [Browser](https://mpp-browser.fmf-x402.workers.dev/docs?ref=cross-research): JS-rendered screenshots, page to Markdown, page to PDF - [Control-plane](https://controlplane-x402.fmf-x402.workers.dev/docs?ref=cross-research): Contract control-plane snapshots and Tempo token data (MPP + x402) ## Attribution Append `?ref=your-channel` or send header `X-FMF-Ref: your-channel` on any request (including unpaid 402s and /docs). We count hits and paid successes per channel so we can see what actually drives calls. The parameter is ignored by the tool.