Skip to main content
Glama
CompanyStack MCP server

CompanyStack MCP server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMPANYSTACK_API_KEYYesYour CompanyStack API key (starts with cs_…). Required for the local stdio server; the hosted server uses it (or an equivalent X-Api-Key / Authorization: Bearer header) for authentication.
COMPANYSTACK_API_URLNoOverride for testing; the base URL of the CompanyStack API.https://api.companystack.co.uk

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

CompanyStack gives read access to UK company data from Companies House: company profiles, officers (directors and secretaries of companies; designated members and members of LLPs; general and limited partners of limited partnerships when Companies House lists them), persons with significant control (PSCs, the beneficial-ownership register), filing history, financial figures parsed from filed accounts, a rules-based health score, a KYB (know your business) check, a register change feed and your saved company lists. Start with search_companies to find a company number (8 characters, e.g. 00445790 or SC586124), then call the other tools with it. Check that a search result is the company the user means (name, status, incorporation date) before relying on it. Money values are whole units of the reporting currency (normally GBP, i.e. pounds, not pence or thousands). Which tools work depends on the API plan of the key in use: search, company profiles and lists are on the Free plan; the other tools need Starter or above (the Free plan can also include a small number of get_accounts and get_health_score calls a day). An account with prepaid credits can also call the tools its plan does not include: each call that succeeds uses 1, 3 or 5 credits, a call that fails uses none, and an insufficient_credits error means the balance is too low and nothing was charged. A plan error includes an upgrade_url; a rate-limit error says how many seconds to wait. An answer limited by the plan may carry an upgrade_prompt: pass its offer to the user once, briefly, and carry on with the data you have. Results are compact JSON (also returned as structuredContent). The data is a copy of public registers and can be incomplete or out of date: it supports, and does not replace, professional judgement. Accounts figures and register details are the company's own filings, shown as filed: CompanyStack does not audit or verify them. CompanyStack is not affiliated with or endorsed by Companies House. Contains public sector information licensed under the Open Government Licence v3.0.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_companiesA

Search the Companies House register of UK companies (as held by CompanyStack) by name and/or filters, to find company numbers. query is matched as whole words against the company name (full-text; not prefix or fuzzy matching). Results are ranked, but the company the user means is not always first: check company_name, company_status and date_of_creation before relying on a result, and if it is missing, search again with the fuller registered name (e.g. "greggs plc" rather than "greggs"). Give at least one of query, status, sic_code, postcode or town; filters combine with AND. Returns total (a count, capped for very broad filters), and results with company_number, company_name, company_status, company_type, date_of_creation, registered_office_address, sic_codes, accounts and confirmation-statement due dates, and data_freshness. Available on the Free API plan and above. On the Free plan only the first page is available: at most 10 results, and offset is not applied (the response shows offset 0 and paging_limited: true), so do not page with a Free key; narrow the search with filters instead. Paid plans return up to 100 results per page and page with offset.

get_companyA

Get one UK company's register profile by company number: name, status (active, dissolved, liquidation…), company type, incorporation date (date_of_creation), registered office address, SIC codes with descriptions, accounts (category, last made up to, next due, overdue), confirmation statement (next due, overdue), mortgage/charge counts, previous names, and data_freshness (date of the underlying register data). Available on the Free API plan and above.

get_officersA

List a company's officers — current and resigned directors and secretaries, or an LLP's designated members and members, or a limited partnership's general and limited partners — from Companies House (cached for up to 24 hours). For an LLP, call them designated members and members, never directors; designated members carry the LLP's filing duties. Returns total_results, active_count, resigned_count and items with officer_id, name, officer_role, appointed_on, resigned_on (null if current), nationality, occupation, country_of_residence, date_of_birth (month and year only, as Companies House publishes) and correspondence address. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_officer_appointmentsA

