filings.es MCP: the Spanish company register in your assistant

Connect Claude, ChatGPT or Mistral to 3.9 million Spanish companies and 9.9 million director mandates. One command to copy, and your assistant answers from the register instead of guessing.

What it is

MCP (Model Context Protocol) is the standard socket between an assistant and a data source. Once connected, you write “who runs the company with tax ID B54226691?” in plain language: the assistant queries the register, reads the answer and replies citing its sources. No code, no JSON to handle.

It is the same data as the REST API, with the same key and quota: one tool call equals one API call. Setup takes two minutes, once and for all.

Your key

The same one as the REST API. Set it here and every instruction on this page fills in with it.

Paste your key here: every instruction below updates, ready to copy.

Choose your assistant

Each card stands alone: go straight to yours, the others are of no use to you.

Claude Desktop

app · macOS and Windows
  1. 1

    Download the installer file

  2. 2

    Double-click the file

    Claude Desktop opens and shows the install window. If nothing happens, use Settings → Extensions → Install Extension, or drag the file onto the settings window.
  3. 3

    Paste your key when Claude asks

    It stays on your machine: it never passes through this page.
  4. 4

    Check it works

    In a conversation, ask “Who runs company B54226691?”. Claude should answer SOLER BULILLA SL.

Claude.ai

browser · from the free plan
  1. 1

    Open Customize, then Connectors

    The free plan allows one connector; paid plans have no limit. On Team and Enterprise, only an owner can add them.
  2. 2

    Click “+”, then “Add custom connector”

    Leave the advanced settings empty: this server does not use OAuth.
  3. 3

    Paste this address, then “Add”

    https://api.filings.es/mcp?apikey=YOUR_KEY Copy
  4. 4

    Enable it in the conversation

    This is the step people miss: an added connector is active in no conversation. Click the “+” at the lower left of the message box, then “Connectors”, and switch on filings-es.

Claude Code

terminal
  1. 1

    Open a terminal

    Anywhere: “--scope user” below registers the server for all your projects. Without it, it would only be added to the current folder.
  2. 2

    Run this command

    claude mcp add --transport http filings-es --scope user https://api.filings.es/mcp --header "X-Api-Key: YOUR_KEY" Copy
  3. 3

    Check it works

    claude mcp get filings-es Copy

    The server should show as connected. The /mcp command, inside a session, lists the 19 tools.

ChatGPT

browser · Pro, Team, Enterprise, Edu
  1. 1

    Turn on developer mode

    Settings → Connectors → Advanced → Developer Mode. While it is off, no custom connector option appears — the number one cause of failed setups.
  2. 2

    Click “Create”

    Name it filings-es and paste the address below as the server URL.
    https://api.filings.es/mcp?apikey=YOUR_KEY Copy
  3. 3

    Tick “I trust this provider”, then “Create”

    The checkbox is required; the button stays disabled without it.
  4. 4

    Enable it in every conversation

    Click “+” in the message box, then “More”, then “Developer Mode”, and select filings-es. Repeat in every new conversation.

OpenAI API

code · Responses API

To embed the register in your own product. No interface, no developer mode: the server is declared as a tool and the model decides when to call it.

  1. 1

    Install the library

    pip install openai Copy
  2. 2

    Declare the server and ask

    from openai import OpenAI client = OpenAI() resp = client.responses.create( model="gpt-5", tools=[{ "type": "mcp", "server_label": "filings_es", "server_url": "https://api.filings.es/mcp", "headers": {"X-Api-Key": "YOUR_KEY"}, "require_approval": "never", }], input="¿Quién administra la empresa con NIF B54226691?", ) print(resp.output_text) Copy
  3. 3

    What you should get

    A plain-text answer citing SOLER BULILLA SL. To approve each call first, replace “never” with “always”. To restrict the model to certain tools, add “allowed_tools”.

Mistral Le Chat

browser · admin only
  1. 1

    Open the Connectors page

    Adding a connector is admin-only. On Free, Pro and Student plans, that is the account holder.
  2. 2

    “+ Add Connector”, then the “Custom MCP Connector” tab

    For the name, write filings-es with no spaces or accents: the field rejects them.
  3. 3

    Paste the BARE address, no key

    https://api.filings.es/mcp Copy

    Le Chat detects the authentication itself: click “Connect”, choose the Bearer token and paste your key in the form. Cleaner than a key in the URL.

  4. 4

    Select it and test

    The connector appears in the tools dropdown. Ask “Who runs company B54226691?”: the answer should cite SOLER BULILLA SL.

Cursor, Windsurf and others

mcp.json
  1. 1

    Open the right file

    ~/.cursor/mcp.json for all your projects, or .cursor/mcp.json at a project root for that project only. Other editors read the same format.
  2. 2

    Paste this configuration

    { "mcpServers": { "filings-es": { "url": "https://api.filings.es/mcp", "headers": { "X-Api-Key": "YOUR_KEY" } } } } Copy
  3. 3

    Restart the editor

    Most only re-read their configuration on startup. In Cursor, the server is then enabled from Customize, in the sidebar.

Exact menu names shift between versions. If a label differs, look for “connectors” or “MCP” in the settings: the address to paste never changes.

The 19 tools

You never call these yourself: the assistant picks the right one for your question. The list is here so you know what it can do.

search_companiesFind a company by name, tax ID or registry sheet
autocompleteAs-you-type suggestions
get_companyFull profile: capital, address, activity, status
get_directorsDirectors, current and former
get_ownersSole shareholder, cap table, beneficial owner
get_announcementsBORME history since 2009
get_insolvencyInsolvency proceedings
get_company_networkCompany link graph
search_directorsFind a person
get_directorAll mandates of a person
search_insolvencySearch insolvency proceedings
get_insolvency_noticeFull text of a notice
check_vatValidate a VAT number (VIES)
batch_lookupUp to 100 tax IDs in one call
list_new_companiesNewly incorporated companies
search_directoryDirectory by sector and province
screenerRegistry event screener
search_cnaePlain sector → CNAE code
list_provincesThe 52 provinces and their codes

Quota and limits

The key is your API key — one key for both. One tool call uses one call from your monthly quota.

Get a key — 100 calls free

Before you start

  • BORME starts in 2009: earlier filings are not there.
  • People are matched by name, with no national ID — namesakes can be conflated.
  • An assistant can chain many calls: watch your quota in the first days.