SpainCompanyAPI: Spanish company data
Spanish company data: tax ID lookup, KYB, invoice recipient checks, directors, sanctions, tenders.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"apiempresas": {
"command": "npx",
"args": [
"apiempresas-mcp"
]
}
}
}Runnable packages
1.4.3stdioRemote endpoints
https://apiempresas.es/api/mcpstreamable-httpWhat it can do
Tool inventory
Tools (4)
๐ขsearch_companies(query, limit)
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.
Input Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"description": "Company name or part of it"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "Maximum number of results (default 10)"
}
},
"required": [
"query"
],
"additionalProperties": false
}๐ขget_company(cif)
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.
Input Schema
{
"type": "object",
"properties": {
"cif": {
"type": "string",
"minLength": 9,
"maxLength": 15,
"description": "Spanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted."
}
},
"required": [
"cif"
],
"additionalProperties": false
}๐ขcheck_tax_id_revocation(cif)
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.
Input Schema
{
"type": "object",
"properties": {
"cif": {
"type": "string",
"minLength": 9,
"maxLength": 15,
"description": "Spanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted."
}
},
"required": [
"cif"
],
"additionalProperties": false
}๐ขget_borme_stats(metrics, province, from, to, group)
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.
Input Schema
{
"type": "object",
"properties": {
"metrics": {
"type": "string",
"description": "Comma-separated metrics: incorporations, dissolutions, extinctions, insolvencies, capital_increases, capital_reductions, address_changes, mergers. Default: all."
},
"province": {
"type": "string",
"description": "Province of the Mercantile Registry by name (e.g. MADRID, VALENCIA) or INE code (e.g. 28). Omit for all of Spain."
},
"from": {
"type": "string",
"description": "First month (YYYY-MM) or year (YYYY). Default: 11 months before \"to\"."
},
"to": {
"type": "string",
"description": "Last month (YYYY-MM) or year (YYYY). Default: current month."
},
"group": {
"type": "string",
"enum": [
"month",
"year"
],
"description": "Group by month (default) or year."
}
},
"required": [],
"additionalProperties": false
}Community
Evidence