Find the company appointments (director, secretary, LLP member) held by people of a given name, grouped by company, with current and resigned positions. Use it to see which other companies a director is involved in: pass the name as get_officers returned it (e.g. "SMITH, Jane Elizabeth"). The whole Companies House register of officers is searched; people whose name holds every word given (in any order) are kept, and the appointments of up to 5 of them are read. Different people can share a name: each position carries officer_id and officer_name, and people lists each person with their month and year of birth. Tell the user which person each appointment belongs to, and match the date of birth against get_officers before treating two appointments as the same person. people_truncated is true when more people matched than were read; people_unavailable counts people who could not be read just now; other_names_found lists names the search found that do not hold every word given (often Companies House's own spelling): call again with one of them. Returns search_name, total_appointments, active_appointments, resigned_appointments, companies_count, companies (company_number, company_name, company_status, sic_code, positions with officer_id, officer_name, officer_role, appointed_on, resigned_on and active), people, people_matched, people_truncated, people_unavailable and other_names_found. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_persons_with_significant_controlA

List the persons with significant control (PSCs) registered for a company — the UK beneficial-ownership register: individuals, corporate entities and legal persons who own or control it. Returns total, active (not ceased) and items with name, kind (e.g. individual-person-with-significant-control, corporate-entity-person-with-significant-control), natures_of_control (e.g. ownership-of-shares-75-to-100-percent, voting-rights-25-to-50-percent, right-to-appoint-and-remove-directors), nationality, country_of_residence, notified_on, ceased_on and address. From CompanyStack's copy of the PSC register. An empty list does not mean nobody owns the company: it may have filed a PSC statement instead (for example that it knows of no registrable person), which the REST endpoint GET /psc/company/{number}/statements returns in words with its date; a statement that is not about a person is not a PSC. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_shareholdersA

Who holds a company's shares: the cap table rebuilt from the documents the company filed at Companies House (subscribers on incorporation, shareholder lists in annual returns and confirmation statements, returns of allotment and other capital forms). Returns each holder with shares and % by class and across all classes (holders), % of votes where every class's voting rights are filed, as_at (the date of the shareholder list used), confirmed_to, and links to the filings. Every list is checked against a filed statement of capital: display is fact, as_filed (the latest shareholder list as the company filed it: quote it as "as filed on" its date, with heading and totals_note when present) or withheld (no shareholder list on record; display_note says why when the company has no shareholders by its nature), and discrepancies lists where the company's filings disagree. This is a reconstruction from public filings; the company's own register of members is the legal record, so say so when quoting it. status "building" means the first reconstruction is running: call again after retry_after_seconds. Free keys get the top three holders, holder_count and top3_pct; every paid plan (Starter, Business and Enterprise) gets everything. An LLP, limited partnership or Scottish partnership has no share capital: the answer is status "not_applicable" with a message, so do not call again. Available on the Free API plan and above.

get_filing_historyA

A company's Companies House filing history, newest first (cached for up to 24 hours). Each item has transaction_id, category (e.g. accounts, confirmation-statement, officers, mortgage), subcategory, description, filing_date, action_date, paper_filed and pages. Returns total_count, items_returned and a page of items. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_financial_historyA

Financial figures read by software from the accounts a company filed at Companies House (iXBRL data tags, or OCR of PDF and paper filings), one entry per accounts period (newest first): turnover, gross_profit, operating_profit, profit_before_tax, profit_after_tax, total_assets, current_assets, cash_at_bank, debtors, current_liabilities, total_liabilities, net_assets, num_employees; ratios (current_ratio, cash_ratio, gearing, net_margin_pct, turnover_per_employee); per-metric trends (change_pct, cagr_pct, direction) and signals (e.g. NEGATIVE_NET_ASSETS, CASH_DECLINING, CURRENT_RATIO_BELOW_ONE). UNITS: money values are whole units of the reporting currency in the currency field, normally GBP — i.e. pounds sterling, not pence and not thousands. null means the figure was not published: small and micro-entity companies usually file filleted accounts with no turnover or profit. Companies that file only PDF or group accounts can have no periods. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_health_scoreA

CompanyStack Health Score for a company: a rules-based indicator from 0 to 100 (higher is healthier) built from public records — registration status and age, filing timeliness, ownership stability, secured borrowing (charges), financial strength from the company's filed accounts (net assets, net current liabilities, losses and how long they have persisted), mass-registration registered offices, sector survival norms, regulator registrations and London Gazette insolvency notices. Returns overall_score, grade (A+ ≥90, A ≥80, B+ ≥70, B ≥60, C+ ≥50, C ≥40, D ≥30, F <30), risk_level (very_low ≥75, low ≥60, medium ≥45, high ≥30, critical <30), weighted dimensions with the signals behind each score, red_flags, positive_signals, score_caps (ceilings applied, e.g. persistent net liabilities), check_items (not scored: other companies whose PSC has the same name and month and year of birth that failed, and disqualified directors register entries with the same name and month and year of birth as a PSC, which are possible matches to review unless the entry also names this company; each may be a different person, so report it as the stated fact only, never as the person's record), score_confidence (low when no accounts figures are held — say so to the user), excluded_dimensions (and why), methodology, data_as_of and data_coverage. It is NOT a credit rating or a probability of default and has not been statistically validated against outcomes; describe it to users as an indicator. A UK establishment (BR), overseas company (FC, SF, NF) or overseas entity (OE) is not rated: overall_score, grade and risk_level are null and not_rated gives a code and the reason; tell the user it is not rated and why, and never give it a grade or a risk level. Needs the Starter API plan or above. The Free plan can include a small number of calls a day to get_accounts and get_health_score together: a preview_limit_reached error means they are used for today (they reset at 00:00 UTC), and plan_upgrade_required means the Free plan has none.

