CompanyStack MCP server
Official# CompanyStack MCP server
<!-- mcp-name: uk.co.companystack/mcp -->
[](https://registry.modelcontextprotocol.io/v0/servers?search=uk.co.companystack)
[](https://www.npmjs.com/package/@companystack/mcp)
[](./LICENSE)
[](https://glama.ai/mcp/connectors/uk.co.companystack/mcp)
An [MCP](https://modelcontextprotocol.io) server that gives Claude, Cursor and other assistants access to UK company data from Companies House through the [CompanyStack API](https://companystack.co.uk/docs): company search and profiles, officers, persons with significant control, filing history, financials parsed from filed accounts, a health score, KYB checks, a register change feed, new incorporations, creditor and payment-risk checks, and your saved company lists. It exposes the same 23 tools as the hosted server.
Two ways to use it:
- **Hosted (nothing to install):** `https://api.companystack.co.uk/mcp` (Streamable HTTP), with your API key in an `X-Api-Key` or `Authorization: Bearer` header, or by signing in with CompanyStack (OAuth) from clients that support it.
- **Local:** `npx -y @companystack/mcp` over stdio, with your key in `COMPANYSTACK_API_KEY`.
You need a CompanyStack API key (it starts with `cs_`). [Sign up free](https://companystack.co.uk/signup?product=api), then create a key on the [API keys page](https://companystack.co.uk/dashboard/keys) and copy it: we show each key once.
## Set up
### Claude Code
```bash
# Local (stdio)
claude mcp add --env COMPANYSTACK_API_KEY=cs_your_key --transport stdio companystack -- npx -y @companystack/mcp
# Hosted (Streamable HTTP)
claude mcp add --transport http companystack https://api.companystack.co.uk/mcp --header "X-Api-Key: cs_your_key"
```
### Claude Desktop
Hosted: add `https://api.companystack.co.uk/mcp` under **Settings → Connectors → Add custom connector** and sign in with CompanyStack.
Local:
Edit `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/`, Windows: `%APPDATA%\Claude\`), then quit and reopen Claude Desktop:
```json
{
"mcpServers": {
"companystack": {
"command": "npx",
"args": ["-y", "@companystack/mcp"],
"env": { "COMPANYSTACK_API_KEY": "cs_your_key" }
}
}
}
```
### Cursor
Add to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):
```json
{
"mcpServers": {
"companystack": {
"command": "npx",
"args": ["-y", "@companystack/mcp"],
"env": { "COMPANYSTACK_API_KEY": "cs_your_key" }
}
}
}
```
Or use the hosted server:
```json
{
"mcpServers": {
"companystack": {
"url": "https://api.companystack.co.uk/mcp",
"headers": { "X-Api-Key": "${env:COMPANYSTACK_API_KEY}" }
}
}
}
```
### VS Code (`.vscode/mcp.json`)
```json
{
"servers": {
"companystack": {
"type": "http",
"url": "https://api.companystack.co.uk/mcp",
"headers": { "X-Api-Key": "${input:companystack_api_key}" }
}
},
"inputs": [
{ "id": "companystack_api_key", "type": "promptString", "description": "CompanyStack API key (cs_...)", "password": true }
]
}
```
### Windsurf (`~/.codeium/windsurf/mcp_config.json`)
```json
{
"mcpServers": {
"companystack": {
"serverUrl": "https://api.companystack.co.uk/mcp",
"headers": { "X-Api-Key": "cs_your_key" }
}
}
}
```
### Any other MCP client
- stdio: command `npx`, arguments `-y @companystack/mcp`, environment `COMPANYSTACK_API_KEY`.
- Streamable HTTP: `https://api.companystack.co.uk/mcp` with header `X-Api-Key: cs_…`.
## Tools
| Tool | What it does | API plan |
| --- | --- | --- |
| `search_companies` | Find companies by name words, status, SIC code, postcode or town; returns company numbers | Free |
| `get_company` | Register profile: status, type, incorporation date, registered office, SIC codes, accounts and confirmation-statement due dates, previous names | Free |
| `get_officers` | Current and resigned directors, secretaries and LLP members | Starter |
| `get_officer_appointments` | A person's other appointments, grouped by company. Matches the name as text, so people who share a name come back together; covers the officer records CompanyStack holds, not the whole register | Starter |
| `get_persons_with_significant_control` | The PSC (beneficial ownership) register for a company | Starter |
| `get_shareholders` | Cap table rebuilt from the company's share filings: holders by class and overall, % of shares and votes, checked against filed statements of capital (the company's own register of members is the legal record) | Free (top three holders); Starter (everything) |
| `get_filing_history` | Companies House filings, newest first, filterable by category | Starter |
| `get_financial_history` | Figures parsed from filed iXBRL accounts, with ratios, trends and signals. Money values are whole pounds (GBP) as filed | Starter |
| `get_health_score` | A rules-based 0–100 indicator with grade, risk level and the signals behind it (not a credit rating) | Starter (Free: a few calls a day where the plan includes them) |
| `get_accounts` | Every year of filed accounts figures held, newest first, with where each year came from (filed, scanned, comparative) and the group or company basis | Starter (Free: a few calls a day where the plan includes them) |
| `screen_companies` | The financial screener: companies by filed figures, growth, SIC, region, town, local authority, incorporation date, overdue filings, Gazette notices and charges | Starter |
| `screen_sanctions` | A company's name, owners and officers against the UK, EU, US and other sanctions lists, with every potential match for human review (a name match is not a finding) | Starter |
| `run_kyb_check` | Know-your-business verification: pass, refer, fail or unable to check (never a pass when a check could not run, for example while the disqualified directors register is not complete), with reason codes. **Uses quota and stores a record on your account** | Starter |
| `list_kyb_checks` | KYB checks already run, without running any more | Starter |
| `get_changes` | Register change feed (companies added, updated and dissolved), cursor-paginated | Starter |
| `new_company_check` | Who is behind a new company and what to check before dealing with it: age, directors and their other appointments, PSCs, first shareholders, how many companies share the registered office postcode, sanctions screening of officers and owners | Free (summary); Starter (the full check) |
| `new_companies` | Incorporations feed, newest first, filterable by SIC code, place and date | Free (latest 10 of one day in the last 7 days); Starter (90 days back) |
| `creditor_pack` | For a company in strike-off or insolvency: what has happened, the deadlines a creditor needs where the notice gives them, the insolvency practitioner and the charges | Starter |
| `payment_risk` | The payment-risk patterns that hold for a company, each with its evidence, rule, source and date | Starter |
| `get_lists` | Your company lists with counts, grades, overdue filings and alerts | Free |
| `create_list` | Create a named list (clients, suppliers, portfolio, prospects) | Free |
| `get_list_companies` | The companies on one list, filterable and sortable | Free |
| `add_companies_to_list` | Add companies to a list (monitored lists alert on changes). Without `list_id`, uses your default list, creating it if needed | Free |
Results come back as compact JSON text, and as `structuredContent` matching each tool's `outputSchema`.
What each plan includes, and its request limits, is on the [pricing page](https://companystack.co.uk/pricing?product=api). Every tool call is one API request against your plan's quota, the same as calling the REST API directly. An account with pay-as-you-go credits can also call tools its plan does not include: each successful call uses 1, 3 or 5 credits, and a failed call uses none. The one exception: `add_companies_to_list` without a `list_id` makes two (it finds or creates your default list first).
## Example prompts
- "Find the company number for Greggs and tell me when its next accounts are due."
- "Who are the directors and beneficial owners of 06450847? Has anything changed recently?"
- "Show me five years of turnover and net assets for this company, and flag anything worrying."
- "What is the health score for SC586124, and which signals pull it down?"
- "Which other companies is the first director of 06450847 involved in?"
- "Run a KYB check on 00445790 for client reference CL-0042; the customer says the company is Tesco PLC."
- "Which companies on my 'Suppliers' list have overdue filings?"
- "Make me a list called Suppliers and add 00445790 and 06450847 to it."
- "Which software companies (SIC 62) with Leeds (LS) postcodes joined the register this week?" (the change feed)
## Errors
Tool errors say what to do next, so the model can tell you:
- **401**: the key is missing or not accepted. Check `COMPANYSTACK_API_KEY`.
- **403 `plan_upgrade_required`**: the tool is not on your plan. The message includes the `upgrade_url`.
- **402 `insufficient_credits`**: not enough prepaid credits for the call; nothing was charged. The message links to Billing.
- **429**: a rate limit was reached. The message gives the seconds to wait (from `Retry-After`). Short waits of up to 5 seconds are retried automatically.
- **5xx**: CompanyStack or Companies House is temporarily unavailable. Reads are retried twice.
## Self-hosting over HTTP
```bash
COMPANYSTACK_API_KEY=cs_your_key npx -y @companystack/mcp --http --port 3333
# → Streamable HTTP at http://127.0.0.1:3333/mcp (bind elsewhere with --host 0.0.0.0)
```
The HTTP server is stateless. Each request can send its own key (`Authorization: Bearer …` or `X-Api-Key`); `COMPANYSTACK_API_KEY` is the fallback. Put it behind TLS if you expose it beyond localhost.
### Programmatic use
```ts
import { createCompanyStackServer, createCompanyStackHandler } from '@companystack/mcp';
const server = createCompanyStackServer({ apiKey: process.env.COMPANYSTACK_API_KEY }); // an McpServer
const handler = createCompanyStackHandler(); // web-standard: handler.fetch(request, { authInfo })
```
## Environment
| Variable | Default | |
| --- | --- | --- |
| `COMPANYSTACK_API_KEY` | none | Your API key (`cs_…`) |
| `COMPANYSTACK_API_URL` | `https://api.companystack.co.uk` | Override for testing |
## Development
```bash
npm ci
npm test # builds, then runs the tests against a mock API (stdio and HTTP included)
npm run inspect # opens the MCP Inspector on the built server
```
## Pricing
- **Free API plan:** £0, 1,000 requests a day, 30 a minute, no card. Search (top 10 results), company profiles, lists and the hosted MCP server; each tool call counts as one request.
- **Starter:** £29/month or £288/year. 10,000 requests a day, with officers, owners (PSC), filing history, every year of filed accounts and health scores.
- **Pay as you go, without a monthly plan:** prepaid credits paid in advance by card from £10 (1,000 credits); £50 buys 5,500 and £200 buys 24,000. A call is paid from credits only when your API plan does not include the endpoint: 1 credit for a standard lookup, 3 for filed accounts, financial figures, group structure and signals, 5 for KYB, the verdict, sanctions and adverse records. You are charged only for a call that answers 200 or 201; errors, refusals, rate limits and timeouts cost nothing. With too few credits a paid call answers `402 insufficient_credits` and nothing is charged.
Current prices and limits: [companystack.co.uk/pricing](https://companystack.co.uk/pricing?product=api). Refunds follow the [refund policy](https://companystack.co.uk/refunds).
## Links
- Developer docs: https://companystack.co.uk/developers/mcp
- OpenAPI specification: https://api.companystack.co.uk/openapi.json
- `llms.txt`: https://companystack.co.uk/llms.txt
- Support: support@companystack.co.uk
## About the data
The data is a copy of public registers (Companies House and others), as CompanyStack holds them. It can be incomplete or out of date. Register details and accounts figures are the company's own filings, shown as filed: CompanyStack does not audit or verify them. The health score is an indicator, not a credit rating, and KYB results support your own due diligence rather than replace it. See [companystack.co.uk/data-sources](https://companystack.co.uk/data-sources).
Contains public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). CompanyStack is not affiliated with or endorsed by Companies House.
## Licence
MIT
TDQS
Scored across 23 tools
Most tools have a clear, distinct purpose, but several pairs genuinely overlap: get_accounts and get_financial_history both return per-year accounts figures with ratios, and new_companies vs new_company_check, search_companies vs screen_companies are easily confused by name. The due-diligence cluster (run_kyb_check, new_company_check, payment_risk, creditor_pack) is distinguishable only after reading long descriptions, so an agent can misselect without care.
Most names follow a verb_noun snake_case pattern (search_companies, get_officers, add_companies_to_list), but there is a noticeable drift to bare noun phrases (creditor_pack, payment_risk) and to near-identical pairs (new_companies / new_company_check). Readable overall, but not a predictable convention.
23 tools is at the heavy end and the descriptions are enormous, making the surface costly to scan. The domain is genuinely broad (search, profiling, due diligence, screening, monitoring, lists), so most tools earn a place, but it borders on overwhelming.
Core read workflows are well covered (search, profile, officers, PSC, shareholders, filings, accounts, health, sanctions, KYB, changes). However list management is a dead end: create_list and add_companies_to_list exist but there is no delete_list, rename/update_list, or remove_companies_from_list, and there is no dedicated charges/mortgages tool despite charges being referenced throughout.