# FileClerk API

FileClerk gives UK company filing deadlines, filed accounts figures, filing calculators and iXBRL validation. FileClerk is independent of Companies House and HMRC.

Every read works with no key: 60 company lookups, 600 name searches, 5 scanned reads and 2 exports per hour per IP. A refused call answers 429 with a `Retry-After` header. A free key raises lookups to 1,000 per hour: see [auth.md](https://fileclerk.co.uk/auth.md).

## REST

- `GET /api/v1/companies/search`: Find a company number from a name: up to 20 matches, active companies first.
- `GET /api/v1/companies/{number}/deadlines`: Every deadline of one company with its status, basis and source, the nearest date, and the company facts. `view=summary` is about a quarter of the size of the full report.
- `GET /api/v1/companies/{number}/finances`: Figures from the last 6 filed annual accounts, in whole pounds.
- `GET /api/v1/companies/{number}/tools`: The register checks for one company: the 2028 software filing rule, strike-off, company size, and the accounts penalty if filed today.
- `POST /api/v1/tools/deadlines`: The first deadlines of a company from its incorporation date, with no company number.
- Calculators, each a POST with JSON: `/api/v1/tools/penalties` (late filing penalties and interest), `/api/v1/tools/corporation-tax` (Corporation Tax on a profit), `/api/v1/tools/s455` (s455 tax on a director's loan), `/api/v1/tools/income-tax` (take-home pay from gross pay), `/api/v1/tools/director-pay` (tax on a director's salary and dividends), `/api/v1/tools/size` (micro, small, medium or large), `/api/v1/tools/strike-off` (whether a company can apply to be struck off), `/api/v1/tools/2028` (which companies must move to software filing by 1 April 2028).
- `POST /api/v1/validate`: iXBRL accounts checked before filing. Send the XHTML document (up to 10 MB) with `Content-Type: application/xhtml+xml`.

A company number has eight digits, or two letters and six digits. Dates are ISO 8601 calendar dates in Europe/London. Amounts are whole pounds, except a field named `pence` or ending in `_pence`. Corporation Tax dates are estimates, and each one says so in `basis` and `estimate`.

The [OpenAPI document for agents](https://fileclerk.co.uk/api/v1/openapi-agent.json) holds the 5 reads above with their schemas. The [full OpenAPI document](https://fileclerk.co.uk/api/v1/openapi.json) lists every operation. The [health endpoint](https://fileclerk.co.uk/api/health) reports the deployed version. [llms.txt](https://fileclerk.co.uk/llms.txt) has a real example answer for each read.

## MCP

Connect to `https://fileclerk.co.uk/mcp` with Streamable HTTP, no key. Each read above is a tool: `search_companies`, `get_company_deadlines`, `get_company_finances`, `run_company_tools`, `calculate_deadlines`. `tools/list` returns every tool with its input schema. For example, call `get_company_deadlines` with `{"company_number":"15557917"}`.
