L'Atlas / MCP servers / SpainCompanyAPI: Spanish company data
MCP server

SpainCompanyAPI: Spanish company data

io.github.abasmartinc/apiempresas

MCP server OK 4 tools

Get a review See pricing

What it is for

Queries public data on Spanish companies: search by name (`search_companies`), a company's record from its tax ID (`get_company`), checks on tax ID revocation and BORME statistics.

Summary written by L’Atlas on 29 Nov 2026, rewritten only from the author’s description and the tools seen by our test. Author’s text below.

Spanish company data: tax ID lookup, KYB, invoice recipient checks, directors, sanctions, tenders.

Technical sheet

Author
abasmartinc (registry namespace)
Repository
github.com/abasmartinc/apiempresas-mcp
Site
spaincompanyapi.com
Version
1.4.5
Transport
Streamable HTTP stdio
Authentication
None (observed by our test)
Server address
https://apiempresas.es/api/mcp Streamable HTTP
Packages
apiempresas-mcp 1.4.3 npm stdio
Tools
4
Categories
Finance and payments
Last updated
21 Nov 2026
Published
21 Nov 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.abasmartinc/apiempresas.svg?lang=en)](https://latlas.dev/en/mcp/io.github.abasmartinc/apiempresas)
HTML
<a href="https://latlas.dev/en/mcp/io.github.abasmartinc/apiempresas"><img src="https://latlas.dev/badge/fiche/io.github.abasmartinc/apiempresas.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://apiempresas.es/api/mcp
Last result
OK 28 Nov 2026, 08:36
Response time
541 ms (initialize + tools/list)
Protocol version
2025-06-18
Announced name
apiempresas 1.3.1
Tools
4

History

DateResultResponseTools
28 Nov 2026, 08:36OK541 ms4

Exposed tools (4, from tools/list, 28 Nov 2026)

search_companies

Search Spanish companies by name

Searches Spanish companies (sociedades) by name or part of the name and returns up to 10 candidates with their tax ID (CIF), province and registry status. Use it when you do not have the CIF of a company; then call get_company with the chosen CIF. Sole traders (autónomos) are not included.

ParameterTypeRequiredDescription
querystringyesCompany name or part of it
limitintegernoMaximum number of results (default 10)

get_company

Get a Spanish company by tax ID

Returns the basic public record of ONE Spanish company from its tax ID (CIF/NIF): legal name, status (active, dissolved, extinguished, in insolvency...), legal form with ISO 20275 code, LEI code, activity code (CNAE), province and incorporation date, plus tax_id_revocation if the Tax Agency has revoked or reinstated its tax ID. The status is derived from Mercantile Registry gazette (BORME) filings; it is not an official certificate. The street address and the directors are not included.

ParameterTypeRequiredDescription
cifstringyesSpanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted.

check_tax_id_revocation

Check if a Spanish tax ID is revoked

Checks whether the Spanish Tax Agency (AEAT) has revoked or reinstated the tax ID (NIF) of a company, as published in the official gazette (BOE). Returns status REVOKED or REHABILITATED with the date and the BOE link, or null if nothing has been published for that tax ID. A company with a revoked tax ID cannot operate with the Tax Agency and banks cannot process its payments. Works even when the company has no record in search_companies.

ParameterTypeRequiredDescription
cifstringyesSpanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted.

get_borme_stats

Spanish company filing statistics

Returns how many filings were published in the Mercantile Registry gazette (BORME) per month or per year, for all of Spain or one province, since 2009: incorporations, dissolutions, extinctions, insolvencies, capital increases and reductions, address changes and mergers. Use it for questions such as "how many companies were created in Valencia in 2025?". Dissolutions and insolvencies are not comparable between provinces; use extinctions to measure closures.

ParameterTypeRequiredDescription
metricsstringnoComma-separated metrics: incorporations, dissolutions, extinctions, insolvencies, capital_increases, capital_reductions, address_changes, mergers. Default: all.
provincestringnoProvince of the Mercantile Registry by name (e.g. MADRID, VALENCIA) or INE code (e.g. 28). Omit for all of Spain.
fromstringnoFirst month (YYYY-MM) or year (YYYY). Default: 11 months before "to".
tostringnoLast month (YYYY-MM) or year (YYYY). Default: current month.
groupenum: "month" | "year"noGroup by month (default) or year.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://apiempresas.es/api/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http apiempresas https://apiempresas.es/api/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : apiempresas ; URL : https://apiempresas.es/api/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : apiempresas ; Server URL : https://apiempresas.es/api/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "apiempresas": {
      "url": "https://apiempresas.es/api/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "apiempresas": {
      "type": "http",
      "url": "https://apiempresas.es/api/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "apiempresas": {
      "url": "https://apiempresas.es/api/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "apiempresas": {
      "httpUrl": "https://apiempresas.es/api/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.apiempresas]
url = "https://apiempresas.es/api/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

SpainCompanyAPI: Spanish company data · L’Atlas · Tested on

Markdown
[SpainCompanyAPI: Spanish company data — L’Atlas](https://latlas.dev/en/mcp/io.github.abasmartinc/apiempresas)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 1 Dec 2026. L’Atlas adds no data beyond this source and its own tests.