APIEmpresas MCP
Query Spanish company registry data from SpainCompanyAPI through read-only MCP tools.
Look up a company by CIF/NIF and optionally include directors; returns name, status, incorporation date, province, CNAE, legal form, LEI and plan-dependent details.
Search companies by name or partial legal name to find matching CIFs.
Run a KYB verification: existence/active status, declared-name match, director or sole-shareholder match, optional VIES VAT check, with alerts and pass/review/fail recommendation.
Resolve up to 100 company names to CIFs, optionally using a province to disambiguate; only matches consume requests.
Retrieve BORME history such as incorporation, appointments, capital changes, address changes, dissolution and insolvency events.
Get a BORME-derived risk profile with level and explanation.
List public-sector contracts awarded to a company, with pagination.
Check account plan, used/remaining requests and credit balance without consuming requests.
All tools are read-only; most calls consume plan requests, and some require Pro or Business plans.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@APIEmpresas MCP verifica si Mercadona está activa y quién es su administrador"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Spanish company data MCP server (SpainCompanyAPI)
Official MCP server for SpainCompanyAPI (APIEmpresas.es): Spanish company data for Claude, Cursor, VS Code and any MCP-compatible assistant. Look up companies by tax ID (CIF/NIF), verify them (KYB), check a list of invoice recipients, and get directors, registry filings (BORME), sanctions screening, public contracts, grants and open tenders.
Ask in plain language ("Is Mercadona active and who are its directors?", "Find the tax IDs of these 40 companies", "Check these Spanish customers before I invoice them") and the assistant calls the API with your key.
Free API key: 100 requests, no card required. Sign up
API documentation: spaincompanyapi.com/docs
Coverage: over 4.7 million Spanish companies, updated every working day from the Commercial Registry gazette (BORME) and other public registers.
Versión en español al final de este documento.
Tools
Tool | What it does | Plan |
| Company by tax ID: legal name, status, incorporation date, province, CNAE activity, legal form (ISO 20275) and LEI; whether the Tax Agency has revoked its tax ID ( | Free (reduced data), Pro |
| Search companies by name | Free |
| KYB check ( | Pro |
| Name to tax ID, up to 100 at a time, with an optional province to break ties (only matches are charged) | Pro |
| Checks a list of customers (up to 100) before invoicing them ( | Pro |
| Events published in the BORME | Pro |
| Risk profile based on the BORME | Business |
| Public contracts awarded | Business |
| Public grants from the national grants database (BDNS) since 2022: summary by year, instrument and call, and the individual awards | Business |
| Open public tenders: by keywords, CPV, province, type and amount, or similar to what a company has already won ( | Business |
| EU, UN and OFAC sanctions lists: a company and its directors ( | Business |
| Plan, requests left and credit balance (free; not available in the sandbox) | All |
All tools are read-only. Each call uses requests from your plan, as with the API.
Related MCP server: Asiento Uno
Installation
Create a free account (100 requests, no card) at spaincompanyapi.com and copy your API key from the dashboard.
Add the server to your client (requires Node.js 18 or later).
Claude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"apiempresas": {
"command": "npx",
"args": ["-y", "apiempresas-mcp"],
"env": { "APIEMPRESAS_API_KEY": "your_api_key" }
}
}
}Claude Code
claude mcp add apiempresas --env APIEMPRESAS_API_KEY=your_api_key -- npx -y apiempresas-mcpCursor
In ~/.cursor/mcp.json (or .cursor/mcp.json in your project), the same mcpServers block as for Claude Desktop.
VS Code
In .vscode/mcp.json:
{
"servers": {
"apiempresas": {
"type": "stdio",
"command": "npx",
"args": ["-y", "apiempresas-mcp"],
"env": { "APIEMPRESAS_API_KEY": "your_api_key" }
}
}
}Remote server (nothing to install)
Clients that support remote MCP servers can connect to https://spaincompanyapi.com/api/mcp (also https://apiempresas.es/api/mcp) with the X-API-KEY header. Without a key, name search and basic company data still work, with a daily limit.
Testing at no cost
With APIEMPRESAS_BASE_URL=https://spaincompanyapi.com/api/sandbox/v1 calls do not use requests (only the test tax IDs A15075062 and B00000000 work). With APIEMPRESAS_BASE_URL=https://spaincompanyapi.com/api/v1 you use the live API with error messages in English; the default is https://apiempresas.es/api/v1.
Good to know
Registry status, scoring and risk profile are worked out by SpainCompanyAPI from the BORME: they are not a certificate from the Commercial Registry.
Not covered: ultimate beneficial owners, PEP screening, credit scores, full annual accounts and sole traders (autónomos).
Pricing: Free 100 requests; Pro €19/month (3,000/month); Business €49/month (10,000/month); credit packs without subscription. VAT not included. Details at spaincompanyapi.com.
Links
Website: spaincompanyapi.com
API documentation: spaincompanyapi.com/docs
MCP setup guide: spaincompanyapi.com/docs#mcp
Support: soporte@apiempresas.es
License
MIT
En español
Servidor MCP oficial de APIEmpresas.es: datos de empresas españolas para Claude, Cursor, VS Code y cualquier asistente compatible con MCP. Las herramientas son las de la tabla de arriba: empresa por CIF, búsqueda por nombre, verificación KYB, de nombre a CIF, validación del NIF de los clientes antes de facturar (verify_invoice_recipients), BORME, riesgo, contratos públicos, subvenciones, licitaciones abiertas y listas de sanciones.
claude mcp add apiempresas --env APIEMPRESAS_API_KEY=tu_api_key -- npx -y apiempresas-mcpCrea una cuenta gratis (100 consultas, sin tarjeta) en apiempresas.es. Para probar sin gastar consultas: APIEMPRESAS_BASE_URL=https://apiempresas.es/api/sandbox/v1. Documentación completa en apiempresas.es/documentation.
Available Tools
8 toolsfind_cif_by_nameDe nombre a CIFARead-onlyIdempotentInspect
Encuentra el CIF de una lista de empresas a partir de sus nombres (hasta 100). Cada resultado es match, ambiguous o no_match; solo los match gastan consulta. Plan Pro o superior. Útil para completar hojas de clientes.
Inputs: names (required), province.
get_borme_historyHistorial del BORMEARead-onlyIdempotentInspect
Actos publicados en el BORME (Boletín Oficial del Registro Mercantil) de una empresa: constitución, nombramientos y ceses, ampliaciones de capital, cambios de domicilio, disolución, concurso… Plan Pro o superior.
Inputs: cif (required).
get_companyEmpresa por CIFARead-onlyIdempotentInspect
Datos de una empresa española a partir de su CIF/NIF: razón social, estado (activa, extinguida, en concurso…), fecha de constitución, provincia, municipio, CNAE, forma jurídica (con código ISO 20275) y código LEI y, según el plan, domicilio completo, tramo de facturación, socio único (ownership), matriz del grupo según GLEIF (group) y administradores (include_directors). Gasta 1 consulta. El estado lo calcula APIEmpresas a partir del BORME; no es un certificado del Registro Mercantil. Spanish company lookup by tax ID.
Inputs: cif (required), include_directors.
get_public_contractsContratos públicosBRead-onlyIdempotentInspect
Contratos del sector público adjudicados a una empresa (Plataforma de Contratación del Sector Público). Plan Business.
Inputs: cif (required), page, limit.
get_risk_profilePerfil de riesgoARead-onlyIdempotentInspect
Perfil de riesgo de una empresa calculado a partir de sus publicaciones en el BORME (concursos, disoluciones, cierres de hoja, cambios de administradores…), con nivel y explicación. Plan Business.
Inputs: cif (required).
get_usageConsumo de la cuentaARead-onlyIdempotentInspect
Plan de la cuenta, consultas usadas y disponibles, y saldo de créditos. No gasta consultas. No funciona en el Sandbox.
Inputs: no named parameters.
search_companiesBuscar empresas por nombreARead-onlyIdempotentInspect
Busca empresas españolas por nombre o razón social y devuelve las coincidencias con su CIF. Útil cuando no se conoce el CIF. Search Spanish companies by name.
Inputs: query (required), limit.
verify_companyVerificación KYBARead-onlyIdempotentInspect
Verificación KYB de una empresa en una sola llamada: si existe y está activa, si el nombre declarado coincide y si una persona es administradora o el socio único, con alertas y una recomendación (pass / review / fail). Devuelve también la forma jurídica, el LEI, la matriz del grupo y el socio único. Plan Pro o superior; gasta 2 consultas. KYB check for a Spanish company.
Inputs: cif (required), vat, name, person.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
search_companies and find_cif_by_name both resolve company names to CIFs, differing mainly in bulk vs single lookup. get_company and verify_company overlap on company data, and get_borme_history vs get_risk_profile both rely on BORME, though descriptions clarify the latter is a derived risk summary. Some tools could be confused, but most have reasonably distinct purposes.
All tool names use snake_case with a consistent verb_noun pattern (get_, search_, verify_, find_). The convention is predictable throughout.
Eight tools is well-scoped for a Spanish company data and KYB API. Each tool earns its place by covering a distinct lookup, verification, or account operation.
The surface covers core company lookup, search, bulk CIF resolution, KYB verification, BORME history, risk profiling, public contracts, and usage. Minor gaps exist, such as direct financial statement retrieval or richer BORME filtering, but major workflows are covered.
Maintenance
Related MCP Connectors
Verify Spanish companies by CIF: registry data, status and BORME filings, paid per call over x402.
Spanish & EU official data: company registry, public tenders, grants, cadastre, CPI, VAT/IBAN checks
Find who is behind any Spanish company: directors, public contracts, grants and official sources.
Global B2B intelligence for AI agents: 35M+ companies, 1.6M sanctions, KYB pack. 78 tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceStructured business intelligence for AI agents. 11.3M verified entities, 40.3M BORME mercantile acts, EU VAT validation (VIES), GLEIF LEI and healthcare registries. 12 tools.61MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform due diligence, KYB, and supplier or client verification by querying Spanish company registry data cross-referenced with public grants and procurement awards, each fact linking to its official publication.MIT
- AlicenseNot gradedqualityCmaintenanceConnects AI assistants to company records, officers, ownership, corporate group structures, and available financial statements through six read-only tools with source provenance where available.MIT
- AlicenseBqualityAmaintenanceEnables AI agents and developers to search and inspect Spanish public data sources, learn their endpoints and pitfalls, and retrieve ready-made data such as municipal profiles, economic indicators, company records, procurement, subsidies, and location reports.13131Creative Commons Zero v1.0 Universal