BORME MCP Server
One line: This server gives read-only, tool-based access to Spanish commercial-registry (BORME) data since 2009 — company lookup, event timelines, digest figures, brands and risk signals.
search_companies— find companies by current/former name, with ranked cards (province/status filters, paging).company_history— one company's full BORME timeline by slug or name, paged, asc/desc.search_events— search notices across many companies by date range, province/autonomous community, act type and name fragment.company_by_nif— map a Spanish NIF/CIF to a company (Basic plan and up).brand_owner— find the company behind a trademark or trading name (Basic+).company_brands— list a company's trademarks and trading names (Basic+).recent_signals— sample of the latest risk signals, e.g. insolvency filings, mass exits, AEAT debtors (Risk plan).daily_digest— totals, counts by act type, top provinces and insolvency notices for one publication day.list_act_types— the normalized act-type vocabulary with Spanish/English labels (no key, no quota).registry_stats— data size, coverage window and parse freshness (no key, no quota).
Practical notes: all tools are read-only and idempotent; each call is one request against your daily quota; without an API key only the last 7 days are visible, while Basic/Pro/Risk plans unlock 365 days or the full history, NIF, brand and signal tools. Prompts and resources (act types, provinces, coverage, per-company events) are also offered.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BORME MCP Server Show me new companies incorporated in Barcelona last month."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BORME API MCP connector
Español: README.es.md
Connect Microsoft Copilot, Claude, ChatGPT, Cursor, VS Code or any MCP client to the hosted BORME API MCP server: Spanish commercial-registry data published in the BORME (Boletín Oficial del Registro Mercantil), with more than 9.6 million events since 2009, company histories, company search by name, NIF lookup, trademarks and trading names, and risk signals.
The server is hosted at mcp.bormeapi.com; there is nothing to install or
run, and it is the recommended way to connect. This repository holds what you
need around it: connection settings for each client, an agent skill, the
event-type vocabulary, and a local stdio server that wraps the BORME API REST
endpoints, for clients that only start servers over stdio.
The full guide, kept up to date, is at bormeapi.com/mcp. If this README and that page ever disagree, the page is right.
Two ways to connect
API key: https://mcp.bormeapi.com/mcp
Transport: Streamable HTTP. Each request gets a plain JSON response; no session is kept between calls.
Authentication: your API key in the
X-API-Keyheader. Without a key, the free plan's limits apply.For clients that can send a header: Microsoft Copilot Studio, Claude Code, Cursor, VS Code, Claude Desktop (through mcp-remote) and any other Streamable HTTP client.
OAuth: https://mcp.bormeapi.com/mcp/oauth
For assistants with custom connectors that sign in with OAuth, such as Claude.ai, ChatGPT or Copilot. There is no API key to paste anywhere: you sign in with your BORME API account, and the app uses the plan of the account that authorized it.
This endpoint requires a BORME API account and ignores the
X-API-Keyheader. Its calls share your API key's daily quota with REST API and/mcpcalls made with that key.If your account has no active API key, the tools return an error directing you to your account page; they work again once your account has an active key, without reconnecting the app.
If the app does not use the connection for 30 days, connect it again. You can disconnect the app at any time under Connected apps on your account page.
For client developers: an unauthenticated call gets
401withWWW-Authenticate: Bearer resource_metadata="https://mcp.bormeapi.com/.well-known/oauth-protected-resource/mcp/oauth". The authorization server ishttps://bormeapi.com(metadata at/.well-known/oauth-authorization-server), with dynamic client registration, PKCE (S256) and the scopemcp.
Get an API key on your account page.
Related MCP server: Asiento Uno
Set up your client
Claude.ai (OAuth)
Go to Customize > Connectors > Add custom connector.
Enter
https://mcp.bormeapi.com/mcp/oauthas the server URL. Claude detects how to sign in and shows Sign in now and Register automatically; keep these options.Click Add. Our sign-in page opens.
Sign in with the link we email you, then select Allow.
Back in Claude, if the connector page says the connector has no tools, reload the page.
On Team and Enterprise plans an owner adds the connector under Organization settings.
To use your API key instead, enter https://mcp.bormeapi.com/mcp, choose No
sign-in and add the x-api-key header with your key under Request headers.
Anthropic offers request headers as a beta to a limited set of organizations;
if you do not see that section, use the Claude Desktop setup below.
ChatGPT (OAuth)
ChatGPT's custom connectors cannot send an API-key header. Add a custom
connector with https://mcp.bormeapi.com/mcp/oauth as the server URL and
sign in with your BORME API account. The screens and their names may differ
from Claude.ai's. Without OAuth, ChatGPT can use https://mcp.bormeapi.com/mcp
only without a key, on the free plan.
Microsoft Copilot Studio and Microsoft 365 Copilot (API key)
These steps follow Microsoft's documentation. They may vary with your tenant and your data loss prevention (DLP) policies.
In Copilot Studio, open the agent you want to use and go to Tools > Add a tool > New tool > Model Context Protocol.
Enter a Server name (BORME API), a Server description and the Server URL:
https://mcp.bormeapi.com/mcpFor authentication, choose API key, set Type to Header and enter
X-API-Keyas the header name. Select Create, then Create a new connection, enter your key and select Add to agent.Test the agent in Copilot Studio first. Then publish it and set up the Teams and Microsoft 365 Copilot channel, subject to your organization's permissions and policies. If your organization has Power Platform data policies (DLP), an administrator may need to allow this connector.
Claude Code (API key)
claude mcp add --transport http --scope user \
--header "X-API-Key: YOUR_KEY" \
borme https://mcp.bormeapi.com/mcp--scope user makes the server available in all your projects; leave it out
to add it to the current project only.
Cursor (API key)
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one
project) and set BORME_API_KEY in your environment:
{
"mcpServers": {
"borme": {
"url": "https://mcp.bormeapi.com/mcp",
"headers": { "X-API-Key": "${env:BORME_API_KEY}" }
}
}
}VS Code (API key)
Add this to .vscode/mcp.json in your workspace. VS Code asks for the key
the first time the server starts:
{
"inputs": [
{
"type": "promptString",
"id": "borme-api-key",
"description": "BORME API key",
"password": true
}
],
"servers": {
"borme": {
"type": "http",
"url": "https://mcp.bormeapi.com/mcp",
"headers": { "X-API-Key": "${input:borme-api-key}" }
}
}
}Claude Desktop (API key)
Add the server to claude_desktop_config.json through
mcp-remote, a third-party bridge that
needs Node.js:
{
"mcpServers": {
"borme": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.bormeapi.com/mcp",
"--header", "X-API-Key:${BORME_API_KEY}"],
"env": { "BORME_API_KEY": "YOUR_KEY" }
}
}
}Any other Streamable HTTP client (API key)
Send each JSON-RPC message as a POST to https://mcp.bormeapi.com/mcp with
Content-Type: application/json, an Accept header that includes
application/json, and your key in X-API-Key. For example, to list the
tools:
curl -s https://mcp.bormeapi.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-API-Key: YOUR_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Local stdio server
server.py is a local stdio server that wraps the BORME API REST
endpoints; the hosted server at mcp.bormeapi.com is the recommended way. It
offers the same tools, with the same names, titles, descriptions, parameters
and annotations (all tools are read-only), as the hosted server: they are
copied into tools.json. Each tool
call makes one or more requests to https://api.bormeapi.com/v1/.... It
holds no data; MCP directories build an image from its
Dockerfile to list the tools.
Listing the tools needs no key and no network.
Calling a tool needs an API key for every tool except
list_act_typesandregistry_stats: the REST API, unlike the hosted MCP server, has no keyless free plan. Your free key is in your account. Set it asBORME_API_KEY.daily_digestandregistry_statsreturn fewer fields than on the hosted server, because the REST API has no single endpoint for them:daily_digestreturns the day's event count, its parse completeness and up to 200 insolvency notices, andregistry_statsreturns the latest publication date and, with a key, the parse completeness of the last 30 publication days.search_eventswith several act types makes one request per act type, becauseGET /v1/eventstakes one act type per request, and merges the answers: that merged page has nonext_cursor. Each of those requests counts against your plan's daily quota, so a call with three act types uses three requests. To page withcursor, ask for one act type at a time.It does not sign in with OAuth.
With Docker:
docker build -t borme-mcp .
docker run -i --rm -e BORME_API_KEY=YOUR_KEY borme-mcpWith Python 3.12:
pip install -r requirements.txt
BORME_API_KEY=YOUR_KEY python server.pyWhen the hosted server changes its tools, run
python scripts/update_tools.py to regenerate tools.json and commit it.
CI fails while tools.json and the hosted server differ.
Tools
search_companies- find companies by current or former name and get ranked company cards.company_history- the registry timeline of one company: the published acts available under your plan, newest first.search_events- search BORME notices by date, province, act type and company name.daily_digest- one publication day in figures, with its insolvency notices.company_by_nif- find a company by its NIF/CIF tax ID (Basic plan and above).brand_owner- find the company a trademark or trading name is linked to (Basic plan and above).company_brands- trademarks and trading names linked to one company (Basic plan and above).recent_signals- the latest risk signals, such as insolvency filings and mass exits (Risk plan).list_act_types- the act types, with their English labels and the original Spanish headings.registry_stats- size and coverage of the registry data.company_snapshot- a company profile with officers, sole shareholder and capital (Basic plan and above).company_signals- one company's derived signals, with date and type filters (Pro plan and above).act_stats- act counts by type, period and province, including mergers, spin-offs and capital increases (Pro plan and above).vat_check- check an EU VAT number's validity for intra-EU transactions according to VIES, on the check date it reports (Basic plan and above).company_grants- the public aid awards that BDNS records for one company (Basic plan and above).company_contracts- one company's public contract awards from Spanish and EU procurement notices (Basic plan and above).company_group- one company's identified sole-shareholder network (Pro plan and above).group_history- the BORME events of every company in that network (Pro plan and above).
Each tool's description and parameter schema, as returned by tools/list,
explain its parameters.
Prompts and resources
Besides tools, the hosted server and the local stdio server offer prompts, ready-made instructions that your client can offer you (in Claude, from the + menu; in other clients, wherever they list a server's prompts), and resources, reference data that your client can attach as context. A prompt only supplies the instructions: the tool calls it leads to count against your plan as usual.
company_due_diligence(company): a report on one company's identification, published history, officer appointments and insolvency notices, citing the BORME id of each act.board_changes(company, since): appointments, re-elections, terminations and resignations, revocations and ex officio cancellations of appointments, optionally since a date.new_companies_digest(province, date): companies whose incorporation notices were published in BORME on one day, for one province or autonomous community. If date is omitted, it uses the latest publication day.check_nif(nif): which company a NIF/CIF is linked to in our data, and its latest published acts (Basic plan and above).visit_briefing(company): a briefing for a client visit, with a company profile and its history and signals from the last 24 months.
The prompts tell the model to cite BORME ids, to tell a name match from a confirmed identification or ownership, and not to treat a missing result as proof that something does not exist.
borme://act-types: the act types, aslist_act_typesreturns them.borme://provinces: the provinces and autonomous communities that the province filters accept. It needsBORME_API_KEY; without a key, reading the resource returns instructions for obtaining a free API key.borme://coverage: data freshness, asregistry_statsreturns it on this server.
One resource template takes a company slug:
borme://company/{slug}: up to 20 of the most recent published events of one company, by slug (for exampleborme://company/vaz-metales-sl), ascompany_historyreturns them withlimit20 andorderdesc, under the same plan rules. On the hosted server without an API key, only events from the last 7 days are visible; the local server requiresBORME_API_KEY. For more events, callcompany_history.
Plans and limits
No key or free key: 50 requests a day, events from the last 7 days, company search by name (first 5 results), company histories and daily digests within those 7 days, the act-type list and registry statistics.
Basic: 5,000 requests a day, 365 days of history, NIF lookup, the NIF on company search results, trademarks and trading names.
Pro: 50,000 requests a day and the full history since 2009.
Risk: 200,000 requests a day and the risk signals tool.
The MCP server uses the same key and the same daily quota as the REST API.
Each tool call counts as one request against the daily quota of your key (or,
without a key, of your IP address). Results are capped per call (for example,
200 events); page with offset where a tool offers it.
Plans and prices: bormeapi.com/#pricing.
Data
More than 9.6 million events since 2009 from BORME-A (acts registered in the Registro Mercantil), updated every publication day.
Results are based on published BORME notices and other public data. Associations involving trademarks or NIFs are data matches and do not constitute legal confirmation.
Not included: annual accounts, BORME-C notices (legal announcements), and notices published before 2009.
In this repository
skills/borme-registry- an Agent Skill that tells the agent which tool to call, how to chain them and how to report the answers.skills/borme-registry-esis the same skill in Spanish. Install one of the two, not both. For Claude Code:git clone https://github.com/bormeapi/borme-mcp.git mkdir -p ~/.claude/skills && cp -r borme-mcp/skills/borme-registry ~/.claude/skills/The skill needs the MCP server to be connected.
vocab/- the act-type vocabulary: each enum with its Spanish heading and English label.server.py,prompts.py,tools.jsonand theDockerfile- the local stdio server described above, with its prompts, resources and resource template;scripts/update_tools.pyregeneratestools.jsonfrom the hosted server.
Related
MCP guide: bormeapi.com/mcp
REST API docs: api.bormeapi.com/docs
Apify actor: Spain Company Registry - BORME Events
This repository: github.com/bormeapi/borme-mcp
License
The contents of this repository are under the MIT License.
The data served by BORME API contains public-sector information from the Agencia Estatal Boletín Oficial del Estado (BORME), reused under Law 18/2015 and RD 1495/2011. Not affiliated with or endorsed by BOE.
Available Tools
18 toolsact_statsAct counts by type, period and provinceARead-onlyIdempotentInspect
Count BORME acts by act type, period (month, quarter or year) and province: how many companies and entries had mergers, spin-offs, capital increases or any other act type, newest period first.
Use it for trends ("mergers per quarter in Spain since 2020"). To read the acts themselves use search_events.
Returns JSON {grain, count, truncated, rows: [{period, act_type, province, companies, events}], data_through, built_from, built_to, note, plan_window}, plus hidden_by_plan when the plan left buckets out, and not_built (no rows, never zeros) when the range reaches years outside built_from..built_to. period is the bucket's first day by BORME publication date. companies counts distinct companies in that bucket: never add rows up. Province "*" is all of Spain; a community gives one row per province, not a total.
Read-only; one request per call. Needs the pro plan or higher: send your key in the X-API-Key header (https://bormeapi.com/account).
Inputs: grain, limit, date_to, sectors, +5 more.
brand_ownerFind a brand's companyARead-onlyIdempotentInspect
Find the Spanish company a trademark or trading name is linked to, in the Spanish patent office (OEPM) records we hold (since 1987).
Use it when the user names a brand; for a company's own name use search_companies, for a known company's brands use company_brands.
Returns JSON {found, brand, matches: [{brand, kind, company_slug, company_name, company_status, file}], truncated, source, note}: one match per company and name; file is that name's newest OEPM file. kind commercial_name identifies a business; trademark distinguishes goods or services (NESCAFÉ is not another name for Nestlé): say which kind a hit is. Links are holder-name matches (no tax IDs are published); ambiguous holders stay unlinked: present a hit as a name match, not confirmed ownership. found false is not proof the brand is unused. On a hit, use company_history with the slug.
Read-only; one request per call. Needs the basic plan or higher: send your API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: brand (required), limit.
company_brandsA company's brandsARead-onlyIdempotentInspect
List the trademarks and trading names that the Spanish patent office (OEPM) records under a holder with this company's name.
Use it with a slug from search_companies or company_history; to go from a brand to its company use brand_owner.
Returns JSON {company_slug, commercial_names, trademarks (each {name, file, status, since}), counts, truncated, limit_per_kind, source, note}: one entry per OEPM file, so a name can repeat, the company's own name included. No tax IDs are published: each link is a name match, not confirmed ownership. An empty list means none is linked in our data, not that the company holds none; {error, suggested_companies} means an unknown slug: nothing was looked up. limit applies per kind, newest first; counts is what this answer lists, not the company's total, and truncated true for a kind means more are linked: raise limit.
Read-only; one request per call. Needs the basic plan or higher: send your API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: company (required), limit.
company_by_nifFind a company by NIFARead-onlyIdempotentInspect
Look up a company by NIF/CIF. Use it for a tax ID; for names, search_companies. On a hit, call company_history with company_slug.
Returns {found, company_slug, current_name, website, lei, nif_caveat, ...}; use current_name. lei: GLEIF Legal Entity Identifier matched by NIF; null means no match yet. website: newest BORME website act; null if none or removed.
BORME has no dedicated tax-ID field: more than 580,000 NIF mappings from public sources and the text of BORME notices cover a minority of companies. reason nif_unmapped: not matched yet, not proof of absence. reason nif_revoked: AEAT records a revocation; relay tell_the_user. On a company match, relay nif_status.note if present. invalid_input true: not a NIF/CIF. reason nif_check_character_failed: relay tell_the_user and did_you_mean. reason not_registry_entity: explain entity_type. ambiguous true: ask which one. nif_caveat: say the link is not settled.
Read-only. Basic plan+. API key: X-API-Key (https://bormeapi.com/account).
Inputs: nif (required).
company_contractsA company's public contract awardsARead-onlyIdempotentInspect
List a company's public contract awards, ordered by publication date, newest first: the REST API's GET /v1/companies/{slug}/contracts.
Use it for one company's awards; a name is searched as in company_history: several matches return {ambiguous: true, candidates}, none returns {error, suggested_companies}.
Returns JSON {company_slug, nif, count, offset, next_offset, contracts: [{source, award_id, published, awarded_on, buyer, title, lot, amount_eur, cpv, notice_url, minor}], sources}. Awards come from Spanish and EU public procurement notices, matched by tax ID; awards published in multiple notices are listed once. nif null means we hold no tax ID for the company, not that it won nothing; count 0 is not proof it never won a contract. Legal-entity winners only; TED notices in the pre-eForms format (January-June 2024) are not included.
Read-only; one request per call. Requires the Basic plan or higher and an API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: company (required), limit, offset, source, +3 more.
company_grantsA company's public aid (BDNS)ARead-onlyIdempotentInspect
List the public aid awards that BDNS, Spain's national database of subsidies and other public aid, records for a company's tax ID, newest first.
Use it for a known company (a slug from search_companies).
Returns JSON {company_slug, nif, link, shown_from, data_as_of, attribution, totals {by_instrument, by_year}, count, next_offset, truncated, items [{concession_id, granted_on, instrument, amount_eur, aid_equivalent_eur, call {title, level, administration, body}}], note}. Only instrument subsidy is a grant: a loan's amount_eur is the principal lent and a guarantee's the amount guaranteed, so never call them grants. Totals are per instrument; do not add nominal amounts across instruments. Awards before shown_from are no longer shown by BDNS. Quote attribution and data_as_of with the data. An empty list means none is linked in our data, not that none was received.
Read-only. Needs the basic plan or higher: send your API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: company (required), limit, offset, date_to, +2 more.
company_groupA company's identified sole-shareholder networkARead-onlyIdempotentInspect
Get a company's sole-shareholder network from links with no ending identified in available BORME publications. Links do not establish current ownership, control or a legal group. Use it for identified sole shareholders or connected companies; use group_history for events. Name lookup: multiple matches return {ambiguous: true, candidates}; none return {error, suggested_companies}.
Returns {company_slug, parents (nearest first), top_parent_slug, members: [{slug, name, province, status, owner_slug, depth, link_kind, since, evidence: {event_id, date, text (excerpt, max 600 chars)}}], unresolved, truncated, note}. The highest member has owner_slug, link_kind, since and evidence null. Names not matched to exactly one company appear as printed in unresolved; do not treat them as resolved companies. Max 200 members. include_directors adds director links, not members. Empty parents does not rule out control or a legal group.
Read-only. Pro plan; X-API-Key header.
Inputs: company (required), include_directors.
company_historyCompany registry timelineARead-onlyIdempotentInspect
Get one company's BORME timeline: its published registry events within your plan's window.
Use it once the company is known (a slug from search_companies or company_by_nif); across many companies use search_events. A name is searched too: several matches return {ambiguous: true, candidates}, none returns {error, suggested_companies}.
Returns JSON {company_slug, total_events, first_seen, last_seen, truncated, next_offset, count, events} (as in search_events), with former_slugs for a merged company (an old slug returns the merged timeline) and plan_window on a limited plan. total_events, first_seen and last_seen cover the whole timeline in your window, not this page. To page, keep limit and order and pass next_offset as offset (at most 10000) until it is null.
Read-only; one request per call. Without an API key (X-API-Key header) only the last 7 days; basic covers 365 days, pro and risk the full history back to 2009. If all its events are outside your window, the refusal counts them.
Inputs: company (required), limit, order, offset, +1 more.
company_signalsA company's signalsARead-onlyIdempotentInspect
Get one company's derived signals within your plan's window, newest first: the REST API's GET /v1/companies/{slug}/signals.
Use it for one company's ownership changes, mass exits, insolvency declarations and the like; across all companies use recent_signals. A name is searched as in company_history: several matches return {ambiguous: true, candidates}, none returns {error, suggested_companies}.
Returns JSON {company_slug, total, count, next_offset, signals: [{event_id, signal_type, date, company_slug, company_name, province, details}]}, with former_slugs for a merged company (every slug is read), and plan_window or hidden_by_plan when your plan's window applied: relay their notes. AEAT_DEBTOR: say the company was on the list published on that date, never that the debt is outstanding. count 0 is not proof of good health.
Read-only; one request per call. Needs the pro plan or higher (CONSOLIDATION and PE_ENTRY: risk); key in the X-API-Key header (https://bormeapi.com/account).
Inputs: company (required), limit, offset, date_to, +2 more.
company_snapshotCompany registry cardARead-onlyIdempotentInspect
Get a company registry card, as in REST API GET /v1/companies/{slug}.
Use it for officers (current roles from published acts), sole_shareholder as printed, capital_eur, address, status, NIF with its source, public_contracts and a size_hint estimate. For dated acts use company_history. Names are searched as in company_history: multiple matches return {ambiguous: true, candidates, candidate_names with name, province and status}; no match returns {error, suggested_companies}.
Returns company_slug, current_name, nif, nif_caveat, sources and other card fields; former_slugs for a merged company. lei: GLEIF Legal Entity Identifier matched by NIF; null means no match yet. website: from the newest BORME act about the company website; null if none or removed. BORME does not report minority shareholdings, employee counts or revenue.
Read-only; one request per call. Requires basic plan or higher; send your API key in X-API-Key (https://bormeapi.com/account).
Inputs: company (required), include_inferred.
daily_digestDaily BORME digestARead-onlyIdempotentInspect
Summarise one BORME publication day: total events, counts by act type, the top 10 provinces and the day's insolvency-proceedings notices.
Use it for "what was published today" or a day's figures; to read the notices use search_events with date_from = date_to = that day.
Returns JSON {date, total_events, by_type, top_provinces, insolvencies: [{company, province}]}. insolvencies lists the events with INSOLVENCY_DECLARATION or INSOLVENCY_STATUS (not SUSPENSION_OF_PAYMENTS, BANKRUPTCY_LEGACY or PROVISIONAL_SHEET_CLOSURE_INSOLVENCY). An INSOLVENCY_STATUS notice can record any stage, from a request for a declaration to the conclusion: before saying a company was declared insolvent, read the act's payload with search_events. A day without a gazette (weekends, holidays) returns total_events 0.
Read-only; one request per call. Without an API key only days within the last 7 days; send your key in the X-API-Key header (https://bormeapi.com/account) for your plan's window.
Inputs: date.
group_historyRegistry events of the identified sole-shareholder networkARead-onlyIdempotentInspect
Get the BORME events of every company in the identified sole-shareholder network (as company_group returns it), newest first, within your plan's window.
Use it before a visit ("which BORME events were published this year for companies in X's identified sole-shareholder network") or for the published mergers, demergers and capital changes concerning companies in the identified network; for one company use company_history. A name is searched as in company_group.
Returns JSON {company_slug, members, member_count, group_truncated, count, offset, next_offset, events: [{event_id, date, borme_id, province, company_name, company_slug, member_slug, acts, registral}]}, with plan_window on a limited plan. member_slug is the group member the event belongs to. To page, pass next_offset as offset until it is null.
Read-only. Needs the pro plan (X-API-Key header).
Inputs: company (required), limit, offset, date_to, +2 more.
list_act_typesList act typesARead-onlyIdempotentInspect
List every normalized BORME act type: the enum used by the act_types filter of search_events (act_type), its Spanish label (spanish) and its English label (english).
Use it to choose act_types values or to translate act types in an answer; it reads no registry data. Returns a JSON array of {act_type, spanish, english}, sorted by act_type. Read-only, open to everyone, no key needed and not counted against a quota. The same list is the resource borme://act-types.
Inputs: no named parameters.
recent_signalsRecent risk signalsARead-onlyIdempotentInspect
Get a sample of the latest risk signals derived from BORME and public sources: at most 10 rows dated within the last 7 days.
Use it for "what risk signals appeared this week"; not a per-company check (use company_history) and not the full feed (the hosted API's /v1/signals).
Returns JSON {count, window, sample_cap, signals: [{signal_type, date, company_slug, company_name, province, details}], full_feed}. AEAT_DEBTOR comes from the AEAT's yearly debtors list (art. 95 bis LGT): details carry listed_on, list_year, is_current_list (true for 12 months from listed_on) and debt_eur, the published total at 31 December of the prior year. Say the company was on the list published on that date; never say the debt is still outstanding. count 0 means none in the window, not that a company is risk-free; an unknown signal_type is refused with the valid list.
Read-only; one request per call. Needs the risk plan: send your API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: signal_type.
registry_statsData coverage and freshnessARead-onlyIdempotentInspect
Report the coverage and freshness of the BORME data behind this server.
Use it to answer "how much data is there?", "how fresh is it?" and "can I trust date filters for period X?" before running searches; it says nothing about any one company.
Returns JSON {events_approx, companies_approx, coverage: {from, to}, parse_completeness_last_30d, source}: exact event and company counts from the latest hourly snapshot (planner estimates if no snapshot exists), the first and latest publication day held (YYYY-MM-DD), and the event-weighted parse completeness over the 30 days up to the latest run (e.g. 0.9987). Takes no arguments. Read-only, open to everyone, no key needed and not counted against a quota. The same report is the resource borme://coverage.
Inputs: no named parameters.
search_companiesSearch companies by nameARead-onlyIdempotentInspect
Find Spanish companies by name and return ranked company cards. Use it first when the user gives a company name, then company_history with its company_slug; with a tax ID use company_by_nif, with a brand use brand_owner.
Matches current names, former names and variants, ignoring accents, case, punctuation and the legal form. Returns JSON {query, count, total, total_is_at_least, truncated, limit, offset, companies: [{company_slug, name, legal_form, province, municipality, status, in_insolvency, last_act_date, match, matched_on}]}. match is exact, prefix, contains or fuzzy (a lead, not an identification; say so). Ranked by match, then active companies, then newest act.
Read-only; one request per call; not limited by the free plan's 7 days of history. The free plan shows at most the first 5 ranked cards; hidden_by_plan counts the rest: relay its note. The NIF is on the card from the basic plan up (X-API-Key header). An empty answer is not proof that a business does not exist.
Inputs: name (required), limit, offset, status, +1 more.
search_eventsSearch registry eventsARead-onlyIdempotentInspect
Search BORME registry events (since 2009) across companies by publication date, province, act type and company name, newest first or oldest first.
Use it for questions about many companies. For one known company use company_history; to find a company use search_companies; for one day's totals use daily_digest.
Returns JSON {count, events: [{event_id, date, borme_id, province, company_name, company_slug, acts: [{act_type, act_type_raw, roles, payload}], registral}], next_cursor, has_more}, plus company_name_match, plan_window and hidden_by_plan when they apply. While has_more is true, pass next_cursor as cursor for the next page; with order=asc, save the last next_cursor to poll for later events.
Read-only; one request per call against your daily quota. Without an API key (X-API-Key header, https://bormeapi.com/account) only the last 7 days are searched. If the page is empty and hidden_by_plan or company_name_match has a note, relay it. Invalid input is rejected with a reason.
Inputs: cnae, limit, order, cursor, +10 more.
vat_checkCheck an EU VAT number in VIESARead-onlyIdempotentInspect
Check whether a VAT number was valid for intra-EU transactions according to VIES, the European Commission's VAT Information Exchange System, on request_date. Results are cached for 24 hours. Use it when the user asks whether a VAT number (NIF-IVA) is valid for intra-EU trade. For a Spanish NIF, use company_by_nif to look for a company with that NIF in our registry.
Returns JSON {vat_number, country_code, number, valid, request_date, source, note}. Relay note as given: the check does not identify the holder, and a negative result says nothing about the domestic tax identifier. invalid_input true: relay tell_the_user. error vies_unavailable or vat_check_rate_limited: the check could not be made now; do not call the number valid or invalid.
Read-only. Needs the basic plan or higher: send your API key in the X-API-Key header (https://bormeapi.com/account).
Inputs: vat_number (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Tool purposes are sharply separated despite many company_* entries: search_events is multi-company event search, company_history is one company's timeline, company_snapshot is the registry card, company_signals is risk signals, and group_history is network events. Descriptions explicitly route agents between lookalike tools (NIF vs. name vs. brand, recent_signals vs. company_signals, company_group vs. group_history), leaving little room for misselection.
All names use snake_case and the dominant pattern is entity_or_resource + aspect (company_history, company_contracts, group_history), which is readable and mostly consistent. The main deviation is that a few tools use verb-led names (search_events, search_companies, list_act_types) while most are noun phrases, so it is not a single strict verb_noun convention.
At 18 tools this is slightly above the typical 3-15 range, but the server spans multiple data domains: BORME events, company cards/history, risk signals, OEPM brands, BDNS grants, procurement, VIES and coverage stats. Each tool maps to a distinct operation, so the count is reasonable though heavy.
For a read-only gazette/company-intelligence service, the surface covers name search, NIF lookup, event search, company timeline, snapshot, signals, group networks, brands, grants, contracts, daily digest and aggregate stats. Cross-links like company_by_nif to company_history and brand_owner to company_history avoid dead ends; plan/feed limits are explicit rather than hidden structural omissions.
Maintenance
Related MCP Connectors
Spanish company registry (BORME): companies, directors, how they connect. Needs a free account.
Search Spain's BOE/BORME gazettes, open EU funding calls and EU TED tenders. Keyless sources.
Spain BORME daily Section A PDFs and Section C legal notices parsed into JSON from BOE Open Data.
Verify Spanish companies by CIF: registry data, status and BORME filings, paid per call over x402.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceSearch Spanish companies, directors and corporate relationships from official BORME registry filings — ~3.2M companies since 2009. Read-only, anonymous.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform due diligence, KYB, and supplier or client verification by querying Spanish company registry data cross-referenced with public grants and procurement awards, each fact linking to its official publication.MIT
- AlicenseAqualityCmaintenanceEnables assistants to query Spanish company registry data in natural language, including lookups by CIF or name, KYB verification, directors, BORME filings, public contracts and risk profiles. All tools are read-only and draw on the user's own API plan credits.8497 npmMIT
- AlicenseAqualityBmaintenanceEnables Claude, Cursor, and other MCP clients to search Spanish BOE/BORME gazettes, open and forthcoming EU funding calls, and TED public procurement notices through read-only tools that return live JSON with source links.31MIT