# Aemps Cima [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/pipeworx-io/mcp-aemps-cima  
**GitHub Stars:** 0  
**npm Downloads (last month):** 730  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/aemps-cima

## Description
AEMPS CIMA — the Spanish Agency for Medicines and Health Products' public

## Tools
Capabilities this server exposes over MCP:

- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "aemps-cima": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-aemps-cima"]
  }
}
```

## Documentation

## What Aemps Cima does

Aemps Cima exposes Spain’s AEMPS CIMA medicine register through MCP. It covers medicines authorised for sale in Spain, including brand and generic products, active ingredients, marketing-authorisation holders, ATC classifications, prescription status, and links to regulatory documents.

The integration also provides two related data feeds. One reports current and recent medicine supply problems, while the other identifies records changed on or after a specified date. These make it suitable for Spanish-market medicine lookup, label review, shortage checks, and monitoring regulatory updates.

Search and response values retain AEMPS’s Spanish wording. For example, ingredient searches should use terms such as `paracetamol` or `ibuprofeno`, rather than relying on names used in another market.

## How it works

The hosted MCP connection is available at `https://gateway.pipeworx.io/aemps-cima/mcp`. A local npm package, `@pipeworx/mcp-aemps-cima`, acts as a stdio bridge and forwards calls to that gateway, so the local option still requires network access and has no offline mode.

The integration uses AEMPS endpoints for medicine search, medicine details, segmented document content, supply problems, and the changes feed. Date values returned by the tools are formatted as `YYYY-MM-DD`. The changes feed accepts an ISO date from the caller and converts it for the upstream service.

A pack-specific hosted connection includes the CIMA tools and shared Pipeworx gateway tools. The local bridge lists the CIMA tools by default; setting `PIPEWORX_META_TOOLS=1` also exposes the shared gateway tools. The full Pipeworx gateway is another connection option.

## Setup and configuration

Add the hosted endpoint to an MCP client:

```json
{
  "mcpServers": {
    "aemps-cima": {
      "url": "https://gateway.pipeworx.io/aemps-cima/mcp"
    }
  }
}
```

For local stdio use, configure the npm bridge:

```json
{
  "mcpServers": {
    "aemps-cima": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-aemps-cima"]
    }
  }
}
```

Anonymous use requires no registration and is capped at 50 calls per day. A Pipeworx account and `PIPEWORX_API_KEY` raise the limit to 200 calls per day. The key is sent as a bearer token. Set `PIPEWORX_META_TOOLS=1` if the local bridge should list the gateway-wide meta-tools as well.

The tools can also be called over HTTP through the Pipeworx tool API, such as `POST /v1/tools/cima_search_medicines`.

## Tools and capabilities

- `cima_search_medicines` searches by product name, active ingredient, ATC code, or marketing-authorisation holder. Results include the Spanish registration number, substance, prescription status, product flags, and document links.
- `cima_medicine_detail` retrieves a complete record by `nregistro`, including strengths, excipients, pharmaceutical form, routes, dates, ATC codes, and document links.
- `cima_medicine_document_sections` returns structured ficha técnica or prospecto text. It can return one section, such as `4.1` for indications, or all sections.
- `cima_supply_problems` reports affected products, national codes, shortage types, dates, active status, and AEMPS observations. Product name is the supported filter.
- `cima_changes_since` lists changed records after a supplied date, including the registration number, name, holder, date, and change categories.

## Limitations and notes

The data scope is Spain only. The document tool bounds output: individual sections are capped at about 4,000 characters and the overall response at roughly 40,000 characters, with truncation indicated in the response. Use a specific section when retrieving a focused passage.

The service is an unofficial integration and depends on network access to the Pipeworx gateway and AEMPS services. The local bridge is not an offline data package.

_Full upstream README: https://allmcps.com/mcp/aemps-cima/readme_

