Skip to main content
Glama
Spain Company Directory MCP Server

Spain Company Directory MCP Server

Spain Company Directory MCP Server

npm version 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

Related MCP server: Company Discovery List Builder MCP Server

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.

Input

Type

Required

Description

companies

array

no

Company 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_terms

array

no

Words to find in company names, for example construcciones. Each term lists up to about 100 companies (company-row). Combine with the filters below.

status

string

no

Search filter: any (default), activa, extinguida, or inactiva.

sector

array

no

Search 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_form

string

no

Search filter: SA, SL, or SLL (or the full name). Empty means any.

max_results_per_search

number

no

Up to 1,000 for a filter-only search; a search term returns at most about 100. Default 100.

company_details

boolean

no

true: each search result is read from its company page and charged as a company-detail-row. false (default): search list fields only.

include_officers

boolean

no

true (default): detail rows carry the officers the company page lists (up to 25).

max_officers_per_company

number

no

1 to 25. Default 25.

name_match

string

no

exact (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_name

boolean

no

true (default): search results whose name lacks a word of the search term are skipped, free.

dedupe

boolean

no

true (default): a company already returned in this run is skipped, free.

max_charge_usd

number

no

Optional. 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.

Event

Free plan

Bronze

Silver

Gold

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.

Available Tools

1 tool
lookup_spain_companiesLook up and search Spanish companiesA
Read-onlyIdempotent

Look up Spanish companies by name, CIF, or infoempresa link, or search by name, sector, status, and legal form. Returns one row per company: CIF, status, legal form, registered address, website, phone, employees, CNAE and SIC activity, mercantile registry, last BORME date, revenue, net worth, net result, and officers.

Inputs: dedupe, sector, status, companies, +9 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 1 tool

    Disambiguation4/5

    With only one tool there is no risk of selecting the wrong tool, so cross-tool ambiguity is nil. However, the single tool internally multiplexes two distinct modes (exact lookup by CIF/link vs. filtered search by sector/status/legal form), which an agent must infer from the argument mix rather than from separate tools.

    Naming Consistency5/5

    The lone name `lookup_spain_companies` follows a clean snake_case verb_noun pattern that clearly states the action and the target domain. There are no competing conventions to clash with, so the naming is predictable and readable.

    Tool Count3/5

    A single tool for a company-directory server is on the thin side: the domain naturally splits into 'search by filters' and 'fetch full profile by CIF/link', which would be cleaner as two tools. It still earns its place by covering both behaviors, so it is borderline rather than mismatched.

    Completeness4/5

    For a read-only data-lookup domain the tool exposes a very rich field set (identity, status, activity codes, registry, financials, officers) and supports both discovery and precise retrieval. Minor gaps such as pagination, bulk lookup, or officer-level filtering are workable around by the agent.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables querying Spain's official company registry (BORME) for company events such as incorporations, director appointments, insolvencies, and capital changes, supporting filters by date, province, and act type.
      10
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      A
      quality
      C
      maintenance
      Enables assistants to query Spanish company registry data in natural language, including lookups by CIF or name, KYB verification, directors, BORME filings, public contracts and risk profiles. All tools are read-only and draw on the user's own API plan credits.
      8
      MIT