Repository avatar
Search & Data Extraction
v1.0.1
active

mcp-spain-company-directory

com.mambabuilt/mcp-spain-company-directory

Spanish company lookup and search: CIF, CNAE, address, financials, and officers from infoempresa.

Documentation

Spain Company Directory MCP Server

Glama score MCP Registry npm version npm downloads license

An MCP server for the Mamba Labs Spain Company Directory actor on Apify. Spanish company data by name, CIF, or sector.

What's Inside

What it does

Looks up Spanish companies on infoempresa by name, CIF, or link, or lists companies by search term, sector, status, and legal form, and returns registry data, financials, and officers.

All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.

Quick start

You need Node.js 18 or newer and an Apify account with an API token.

Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:

{
  "mcpServers": {
    "mamba-spain-company-directory": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-spain-company-directory"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Restart the client. The lookup_spain_companies tool appears.

Prerequisites

Example prompts

  • "Look up Mercadona SA and give me its CIF, address, and officers."
  • "List 20 active construction companies in Spain with construcciones in the name."
  • "Find the company with CIF A28015865 and its latest revenue."

Tool

lookup_spain_companies. One tool. Example arguments:

{
  "companies": [
    "Telefonica SA"
  ],
  "include_officers": true
}

Inputs

Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.

InputTypeRequiredDescription
companiesarraynoCompany names, CIFs (for example A28015865), or infoempresa company links. Each is read from its company page (company-detail-row). A name must match the registered name, legal form aside, unless name_match is closest.
search_termsarraynoWords to find in company names, for example construcciones. Each term lists up to about 100 companies (company-row). Combine with the filters below.
statusstringnoSearch filter: any (default), activa, extinguida, or inactiva.
sectorarraynoSearch filter: one or more of infoempresa's 21 sectors by name or number, for example Construcción or Hostelería. With no search term, the filters alone list up to 1,000 companies.
legal_formstringnoSearch filter: SA, SL, or SLL (or the full name). Empty means any.
max_results_per_searchnumbernoUp to 1,000 for a filter-only search; a search term returns at most about 100. Default 100.
company_detailsbooleannotrue: each search result is read from its company page and charged as a company-detail-row. false (default): search list fields only.
include_officersbooleannotrue (default): detail rows carry the officers the company page lists (up to 25).
max_officers_per_companynumberno1 to 25. Default 25.
name_matchstringnoexact (default): a company name must match the registered name, legal form aside; otherwise a free no_results row lists the closest names. closest: take the first search result.
term_in_namebooleannotrue (default): search results whose name lacks a word of the search term are skipped, free.
dedupebooleannotrue (default): a company already returned in this run is skipped, free.
max_charge_usdnumbernoOptional. The run stops before a charge that would pass this amount. Summary rows are always returned.

Pricing

Pay per event on Apify, billed to your Apify account. Prices in USD.

EventFree planBronzeSilverGold
company-row, one company from a search list$0.002$0.0019$0.0018$0.0017
company-detail-row, one company page read with CIF, officers, and financials$0.005$0.00475$0.0045$0.00425
apify-actor-start, per run start$0.005$0.005$0.005$0.005

Companies not found, repeats, loose matches, summaries, and refused input are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.

Full actor documentation

apify.com/mambalabs/spain-company-directory

License

MIT. See LICENSE.