BORME API for AI assistants (MCP)
Connect Microsoft Copilot, Claude, Cursor or any MCP client to Spanish company registry data published in the BORME: notices since 2009, company histories, company search by name, NIF lookup, trademarks and trading names, and risk signals.
Connect with OAuth · How it works · What each plan includes · Microsoft Copilot Studio · Claude · Claude Code · Cursor · Other clients · Tools · Prompts and resources · Example questions · What bankers and analysts can ask · Limits and fair use
Connect with OAuth (Claude.ai, ChatGPT, Copilot)
New: assistants with custom connectors, such as Claude.ai, ChatGPT or Copilot, can connect to https://mcp.bormeapi.com/mcp/oauth with OAuth.
- You sign in with your BORME API account. There is no API key to paste anywhere.
- Calls count against your plan's daily quota.
- You can disconnect the app at any time under Connected apps on your account page.
In Claude.ai:
- 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.
These steps are for Claude.ai. In other clients, the screens and their names may differ.
Unlike /mcp, this endpoint requires a BORME API account and ignores the X-API-Key header. The app uses the plan of the account that authorized it. Its calls share your API key's daily quota with REST API and /mcp calls 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.
How it works
- Server URL:
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. - OAuth:
https://mcp.bormeapi.com/mcp/oauthfor clients that sign in with OAuth (see Connect with OAuth).
Get an API key Pricing · REST API docs
What each plan includes
- 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, and the company profile (company_snapshot).
- Pro: 50,000 requests a day, the full history since 2009, signals for a company (company_signals), company groups and group timelines (company_group, group_history), act statistics (act_stats), and the search_events filter for possible investment vehicles and management companies (
holder_kind). - Risk: 200,000 requests a day and the risk signals tool (recent_signals), including the corporate restructuring signal (
CONSOLIDATION) and the signal for the entry of a possible investment vehicle or management company (PE_ENTRY).
The MCP server uses the same key and the same daily quota as the REST API.
Microsoft Copilot Studio and Microsoft 365 Copilot
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/mcp - For 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.
- Try a question such as: "Which board appointments and terminations of Telefónica, S.A. appear in the published notices, and on which dates?"
Claude (claude.ai and Claude Desktop)
Go to Customize > Connectors > Add custom connector. To connect with OAuth, follow the Claude.ai steps under Connect with OAuth. 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 alternative below. On Team and Enterprise plans an owner adds the connector under Organization settings.
Claude Desktop alternative: 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" }
}
}
}
Claude Code
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
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}" }
}
}
}
Any other Streamable HTTP client
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"}'
ChatGPT: its custom connectors cannot send an API-key header. Connect ChatGPT with OAuth instead (see Connect with OAuth); without it, ChatGPT can use https://mcp.bormeapi.com/mcp only without a key, on the free plan.
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 declarations 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 based on the publications available to us: recorded status, officers, sole shareholder, capital and registered office address (Basic plan and above).
- company_signals
- Signals for a company within your plan's history window, newest first, with the act each one is based on (Pro plan and above).
- company_group
- The network of companies connected through the sole-shareholder links we identify in the available publications, with the published act supporting each link (Pro plan and above).
- group_history
- A combined timeline of the available published acts for the companies in the identified network, filtered by act type and period (Pro plan and above).
- act_stats
- Counts of companies and of acts by act type, province and month, quarter or year (Pro plan and above).
For AI agents: to look up a company by name, call search_companies first, check the returned candidates, then use the chosen company's slug; a fuzzy match is a candidate to verify. Pass the bare company name, with no city, parentheses or notes; the legal form is not needed. Do not repeat the same query unchanged after an empty answer: read note and hidden_by_plan if present, and check offset and truncated.
Prompts and resources
Besides tools, the server offers 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.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 to prepare a visit to a company: its officers on record, any declared sole shareholder, capital changes, mergers, demergers and other corporate restructuring acts, and signals, from the last 24 months of published acts, citing the BORME date of each point. It uses company_snapshot (Basic plan and above) and company_signals (Pro plan and above); on a lower plan the briefing says what it could not check.
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, as list_act_types returns them.borme://provinces: the provinces and autonomous communities that the province filters accept.borme://coverage: data coverage and freshness, as registry_stats returns them.borme://company/{slug}: up to 20 of the most recent published events of one company, under the same plan rules as company_history; each read counts as one request.
Example questions
Answers from the live server on 27 October 2026, shortened.
- "Find Inditex." search_companies: 7 matches; first INDITEX, S.A. (exact match, active, A Coruña), then INDITEX LOGISTICA, S.A. and INDITEX RENOVABLES, S.L.
- "Which company has NIF A28015865?" company_by_nif: TELEFONICA SA., active, Madrid.
- "Show Telefónica's appointments, terminations and revocations." company_history: 364 published events from 5 February 2009 to 6 August 2026; the latest, on 6 August 2026, revokes and appoints proxy holders.
- "How many insolvency notices were published in Valencia in September 2026?" search_events: 36, from 4 to 30 September.
- "Who owns the trading name ZARA?" brand_owner: the trading name ZARA is linked to ZARA ESPAÑA, S.A. (a name match, not confirmed ownership).
- "What risk signals were published today?" recent_signals: 10 on 27 October 2026: 5 mass exits, 3 accordion operations (a capital reduction and increase), 2 public contract awards.
- "Summarize today's BORME." daily_digest: 27 October 2026: 557 incorporations, 1,667 appointment acts, 36 insolvency notices; Madrid leads with 756 events.
- "How much data is there?" registry_stats: more than 9.6 million events and more than 3.2 million companies, from 2 January 2009.
What bankers and analysts can ask
Questions for three kinds of work, with the tools that answer them. These are examples of what to ask, not answers from real queries.
Direct lookups
- "Who are the directors of Inditex, S.A. according to the published acts, and since when?" company_snapshot
- "Do the available publications identify a sole shareholder of Inditex, S.A., and for which companies do they identify Inditex, S.A. as the sole shareholder?" company_snapshot, company_group
- "What acts concerning Telefónica, S.A. were published in the BORME in the last three months?" company_history
Preparing a visit to a company or a group
- "Prepare a briefing for my visit to Inditex, S.A." The
visit_briefingprompt - "Which companies are connected to this company through the identified sole-shareholder links, and what mergers, demergers, segregations or capital changes have been published about them since 2024?" company_group, group_history
- "Which signals does the API identify from acts published about this company in the last year?" company_signals
Activity across the registry
- "How many companies had a merger by absorption published in the BORME in each province of Catalonia in each quarter of 2025?" act_stats
- "How many demergers and segregations were published in the Community of Madrid in 2026, month by month?" act_stats
- "List the mergers published this month in the Valencian Community." search_events
- "Which events published this month originate sole-shareholder or legal-person director links involving entities classified, from their names alone, as possible investment vehicles?" Use search_events with
holder_kind=investment_vehicle. For entry signals concerning possible investment vehicles or management companies, use recent_signals withPE_ENTRY(Risk plan).
What the data can and cannot tell you
- The BORME publishes declarations of sole-shareholder status, loss of that status and changes of sole shareholder, not a full list of shareholders and their stakes. These publications do not provide a complete breakdown of ownership stakes, including minority stakes, and a group is limited to the sole-shareholder links we identify. Director links, if you ask for them, are listed too, but they alone do not make a company a member of the group.
- The NIF of a shareholder or a counterparty is not printed systematically in the BORME. A name that matches exactly one company is linked to it; a name that matches several companies or none is shown as printed, as unresolved text, and never guessed.
- Potential investment vehicles are flagged using name expressions such as "capital riesgo" and abbreviations such as SCR or FCR. The rule can miss a vehicle and can flag a company that is not one. An SGEIC is a management company, not a fund. A director appointment alone does not prove an investment.
- The
CONSOLIDATIONsignal covers corporate restructuring acts: mergers (including mergers by absorption), segregations and global transfers of assets and liabilities. Total and partial demergers do not raise it; search_events and act_stats find them. - Counts are by BORME publication date. A company with acts published in several periods is counted in each period. Adding these company counts does not give the number of distinct companies across those periods.
- Answers reflect the publications available to us. They are not a certificate of a company's current situation, and signals and alerts do not cover every event.
Limits and fair use
- 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
offsetwhere a tool offers it. - 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.
Questions about an integration or a pilot? Write to us; we answer personally, usually the same working day.