Skip to main content
Glama
Black Flag Alert MCP Server

Black Flag Alert MCP Server

by lorquaid

Black Flag Alert MCP Server

UK company credit-risk intelligence as native tools for your AI agent — Claude, Cursor, Windsurf, Cline, ChatGPT connectors, Gemini, or any Model Context Protocol client.

Black Flag Alert scores every company registered in England & Wales with the R-Score (0–100) — filed accounts, filing behaviour, charges, CCJs and winding-up activity combined into one number — and serves it through one MCP endpoint.

Tools

Tool

What it does

Metering

search_companies

Find a company's 8-char number from its name (up to 20 matches)

free

get_company

Full profile: R-Score, financials, charges, CCJs, directors, narrative

calls

get_risk_narrative

Fast plain-English risk summary only (cheapest call)

calls

get_contacts

SMTP-verified emails, phone, domain

contact lookups

batch_enrich

Up to 50 companies in one call: score, status, overdue, exposure

calls

usage

Your key's rolling-24h usage vs limits

free

Related MCP server: companieswise

Connect (remote, no install)

Works with any client that supports remote MCP servers:

{
  "mcpServers": {
    "black-flag-alert": {
      "type": "http",
      "url": "https://blackflagalert.com/api/mcp",
      "headers": {
        "Authorization": "Bearer bfa_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

ChatGPT: Settings → Connectors → Create (paste the URL). Claude web: Settings → Connectors → Add custom. Claude Code: claude mcp add --transport http black-flag-alert https://blackflagalert.com/api/mcp --header "Authorization: Bearer <key>". Gemini: Settings → Apps → Connections.

Install locally (stdio)

uv tool install bfa-mcp        # once published to PyPI
# or from source:
uv sync                        # in this repo
{
  "mcpServers": {
    "black-flag-alert": {
      "command": "bfa-mcp",
      "env": { "BFA_API_KEY": "bfa_live_..." }
    }
  }
}

Environment variables

Variable

Required

Default

BFA_API_KEY

yes

—

BFA_BASE_URL

no

https://blackflagalert.com

Example

You: "Should we extend £20k credit to Kimmeridge Projects?"

Agent: search_companies("Kimmeridge Projects") → 04466987 → get_company("04466987") → "R-Score 93.87 (Very Low risk), no CCJs, no outstanding charges, net assets £254K. Suggested exposure: £24,000."

License

MIT

Available Tools

6 tools
batch_enrichAInspect

Enrich up to 50 UK companies in one call: status, R-Score, overdue flags, charges, CCJs, net assets and suggested credit exposure each. Pass a list of 8-character company numbers. Unknown numbers come back with found=false.

Inputs: company_numbers (required).

get_companyAInspect

Full credit profile of a UK company: R-Score (0-100), risk band, five years of financials, filing history, charges, CCJs, directors, active alerts, suggested credit exposure and a plain-English risk narrative. company_number: 8-character Companies House number (e.g. 04466987). England & Wales coverage only — SC/NI/OC prefixes are not covered.

Inputs: company_number (required).

get_contactsAInspect

Verified contact details for a UK company: SMTP-validated email addresses, phone and website domain. Metered separately from other calls — use sparingly and only when the user actually needs contact details.

Inputs: company_number (required).

get_risk_narrativeAInspect

Fast plain-English risk summary for a UK company — no external credit fetch, cheapest call. Use when the user just wants 'is this company safe to deal with' rather than the full profile.

Inputs: company_number (required).

search_companiesAInspect

Search UK companies by name to find their Companies House number. Use this first when the user gives a company name instead of a number. Returns up to 20 matches with company_number, name, status and R-Score.

Inputs: query (required).

usageAInspect

Show this API key's rolling-24h usage against its limits: calls made, calls allowed, contact lookups used. Call this when you hit a rate-limit error or before a large batch.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools serve distinct purposes: search vs. full profile vs. lightweight narrative vs. contacts vs. batch vs. usage. get_company and get_risk_narrative overlap somewhat since the full profile includes a risk narrative, but the descriptions clearly differentiate the use cases (comprehensive vs. fast/cheap).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun or noun pattern (search_companies, get_company, get_risk_narrative, get_contacts, batch_enrich, usage). The lone noun 'usage' is a minor, contextually clear exception.

    Tool Count5/5

    Six tools cover the core operations of UK company credit checking without redundancy. Each tool has a clear, non-overlapping role in the workflow.

    Completeness4/5

    The surface covers search, detailed profiles, quick risk, contacts, batch enrichment, and usage monitoring. However, it lacks tools for monitoring alerts over time or managing alert subscriptions, which the server name suggests might be expected.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides real-time company verification and corporate intelligence by accessing global registries like UK Companies House, Singapore ACRA, and OpenCorporates. It enables AI agents to perform KYC tasks, retrieve company profiles, and conduct automated risk assessments for due diligence workflows.
      118 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides verified UK company lookup and number validation for AI agents using official Companies House data. Enables lookup of registered details by number, validation of company number format, and search by company name.
      3
      49 npm
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search and retrieve UK Companies House data including company profiles, officers, and filing history via the official API.
      4
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Provides instant access to verified, enriched business intelligence for any UK company, including legal identity, financial health, web presence, and hiring activity in a single call.
      -