get_accountsA

Every year of accounts figures CompanyStack holds for a company, newest first, read from the accounts it filed at Companies House, with ratios and where each year came from: source.kind is filed (electronic accounts), scanned (PDF or paper read by OCR), comparative (the prior-year column of the next year's accounts) or unverified, with source.quality and flags from the plausibility checks. A company that heads a group files its own figures (basis company) and the group's (basis group); by default one row per year is returned, the group figures where held. Figures include turnover, profit, total assets, cash, current and total liabilities, net assets and employees. UNITS: whole units of the currency filed (normally GBP pounds, not pence or thousands); null means not filed (small and micro companies often omit turnover and profit). The figures are the company's own, as filed: not audited or verified by CompanyStack. Needs the Starter API plan or above. The Free plan can include a small number of calls a day to get_accounts and get_health_score together: a preview_limit_reached error means they are used for today (they reset at 00:00 UTC), and plan_upgrade_required means the Free plan has none.

screen_companiesA

The financial screener: UK companies matching every filter given, for prospect lists, sector and lending screens. Filters on the latest filed accounts (turnover, net assets, profit, employees, total assets: whole pounds), year-on-year turnover growth, SIC code, region, town or ONS local authority, incorporation date, overdue accounts, Gazette notices and outstanding charges. When a figure is filtered or sorted on, each company is judged on its latest filed accounts (basis_code accounts); otherwise every company on the register counts, with or without accounts (register). Give at least one filter. Returns total (capped at 10,000), filters_applied, notes and results with company_number, company_name, status, SIC, the latest figures, town, region, incorporation date, due dates and overdue days, outstanding charges and the latest Gazette notice. Figures that fail plausibility checks and companies at mass-registration addresses are left out. Page with offset. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

screen_sanctionsA

Screen a company's name and previous names, its current owners (persons with significant control) and its current officers against the official sanctions lists CompanyStack loads, each from its official publisher (the UK Sanctions List and the EU, US, Canadian, Australian, New Zealand, Japanese and French lists). Returns verdict (with verdict_label and summary), the subjects screened, matches (each with what agreed and disagreed: birth month and year, nationality or country, registration numbers; the reasons; and a link to the official entry) and ruled_out. A NAME MATCH IS NOT A FINDING THAT ANYONE IS SANCTIONED, and no match is not a clearance: report potential matches as needing human review. lists shows the list versions screened; a list that could not be loaded is in lists_not_screened and was not checked. Nothing is stored (run_kyb_check stores a record). Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

run_kyb_checkA

WARNING: every call counts against the API key's request quota and permanently stores a KYB check record on the account, as due-diligence evidence. Only run it when the user asks to verify a company; do not run it speculatively or repeat it for the same company — use list_kyb_checks to find earlier results. Runs structured know-your-business checks against public registers: existence and status, name and registered postcode match, age, overdue accounts and confirmation statement, Gazette company insolvency notices, PSC register (a company with no PSC is checked for the statement it filed instead: NO_REGISTRABLE_PERSON_STATED is a warning quoting the company's own statement, never a clean result; PSC_STATEMENT_OPEN_QUESTION is a refer; PSC_STATEMENTS_UNAVAILABLE is unable_to_check) and discrepancies against the beneficial owners supplied, named directors, disqualified-director screening (unable_to_check while CompanyStack's copy of the register is not complete and current), optional ECCTA identity verification, registered-address density and net assets. Returns check_id, outcome (pass, refer, fail, or unable_to_check when a check that matters could not run, for example the officers could not be read from Companies House or a source the check needs is missing, incomplete or out of date: never a pass, run it again later), summary, reason_codes (e.g. COMPANY_DISSOLVED, NAME_MISMATCH, PSC_DISCREPANCY, ACCOUNTS_OVERDUE, OFFICERS_UNAVAILABLE), warnings, per-check results with evidence, facts.charges (outstanding and satisfied charges as at a date: information only, not a check), data_as_of, checked_at and a disclaimer. Name matches without a full date of birth are possible matches only; the result supports, and does not replace, the user's own customer due diligence. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

list_kyb_checksA

List KYB checks already run on this account, newest first, without running any more (no stored record is created): check_id, company_number, company_name, reference, outcome (pass, refer, fail, unable_to_check), reason_codes and checked_at. Page with next_cursor. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_changesA

Changes to the UK company register recorded by CompanyStack from the monthly snapshot import, so an event can lag the change by up to about five weeks, oldest first, cursor-paginated: each event has id, company_number, change_type (added, updated, dissolved, removed_from_snapshot, missing_from_snapshot), source, occurred_at and a company summary. Without cursor the feed starts at since (default 7 days ago). Store next_cursor and pass it back to get only newer events. Each call scans at most 20,000 events, so with narrow filters a page can be empty while has_more is true — keep paging. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

new_company_checkA

Who is behind a new UK company and what to check before dealing with it, from the Companies House register: age, the directors and each director's other appointments (matched by Companies House officer id, with how many of those companies were dissolved or went into insolvency; same-name matches against PSC records are listed only as "possible" and may be a different person), persons with significant control or the statement that there are none, the first shareholders at incorporation with percentages (when the incorporation filing has been read), how many companies share the registered office postcode (flagged at 100 or more: formation agents, accountants, virtual offices), sanctions screening of officers and owners, and the first accounts and confirmation statement due dates. For new companies: incorporated less than 24 months ago with no accounts filed; for others eligible is false. Report facts as stated; a shared address or a director's dissolved companies is not a finding of wrongdoing, and a sanctions name match is not a finding that anyone is sanctioned. Free API plan: the summary (age, shared address, PSCs or the no-PSC statement, the three largest first shareholders with the number of shareholders and the share the three hold, first accounts due, the number of directors' other appointments) for 25 companies a day. Starter and above: the full check, with every shareholder.

new_companiesA

Companies incorporated in the UK, newest first, as they reach the Companies House register. Each result has company_number, company_name, company_type, incorporation_date, sic_codes, registered office post town, postcode and region, how many companies share the postcode, the directors and how many hold appointments at other companies (status not_read for companies not read yet), PSC count, and first accounts and confirmation statement due dates. Filters combine with AND. Directors' names are published in their business capacity: do not suggest using them for unsolicited marketing to individuals. Free API plan: the latest 10 companies of one day (date within the last 7 days), with name, number, incorporation date, SIC codes and postcode only; filters and paging need Starter (90 days back) or Business (2 years back).

creditor_packA

For a UK company with a proposal to strike off, liquidation, administration, receivership or a voluntary arrangement on the register, or a petition to wind up, a winding-up order or an appointment of liquidators or administrators in the last 12 months): what someone the company owes money needs. What has happened, with dates from the register, the filing history and Gazette notices; the deadlines (objecting to a strike-off: at least 2 weeks before the strike-off date, which is 2 months from the first Gazette notice, or 28 days in some compulsory cases, as the notice says; a claim by the date in a notice to creditors; the last date for proving before a dividend), each worked out only where the notice gives or implies it, else status check_notice with the notice linked; the insolvency practitioner as the notice and Companies House name them; the company's charges (who is entitled to each, its dates and what it secures, outstanding first, as at a date; when charges.available is false they could not be read, which is not a statement that there are none; no total secured amount is given); the controllers' other current companies (a person matched by name and month and year of birth is a possible match only and may be a different person); and plain steps linking to GOV.UK and the Insolvency Service. For other companies applies is false. Report dates and facts as stated, say a date must be checked against the notice where status is check_notice, and say this is general information, not legal advice. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

payment_riskA

The patterns creditors check that hold for a UK company, each with its evidence, rule, source and date: net assets and cash falling, creditors rising against current assets, accounts or confirmation statement overdue, earlier figures restated downward, controllers' other companies in insolvency or strike-off (possible matches by name and month and year of birth, which may be different people), a registered office where many companies have closed or are closing, a change of control in the last 12 months, a petition to wind up, a registered office removed by Companies House, and a registered office moved in the last 12 months to an address used in insolvencies. checked lists every rule looked at; accounts_quality holds the accounts-quality flags when they are on. There is no score and no verdict: report the patterns as patterns with their evidence, never as a prediction that the company will fail, and note that many companies show one or more and carry on trading. reported_payment_practices, present only for a company that has filed a payment practices report with the government (large companies and LLPs must, most companies need not, so its absence says nothing), holds the company's own reported figures: the reporting period, the date filed, the average days to pay, the share of invoices paid within 30 days, in 31 to 60 days and later than 60 days, and the share not paid within agreed terms. Give them as figures the company reported to the government for that period, with the period and the filing date, never as a rating or as your own or CompanyStack's assessment. Needs the Starter API plan or above (a Free key gets a plan_upgrade_required error with an upgrade_url).

get_listsA

The company lists on this account (e.g. clients, suppliers, a lending portfolio, prospects; the watchlist is the default list "My watchlist"). Each list has id, name, purpose, monitoring settings and stats: company_count, status mix, health-grade mix, overdue filings, unread alerts and the next deadline. Also returns the plan's list limits and usage. Use a list id with get_list_companies or add_companies_to_list; create_list makes another. Available on the Free API plan and above.

create_listA

Create a named company list on the account, e.g. clients, suppliers, a lending portfolio or prospects. Lists are monitored for changes by default. Returns list (id, name, purpose, monitor) with the plan's limits and usage; pass list.id to add_companies_to_list. The number of lists is capped by plan (get_lists shows the limit): at the cap the API answers list_limit_reached, so add to an existing list instead. A name already in use answers list_name_taken. To add companies without choosing a list, call add_companies_to_list without list_id. Available on the Free API plan and above.

get_list_companiesA

The companies on one of the account's lists, each with status, health grade and score, last accounts date, next filing deadline, overdue flag, latest change, unread alerts, latest KYB outcome, and the user's reference, tags and note. Filter and sort server-side. Available on the Free API plan and above.

add_companies_to_listA

Add companies to one of the account's lists by company number (monitored lists then alert on changes). Without list_id the companies go on the account's default list, "My watchlist", which is created if the account has none; that costs one extra API request. Companies already on another of the account's lists use none of the plan's company cap; supplying a reference, note or tags for a company already on the list updates it. Returns list_id, added, updated, already_on_list, not_found and over_limit (numbers that did not fit the plan's cap), with companies_used and companies_limit. Available on the Free API plan and above. The number of companies across all lists is capped by plan.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 23 tools

Disambiguation3/5

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.

Naming Consistency3/5

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.

Tool Count3/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues