SONAR: KYB due diligence

v0.3.3
io.github.Ivanolegvak/sonar-mcp Checked 1 day ago Published 8 days ago

Company register lookups and KYB checks: registries, sanctions, PEP, offshore leaks, adverse media.

Values you need

VariableWhat it is
SONAR_API_KEYrequired secret Your SONAR API key (sk-sonar-...). Create one at https://getsonar.report/developer/keys. A test key (sk-sonar-test-) runs company lookups for free against fixed scenarios.
SONAR_API_BASEoptional API base URL. Only change it for a staging or self-hosted SONAR. Default: https://api.getsonar.report
SONAR_API_TIMEOUToptional Per-request timeout in seconds. Default: 120

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http sonar-mcp https://sonar-mcp.sonar-mcp-remote.workers.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "sonar-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://sonar-mcp.sonar-mcp-remote.workers.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "sonar-mcp": {
      "url": "https://sonar-mcp.sonar-mcp-remote.workers.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "sonar-mcp": {
      "type": "http",
      "url": "https://sonar-mcp.sonar-mcp-remote.workers.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.sonar-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://sonar-mcp.sonar-mcp-remote.workers.dev/mcp"]

For AI agents

  1. Ask the user for: SONAR_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: company_lookup, company_officers, kyb_findings, kyb_run_submit, adverse_media, check_report_status, account_balance.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json