# Farmaciasdirect API and MCP server for AI agents (/sites/farmaciasdirect)

An API for Farmaciasdirect: let Claude, ChatGPT or your own code read Farmaciasdirect through 3 functions, over MCP, HTTP, Node or Python. No Farmaciasdirect API key needed.

- Site: https://farmaciasdirect.es
- Functions: 3
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Farmaciasdirect only, one tool per function: `https://api.bowmark.ai/mcp/site/farmaciasdirect` (name it `bowmark-farmaciasdirect`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-farmaciasdirect https://api.bowmark.ai/mcp/site/farmaciasdirect`
- Codex: `codex mcp add bowmark-farmaciasdirect --url https://api.bowmark.ai/mcp/site/farmaciasdirect`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/farmaciasdirect" }` under the name `bowmark-farmaciasdirect` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getProduct`: Reads one farmaciasdirect.es product by URL or handle: EUR price, pre-discount price and % off, stock, brand, category, description, images, and each…
- `listPromotions`: Lists the products on farmaciasdirect.es's promotions page (promociones, ofertas): offer price, crossed-out price and % off for each.
- `search`: Searches the farmaciasdirect.es online pharmacy catalogue by brand or product and returns products with EUR price, discount and stock.

## Call one

In a Bowmark script, each function is `bowmark.providers.farmaciasdirect.<name>`. Ask `get_library` for farmaciasdirect.es to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on farmaciasdirect.es, and with which arguments?
get_library({ query: "farmaciasdirect.es" })

// 2. Call it in a script
const result = await bowmark.providers.farmaciasdirect.getProduct({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
