SpainCompanyAPI: Spanish company data

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

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
97%
Calidad de los nombres
100%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~977Tokens (definiciones de herramientas)
~1.1 KBTamaño de respuesta típico
Impacto moderado en la atención (0.76% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "apiempresas": {
      "command": "npx",
      "args": [
        "apiempresas-mcp"
      ]
    }
  }
}

Paquetes ejecutables

npmapiempresas-mcp1.4.3stdio

Puntos de conexión remotos

https://apiempresas.es/api/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (4)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada4 herramientas
verificadoversión no registrada4 herramientas
verificadoversión no registrada12 herramientas
verificadoversión no registrada11 herramientas