# Spain BORME Registry API & MCP Server (Official BOE Data) (`data-goose/spain-borme-registry-mcp`) Actor

Fast 256MB pure-HTTP Hybrid Actor (Batch PPE, Standby REST API, and MCP Server) for Spain's BORME company registry (Boletín Oficial del Registro Mercantil). Extracts Section A acts and Section C notices from official BOE Open Data APIs with zero browsers.

- **URL**: https://apify.com/data-goose/spain-borme-registry-mcp.md
- **Developed by:** [Data Goose](https://apify.com/data-goose) (community)
- **Categories:** Business, Developer tools, MCP servers
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 borme registry acts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Spain BORME Registry API & MCP Server (`spain-borme-registry-mcp`)

> **Spain BORME PDF parser JSON**, **Spanish company registry API**, **BORME daily acts scraper**, and **Spanish corporate filings MCP server** powered by official **BOE Open Data** (`boe.es`) on Apify (`256 MB` pure HTTP — zero headless browsers, proxies, or OCR).

Extract structured Spanish corporate filings from the **Boletín Oficial del Registro Mercantil (BORME)** in milliseconds via **Multi-Tenant Standby REST API**, **Streamable HTTP MCP**, or **Pay-Per-Event Batch runs**.

***

### Why Use This Spanish Company Registry API?

- **Official BOE Open Data Ingestion:** Fetches `https://www.boe.es/datosabiertos/api/borme/sumario/{YYYYMMDD}`, native digital Section A province PDFs via `PyMuPDF`, and Section C legal notices via `lxml`.
- **Structured BORME PDF Parser JSON:** Normalizes numbered acts into company name, `act_types` (`Constitución`, `Nombramientos`, `Ceses/Dimisiones`, `Ampliación de capital`, `Disolución`, etc.), euro share capital (`capital_eur`), registered office `address`, `corporate_purpose`, `appointed_officers`, `resigned_officers`, `sole_shareholder`, and `registry_ref`.
- **Multi-Tenant Low-Latency Caching:** Shared 6-hour in-memory TTL cache returns warm Standby REST and MCP responses in milliseconds while attributing Pay-Per-Event billing safely per caller (`X-Actor-Request-ID`).
- **Weekend & Holiday Safe:** Automatically handles `HTTP 404` responses from BOE on weekends and Spanish national holidays cleanly as `published: false`.

***

### Quick Integration Snippets

#### 1. Claude Desktop / Cursor MCP Server

Add to `claude_desktop_config.json` or `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "spain-borme-registry": {
      "type": "streamable-http",
      "url": "https://data-goose--spain-borme-registry-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

**Exposed MCP Tools:**

1. `get_borme_daily_summary(date: str)`
2. `search_borme_acts(start_date: str, end_date: str, province: str | None = None, act_type: str | None = None, company_query: str | None = None, limit: int = 25)`
3. `lookup_spanish_company_filings(company_name: str, lookback_days: int = 14)`

***

#### 2. Python (`apify-client` Batch + Direct REST `httpx`)

**Batch Run (`apify-client`):**

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("data-goose/spain-borme-registry-mcp").call(
    run_input={
        "provinces": ["MADRID", "BARCELONA"],
        "actTypes": ["Constitución", "Ampliación de capital"],
        "sections": ["A"],
        "maxItems": 100,
    }
)
acts = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Extracted {len(acts)} BORME acts")
```

**Direct Standby REST Lookup (`httpx`):**

```python
import httpx

resp = httpx.get(
    "https://data-goose--spain-borme-registry-mcp.apify.actor/v1/acts",
    headers={"Authorization": "Bearer <APIFY_TOKEN>"},
    params={
        "date": "2026-11-26",
        "province": "MADRID",
        "act_type": "Constitución",
        "limit": 10,
    },
    timeout=30.0,
)
resp.raise_for_status()
print(resp.json()["items"])
```

***

#### 3. n8n / Make HTTP Request Node Configuration

Configure an **HTTP Request** node (works identically in n8n or Make's HTTP module):

- **Method:** `GET`
- **URL:** `https://data-goose--spain-borme-registry-mcp.apify.actor/v1/company/search`
- **Headers:**
  - `Authorization`: `Bearer {{ $env.APIFY_TOKEN }}` (or `Bearer <APIFY_TOKEN>` in Make)
- **Query Parameters:**
  - `company_name`: `URBASER`
  - `lookback_days`: `14`
  - `limit`: `20`

***

### REST Endpoints & Batch Input Reference

#### Standby REST Endpoints (`/v1/*`)

- `GET /v1/summary/{date}` — Returns published flag, province index, and BOE document URLs for `YYYY-MM-DD`.
- `GET /v1/acts` — Query parameters: `date`, `start_date`, `end_date`, `province`, `act_type`, `company_query`, `section` (`A` or `C`), `limit` (`1..500`).
- `GET /v1/company/search` — Query parameters: `company_name` (required, min 2 chars), `lookback_days` (`1..30`), `province`, `limit` (`1..500`).

#### Batch Input Fields

| Field | Type | Default | Description |
|---|---|---|---|
| `startDate` | `string` | Latest business day | First bulletin date (`YYYY-MM-DD`). |
| `endDate` | `string` | `startDate` / latest | Last bulletin date (`YYYY-MM-DD`). |
| `provinces` | `string[]` | `[]` | Province filter, e.g. `["MADRID", "BARCELONA"]`. Empty scans all provinces. |
| `actTypes` | `string[]` | `[]` | Canonical act tags, e.g. `["Constitución", "Nombramientos"]`. |
| `companyQuery` | `string` | `null` | Case- and accent-insensitive company name substring. |
| `sections` | `string[]` | `["A", "C"]` | BORME sections to ingest (`"A"` PDF, `"C"` XML). |
| `maxItems` | `integer` | `500` | Maximum normalized acts to emit (`1..50000`). |

***

### Normalized Output Schema

```json
{
  "act_id": "BORME-A-2026-227-28-534683",
  "borme_id": "BORME-A-2026-227-28",
  "date": "2026-11-26",
  "section": "A",
  "province": "MADRID",
  "company_name": "NACAR SERVICIOS JURIDICOS SLP",
  "act_types": ["Constitución", "Nombramientos"],
  "raw_text": "534683 - NACAR SERVICIOS JURIDICOS SLP. Constitución...",
  "parsed_fields": {
    "capital_eur": 3000.0,
    "address": "C/ DONOSO CORTES 75 - 1º D (MADRID)",
    "corporate_purpose": "1. La Sociedad tendrá por objeto exclusivo...",
    "appointed_officers": [{"role": "Adm. Unico", "name": "CASADO MATIAS SOTERO MANUEL"}],
    "resigned_officers": [],
    "sole_shareholder": null,
    "registry_ref": "S 8 , H M 892816, I/A 1 (19.11.26)"
  },
  "pdf_url": "https://www.boe.es/borme/dias/2026/11/26/pdfs/BORME-A-2026-227-28.pdf",
  "xml_url": "https://www.boe.es/diario_borme/xml.php?id=BORME-A-2026-227-28"
}
```

### Pricing (Pay-Per-Event)

- `borme-act`: **$0.004** per returned Section A or Section C BORME registry act.
- `borme-query`: **$0.002** per daily summary lookup or zero-match query.
- `apify-actor-start`: **$0.005** one-time batch run startup event.

***

### More APIs & MCP Servers by data-goose

| Actor | Use Case | Standby / MCP URL | Primary PPE Rate |
|---|---|---|---|
| [Spain BORME Registry](https://apify.com/data-goose/spain-borme-registry-mcp) | Daily Spanish corporate filings (BOE PDF -> JSON) | `https://data-goose--spain-borme-registry-mcp.apify.actor/mcp` | `$0.004 / act` |
| [UK Companies House](https://apify.com/data-goose/uk-companies-house-registry-mcp) | UK companies, officers & filings (rate-limited + BYOK) | `https://data-goose--uk-companies-house-registry-mcp.apify.actor/mcp` | `$0.0035 / record` |
| [France SIRENE + BODACC](https://apify.com/data-goose/france-sirene-bodacc-mcp) | French directors, financials & insolvency alerts | `https://data-goose--france-sirene-bodacc-mcp.apify.actor/mcp` | `$0.0045 / record` |
| [UK Public Tenders OCDS](https://apify.com/data-goose/uk-public-tenders-ocds-mcp) | Unified Contracts Finder + Find a Tender (Procurement Act 2023) | `https://data-goose--uk-public-tenders-ocds-mcp.apify.actor/mcp` | `$0.005 / tender` |
| [Wayback & Archive Intel](https://apify.com/data-goose/wayback-archive-intel-mcp) | CDX timelines, Common Crawl WARC diffs & Archive.org | `https://data-goose--wayback-archive-intel-mcp.apify.actor/mcp` | `$0.0025 / record` |

# Actor input Schema

## `startDate` (type: `string`):

First date to fetch (YYYY-MM-DD). Defaults to the latest published BORME business day when omitted.

## `endDate` (type: `string`):

Last date to fetch (YYYY-MM-DD). Defaults to startDate or the latest published BORME business day.

## `provinces` (type: `array`):

Optional list of Spanish provinces to filter (e.g. \["MADRID", "BARCELONA"]). Leave empty for all provinces.

## `actTypes` (type: `array`):

Optional canonical act tags to keep (e.g. \["Constitución", "Nombramientos", "Ampliación de capital", "Disolución"]).

## `companyQuery` (type: `string`):

Optional case- and accent-insensitive substring filter matched against company names.

## `sections` (type: `array`):

BORME sections to ingest: Section A (Actos inscritos PDF) and/or Section C (Anuncios legales XML).

## `maxItems` (type: `integer`):

Maximum number of BORME acts to emit to the dataset.

## Actor input object example

```json
{
  "provinces": [],
  "actTypes": [],
  "sections": [
    "A",
    "C"
  ],
  "maxItems": 500
}
```

# Actor output Schema

## `acts` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data-goose/spain-borme-registry-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("data-goose/spain-borme-registry-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call data-goose/spain-borme-registry-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-goose/spain-borme-registry-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gamsvl0gFLxFPs5jx/builds/LfD1kujgyx0KiMUFs/openapi.json
