SpainCompanyAPI: Spanish company data

v1.4.5
io.github.abasmartinc/apiempresas Checked 2 days ago Published 12 days ago

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

Values you need

VariableWhat it is
APIEMPRESAS_API_KEYrequired secret API key from https://spaincompanyapi.com (free plan: 100 requests, no card)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add apiempresas -e 'APIEMPRESAS_API_KEY=<APIEMPRESAS_API_KEY>' -- npx -y apiempresas-mcp@1.4.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "apiempresas": {
      "args": [
        "-y",
        "apiempresas-mcp@1.4.3"
      ],
      "command": "npx",
      "env": {
        "APIEMPRESAS_API_KEY": "<APIEMPRESAS_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "apiempresas": {
      "args": [
        "-y",
        "apiempresas-mcp@1.4.3"
      ],
      "command": "npx",
      "env": {
        "APIEMPRESAS_API_KEY": "<APIEMPRESAS_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "APIEMPRESAS_API_KEY",
      "id": "apiempresas-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "apiempresas": {
      "args": [
        "-y",
        "apiempresas-mcp@1.4.3"
      ],
      "command": "npx",
      "env": {
        "APIEMPRESAS_API_KEY": "${input:apiempresas-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.apiempresas]
command = "npx"
args = ["-y", "apiempresas-mcp@1.4.3"]
env = { "APIEMPRESAS_API_KEY" = "<APIEMPRESAS_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http apiempresas https://apiempresas.es/api/mcp --header 'X-API-KEY: <X-API-KEY>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "apiempresas": {
      "args": [
        "-y",
        "mcp-remote",
        "https://apiempresas.es/api/mcp",
        "--header",
        "X-API-KEY: <X-API-KEY>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "apiempresas": {
      "headers": {
        "X-API-KEY": "<X-API-KEY>"
      },
      "url": "https://apiempresas.es/api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "apiempresas": {
      "headers": {
        "X-API-KEY": "<X-API-KEY>"
      },
      "type": "http",
      "url": "https://apiempresas.es/api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.apiempresas]
command = "npx"
args = ["-y", "mcp-remote", "https://apiempresas.es/api/mcp", "--header", "X-API-KEY: <X-API-KEY>"]

For AI agents

  1. Ask the user for: APIEMPRESAS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_company, search_companies, verify_company, find_cif_by_name, verify_invoice_recipients, get_borme_history, get_risk_profile, get_public_contracts, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json