MCP server exposing 5 tools for aemps-cima.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/aemps-cima/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
cima_search_medicines — Search AEMPS CIMA — the register of every medicine authorised for sale in SPAIN — by brand/product name, active ingredient (INN/DCI), ATC code, or marketing-authorisation holder (laboratorio). Returns each medicine's nregistro (Spanish national registration number), the active substance, dosage, prescription status, marketed/generic/orphan/biosimilar flags, and links to its ficha técnica (SmPC) and prospecto (patient leaflet). Field values and matching are SPANISH: search "paracetamol" or "ibuprofeno", not a US brand name. Answers "is X authorised in Spain", "which Spanish medicines contain ibuprofeno", "Spanish generics of atorvastatin". Example: cima_search_medicines({ ingredient: "paracetamol" }); cima_search_medicines({ name: "Nolotil" }); cima_search_medicines({ atc: "N02BE01" }). Keyless.cima_medicine_detail — Full AEMPS CIMA record for one Spanish-authorised medicine, by nregistro (the Spanish national registration number, from cima_search_medicines). Returns active ingredients with exact strength, excipients, ATC codes, pharmaceutical form, routes of administration, prescription status, authorisation and last-revision dates, and PDF/HTML links to the ficha técnica and prospecto. For the actual document TEXT (not just the link) use cima_medicine_document_sections. Example: cima_medicine_detail({ nregistro: "77758" }). Keyless.cima_medicine_document_sections — The STRUCTURED text of a Spanish medicine's ficha técnica (Summary of Product Characteristics) or prospecto (patient information leaflet), section by section, from AEMPS's own segmented-document endpoint — not a PDF link. Ficha técnica sections cover indications (4.1), dosage (4.2), contraindications (4.3), warnings (4.4), interactions (4.5), pregnancy/lactation (4.6), adverse effects (4.8), overdose (4.9). Pass seccion (e.g. "4.1") to fetch one section only; omit it to get every section (each capped at ~4000 chars to keep the payload bounded — the response says which sections were truncated). Example: cima_medicine_document_sections({ nregistro: "77758", document: "ficha_tecnica", seccion: "4.1" }); cima_medicine_document_sections({ nregistro: "77758", document: "prospecto" }). Keyless.cima_supply_problems — Current and recent medicine-supply shortages in Spain (problemas de suministro) from AEMPS — the Spanish counterpart of the FDA/EMA shortage databases. Returns the affected product, national code (CN), AEMPS shortage-type code, start date, expected end date (open-ended if none), whether it is still active, and AEMPS's own observation text (often naming an alternative). Only the product name filters this endpoint upstream (not the lab). Answers "is there a shortage of X in Spain", "current Spanish drug supply problems". Example: cima_supply_problems({}); cima_supply_problems({ name: "eltrombopag" }). Keyless.cima_changes_since — Which Spanish medicine records AEMPS has changed on or after a given date — new authorisations, label revisions, material-informativo updates, etc. — from CIMA's registroCambios feed. Returns nregistro, name, holder, the change date, and AEMPS's change-category tags. Useful for "what changed in the Spanish medicines register this month" or watching one drug for label updates. Example: cima_changes_since({ since: "2026-08-27" }). Keyless.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/aemps-cima/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io