Plug UK public data into your AI agent.
A free Model Context Protocol server with read-only tools for GOV.UK guidance, legislation, Companies House, postcodes, bank holidays, crime, food hygiene, carbon intensity and ONS datasets. Every result says where it came from and under which licence.
https://mybritain.chat/mcp Connect from your terminal.
One command adds mybritain.chat to Claude Code. Any client that speaks MCP over HTTP works the same way.
Example output, illustrative.
How to read it
https://mybritain.chat/mcp is one Streamable HTTP endpoint that answers JSON-RPC with JSON. There is nothing else to configure and no key to get. mybritain is just the local name you give the server.
What every result contains
-
source_urlthe official page or API the data came from -
source_namethe publisher, e.g. Companies House -
licencereuse terms, usually the Open Government Licence v3.0 -
retrieved_atwhen it was fetched (UTC) -
cachedwhether it came from our short-lived cache -
datathe result itself
Or call it with curl.
It is plain JSON-RPC over HTTPS. List the tools:
Then call one. Tool results come back as text and as structuredContent; errors come back with isError: true and a plain message.
Connect your client.
- Settings → Connectors → Add custom connector, name it mybritain.chat and paste the server URL.
- Or, on a plan without custom connectors, add this to claude_desktop_config.json and restart Claude. mcp-remote bridges the HTTP server to stdio.
- Run this once in a terminal.
- Check it with claude mcp list.
- Cursor Settings → MCP → Add new MCP server,
- or add this to ~/.cursor/mcp.json and reload.
- Settings → Apps & Connectors → Advanced → turn on Developer mode.
- Create a connector named mybritain.chat with the server URL and No authentication.
- xAI API: add mybritain.chat as a remote MCP tool in your request.
- Grok calls the tools server-side and returns cited answers.
Mistral and OpenRouter.
Use the tools from Le Chat, from Mistral's Agents API, or from any model on OpenRouter.
- Le Chat → Connectors → + Add Connector → Custom MCP Connector tab.
- Connector name mybritain, paste the server URL, then Connect. Authentication: none.
- Switch the connector on in the tools menu of a new chat.
- Register the server once as a Mistral connector, connect it with empty credentials,
- then pass it in tools of a conversation or an agent. Mistral calls the tools for you.
- OpenRouter has no hosted MCP: list our tools with the MCP SDK, pass them as tool definitions
- to any OpenRouter model, and run each tool call through the MCP session. TypeScript: the @openrouter/mcp package does this for you.
Open-source clients.
Every client below speaks Streamable HTTP, so it connects straight to the URL. For a client that only runs local (stdio) servers, bridge with npx -y mcp-remote https://mybritain.chat/mcp.
- Save as .continue/mcpServers/mybritain.yaml in your workspace.
- MCP tools work in Continue's agent mode.
- MCP Servers → Remote Servers: name mybritain, the server URL, transport Streamable HTTP.
- Or add this to cline_mcp_settings.json, or run: cline mcp add mybritain https://mybritain.chat/mcp --transport http --yes
- Start a session with the extension, or goose configure → Add Extension →
- Remote Extension (Streamable HTTP) to keep it. Desktop: Extensions → Add custom extension.
- Add to librechat.yaml and restart LibreChat,
- or create it in MCP Settings (Streamable HTTP, no authentication).
- Open WebUI 0.6.31+: Admin → Integrations → External Tool Servers → + Add Connection, Type MCP (Streamable HTTP), the server URL.
- Older versions, or if you prefer OpenAPI: run mcpo and add http://localhost:8000 as an OpenAPI tool server. The version pins avoid a current mcpo incompatibility with MCP SDK 2 and new FastAPI.
- Settings → AI → MCP Servers → Add Server → Add Remote Server,
- or add this to your settings.json (zed: open settings file).
- Program tab → Install → Edit mcp.json (LM Studio 0.3.17+, Cursor's format).
- Pick a model with good tool use; small local models may ignore tools.
- Test the server from a terminal (Node 22.19+).
- For the web UI: npx @modelcontextprotocol/inspector --server-url https://mybritain.chat/mcp --transport http
14 tools, all read-only
Open a tool to see its arguments, a copyable curl call and a real, shortened result.
GOV.UK & law
govuk_searchSearch GOV.UK guidance, services and forms. Returns titles, short descriptions, links and the owning department.
Arguments
-
queryWhat to look for, e.g. 'skilled worker visa salary' required -
countNumber of results
What comes back
Each result is a GOV.UK page, ranked like the GOV.UK site search, with its description and link.
{
"source_name": "GOV.UK Search API",
"source_url": "https://www.gov.uk/search/all?keywords=register+as+a+sole+trader&order=relevance",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:36+00:00",
"cached": false,
"data": {
"total": 10582,
"results": [
{
"title": "Become a sole trader",
"description": "Become a sole trader with HM Revenue and Customs - your legal responsibilities if you ru…",
"url": "https://www.gov.uk/become-sole-trader",
"metadata": []
},
{
"title": "Set up as a sole trader: step by step",
"description": "What you need to do if you set up as a sole trader - check your employment status, under…",
"url": "https://www.gov.uk/set-up-as-sole-trader",
"metadata": []
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
govuk_contentRead the current text of one GOV.UK page by path or URL (from govuk_search), with its last update date and parts.
Arguments
-
pathGOV.UK path or URL, e.g. /skilled-worker-visa required -
max_charsMaximum characters of page text
What comes back
The current text of the page (trimmed to max_chars), its last update date and, for guides, links to each part.
{
"source_name": "GOV.UK Content API",
"source_url": "https://www.gov.uk/skilled-worker-visa",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:36+00:00",
"cached": false,
"data": {
"title": "Skilled Worker visa",
"description": "Apply for a Skilled Worker visa (formerly a Tier 2 General work visa) if you’ve been off…",
"document_type": "guide",
"public_updated_at": "2024-10-31T17:00:39+00:00",
"url": "https://www.gov.uk/skilled-worker-visa",
"parts": [
{
"title": "Overview",
"url": "https://www.gov.uk/skilled-worker-visa/overview"
},
{
"title": "Your job",
"url": "https://www.gov.uk/skilled-worker-visa/your-job"
},
"…"
],
"text": "## Overview\n A Skilled Worker visa allows you to come to or stay in the UK to do an elig…",
"text_truncated": true
}
} Real output from this server, shortened (lists cut to 2 items).
legislation_searchSearch legislation.gov.uk (The National Archives) by words in the title: Acts and statutory instruments for the UK, Scotland, Wales and Northern Ireland.
Arguments
-
queryWords in the title, e.g. 'Renters' required -
typeall, primary, secondary, ukpga, uksi, asp, ssi, asc, wsi, nia or nisr -
yearOnly this year -
limitNumber of results
What comes back
Acts and instruments whose title matches, with the canonical legislation.gov.uk id, year and number.
{
"source_name": "legislation.gov.uk (The National Archives)",
"source_url": "https://www.legislation.gov.uk/ukpga?title=Employment+Rights",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:37+00:00",
"cached": false,
"data": {
"results": [
{
"title": "Employment Rights Act 2025",
"url": "https://www.legislation.gov.uk/id/ukpga/2025/36",
"updated": "2026-10-30T15:58:39Z",
"year": "2025",
"number": "36",
"type": "UnitedKingdomPublicGeneralAct"
},
{
"title": "Employment Rights (Dispute Resolution) Act 1998",
"url": "https://www.legislation.gov.uk/id/ukpga/1998/8",
"updated": "2024-05-04T13:55:10Z",
"year": "1998",
"number": "8",
"type": "UnitedKingdomPublicGeneralAct"
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
Everyday
bank_holidaysOfficial UK bank holidays from GOV.UK for England and Wales, Scotland or Northern Ireland.
Arguments
-
divisionengland-and-wales, scotland or northern-ireland -
yearOnly this year -
upcoming_onlyOnly the next holidays
What comes back
Bank holiday dates and names for the chosen nation; notes such as 'Substitute day' when they apply.
{
"source_name": "GOV.UK bank holidays",
"source_url": "https://www.gov.uk/bank-holidays.json",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:37+00:00",
"cached": false,
"data": {
"division": "scotland",
"events": [
{
"date": "2026-11-30",
"title": "St Andrew’s Day",
"notes": ""
},
{
"date": "2026-12-25",
"title": "Christmas Day",
"notes": ""
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
postcode_lookupLook up a UK postcode: country, region, local council, ward, parliamentary constituency and coordinates.
Arguments
-
postcodeUK postcode, e.g. SW1A 2AA required
What comes back
Which council, ward, constituency and region a postcode is in, plus its coordinates.
{
"source_name": "Postcodes.io (ONS Postcode Directory)",
"source_url": "https://api.postcodes.io/postcodes/SW1A2AA",
"licence": "OGL v3.0 (ONS, OS, Royal Mail data); postcodes.io MIT",
"retrieved_at": "2026-11-11T00:31:37+00:00",
"cached": false,
"data": {
"postcode": "SW1A 2AA",
"country": "England",
"region": "London",
"admin_district": "Westminster",
"admin_county": null,
"admin_ward": "St James's",
"parish": "Westminster, unparished area",
"parliamentary_constituency": "Cities of London and Westminster",
"nhs_ha": "London",
"…": "6 more fields"
}
} Real output from this server, shortened (lists cut to 2 items).
police_street_crimeStreet-level crimes within about a mile of a postcode or point, by category, from data.police.uk (England, Wales and Northern Ireland). Latest month unless one is given.
Arguments
-
postcodeUK postcode -
latLatitude -
lngLongitude -
monthYYYY-MM, optional
What comes back
Count of street-level crimes within about a mile for the latest published month, by category, with a few examples.
{
"source_name": "data.police.uk",
"source_url": "https://data.police.uk/api/crimes-street/all-crime?lat=51.50101&lng=-0.14156&date=2026-09",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:38+00:00",
"cached": false,
"data": {
"month": "2026-09",
"radius": "about 1 mile",
"total": 2929,
"note": null,
"by_category": {
"other-theft": 541,
"violent-crime": 501,
"theft-from-the-person": 472,
"anti-social-behaviour": 412,
"shoplifting": 403,
"public-order": 164,
"drugs": 138,
"vehicle-crime": 92,
"robbery": 77,
"…": "5 more fields"
},
"sample": [
{
"category": "anti-social-behaviour",
"street": "On or near Buckingham Gate",
"outcome": null
},
{
"category": "anti-social-behaviour",
"street": "On or near Supermarket",
"outcome": null
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
food_hygiene_searchFood hygiene ratings from the Food Standards Agency for restaurants, cafés, shops and takeaways.
Arguments
-
nameBusiness name -
addressTown, street or postcode -
limitNumber of results
What comes back
Businesses with their food hygiene rating (0 to 5, or pass/improvement in Scotland), rating date and council.
{
"source_name": "Food Standards Agency ratings API",
"source_url": "https://ratings.food.gov.uk/search?name=Greggs&address=Leeds",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:39+00:00",
"cached": false,
"data": {
"results": [
{
"name": "Greggs",
"type": "Restaurant/Cafe/Canteen",
"address": "15 Leeds Skelton Lake Services, Lakeside Way, Skelton Gate, Leeds, LS9 0AS",
"rating": "5",
"rating_date": "2024-09-05",
"scheme": "FHRS",
"local_authority": "Leeds",
"url": "https://ratings.food.gov.uk/business/1725414"
},
{
"name": "Greggs PLC",
"type": "Restaurant/Cafe/Canteen",
"address": "Primark, 342 Trinity Leeds, Albion Street, Leeds, LS1 5AT",
"rating": "5",
"rating_date": "2024-07-17",
"scheme": "FHRS",
"local_authority": "Leeds",
"url": "https://ratings.food.gov.uk/business/1641802"
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
carbon_intensityCurrent carbon intensity of electricity for Great Britain, or a region by GB postcode, from the NESO Carbon Intensity API.
Arguments
-
postcodeOptional GB outcode or postcode, e.g. SW1A
What comes back
Forecast grams of CO2 per kWh for the current half hour, its index (very low to very high) and the generation mix.
{
"source_name": "Carbon Intensity API (NESO)",
"source_url": "https://api.carbonintensity.org.uk/regional/postcode/EH1",
"licence": "CC BY 4.0",
"retrieved_at": "2026-11-11T00:31:40+00:00",
"cached": false,
"data": {
"region": "South Scotland",
"dno": "SP Distribution",
"from": "2026-11-11T00:00Z",
"to": "2026-11-11T00:30Z",
"forecast_gco2_per_kwh": 0,
"index": "very low",
"generation_mix_percent": {
"biomass": 0,
"coal": 0,
"imports": 0,
"gas": 0,
"nuclear": 56.7,
"other": 0,
"hydro": 0,
"solar": 0,
"wind": 43.3
}
}
} Real output from this server, shortened (lists cut to 2 items).
Statistics
ons_search_datasetsFind Office for National Statistics datasets by keyword (inflation, population, wellbeing, labour market…).
Arguments
-
queryKeywords, e.g. 'cpih' or 'population' required -
limitNumber of results
What comes back
ONS datasets matching the words, with links to the dataset page and to its latest version in the API.
{
"source_name": "ONS API (beta)",
"source_url": "https://www.ons.gov.uk/search?q=cpih",
"licence": "Open Government Licence v3.0",
"retrieved_at": "2026-11-11T00:31:40+00:00",
"cached": false,
"data": {
"total": 2,
"results": [
{
"id": "cpih01",
"title": "Consumer Prices Index including owner occupiers' housing costs (CPIH)",
"description": "CPIH is the most comprehensive measure of inflation. It extends CPI to include a measure…",
"last_updated": "2026-02-18T10:25:05.825Z",
"url": "https://www.ons.gov.uk/datasets/cpih01",
"latest_version_api": "https://api.beta.ons.gov.uk/v1/datasets/cpih01/editions/time-series/versions/67"
},
{
"id": "generational-income",
"title": "Generational income: The effects of taxes and benefits",
"description": "The effects of direct and indirect taxation and benefits received in cash or kind on hou…",
"last_updated": "2022-09-15T12:24:21.363Z",
"url": "https://www.ons.gov.uk/datasets/generational-income",
"latest_version_api": "https://api.beta.ons.gov.uk/v1/datasets/generational-income/editions/time-series/version…"
}
]
}
} Real output from this server, shortened (lists cut to 2 items).
Companies House
ch_search_companiesSearch the Companies House register by company name or number. Returns numbers, status, type and address.Companies House key held by the server
Arguments
-
queryCompany name or number required -
limitNumber of results
What comes back
Matching companies with number, status (active, dissolved…), type and registered address.
{
"source_name": "Companies House Public Data API",
"source_url": "https://find-and-update.company-information.service.gov.uk/search/companies?q=Predictive…",
"licence": "Companies House public register data (OGL v3.0)",
"retrieved_at": "2026-11-11T00:31:41+00:00",
"cached": false,
"data": {
"total": 10000,
"results": [
{
"company_number": "14857334",
"name": "PREDICTIVE LABS LTD",
"status": "active",
"type": "ltd",
"incorporated": "2023-05-09",
"ceased": null,
"address": "155 Minories Street, Suite 275, London, London, United Kingdom, EC3N 1AD",
"url": "https://find-and-update.company-information.service.gov.uk/company/14857334"
},
{
"company_number": "08799488",
"name": "AD PREDICTIVE SERVICES LIMITED",
"status": "active",
"type": "ltd",
"incorporated": "2013-12-03",
"ceased": null,
"address": "4 Capricorn Centre, Cranes Farm Road, Basildon, Essex, SS14 3JJ",
"url": "https://find-and-update.company-information.service.gov.uk/company/08799488"
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
ch_get_companyCompany profile from Companies House: status, type, incorporation date, registered office, SIC codes, and next accounts and confirmation statement due dates.Companies House key held by the server
Arguments
-
company_numberCompanies House company number, 8 characters, e.g. 00445790 or SC123456 required
What comes back
The company profile: status, incorporation date, registered office, SIC codes and when accounts and the confirmation statement are next due.
{
"source_name": "Companies House Public Data API",
"source_url": "https://find-and-update.company-information.service.gov.uk/company/00445790",
"licence": "Companies House public register data (OGL v3.0)",
"retrieved_at": "2026-11-11T00:31:41+00:00",
"cached": false,
"data": {
"company_number": "00445790",
"name": "TESCO PLC",
"status": "active",
"type": "plc",
"jurisdiction": "england-wales",
"incorporated": "1947-11-27",
"ceased": null,
"registered_office": "Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA, United Kingdom",
"sic_codes": [
"47110"
],
"…": "8 more fields"
}
} Real output from this server, shortened (lists cut to 2 items).
ch_get_officersDirectors and secretaries of a company, with appointment and resignation dates.Companies House key held by the server
Arguments
-
company_numberCompanies House company number, 8 characters, e.g. 00445790 or SC123456 required -
limitNumber of officers -
active_onlyHide resigned officers
What comes back
Directors and secretaries with appointment and resignation dates. Dates of birth are not returned.
{
"source_name": "Companies House Public Data API",
"source_url": "https://find-and-update.company-information.service.gov.uk/company/00445790/officers",
"licence": "Companies House public register data (OGL v3.0)",
"retrieved_at": "2026-11-11T00:31:41+00:00",
"cached": false,
"data": {
"company_number": "00445790",
"active_count": 12,
"resigned_count": 63,
"officers": [
{
"name": "TAYLOR, Christopher Jon",
"role": "secretary",
"appointed": "2025-04-14",
"resigned": null,
"nationality": null,
"occupation": null,
"country_of_residence": null
},
{
"name": "BECKER, Wendy Mira",
"role": "director",
"appointed": "2026-11-01",
"resigned": null,
"nationality": "British",
"occupation": null,
"country_of_residence": "United Kingdom"
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
ch_get_filing_historyRecent filings of a company (accounts, confirmation statements, officer changes) with links to the PDFs.Companies House key held by the server
Arguments
-
company_numberCompanies House company number, 8 characters, e.g. 00445790 or SC123456 required -
categoryOptional: accounts, confirmation-statement, officers, capital… -
limitNumber of filings
What comes back
Recent filings, newest first, with type, date and a link to the document.
{
"source_name": "Companies House Public Data API",
"source_url": "https://find-and-update.company-information.service.gov.uk/company/00445790/filing-history",
"licence": "Companies House public register data (OGL v3.0)",
"retrieved_at": "2026-11-11T00:31:42+00:00",
"cached": false,
"data": {
"company_number": "00445790",
"total": 55,
"filings": [
{
"date": "2026-07-25",
"type": "AA",
"category": "accounts",
"description": "accounts-with-accounts-type-group",
"made_up_date": "2026-02-28",
"document": "https://find-and-update.company-information.service.gov.uk/company/00445790/filing-histo…"
},
{
"date": "2025-07-15",
"type": "AA",
"category": "accounts",
"description": "accounts-with-accounts-type-group",
"made_up_date": "2025-02-26",
"document": "https://find-and-update.company-information.service.gov.uk/company/00445790/filing-histo…"
},
"…"
]
}
} Real output from this server, shortened (lists cut to 2 items).
ch_get_pscPeople and companies with significant control (beneficial owners) of a company and the nature of control.Companies House key held by the server
Arguments
-
company_numberCompanies House company number, 8 characters, e.g. 00445790 or SC123456 required -
limitNumber of entries
What comes back
People or companies with significant control and how they control it (shares, votes, right to appoint directors).
{
"source_name": "Companies House Public Data API",
"source_url": "https://find-and-update.company-information.service.gov.uk/company/03977902/persons-with…",
"licence": "Companies House public register data (OGL v3.0)",
"retrieved_at": "2026-11-11T00:31:42+00:00",
"cached": false,
"data": {
"company_number": "03977902",
"active_count": 1,
"ceased_count": 0,
"psc": [
{
"name": "Alphabet, Inc.",
"kind": "corporate-entity-person-with-significant-control",
"notified": "2016-04-06",
"ceased": null,
"nationality": null,
"country_of_residence": null,
"natures_of_control": [
"ownership-of-shares-75-to-100-percent",
"voting-rights-75-to-100-percent",
"…"
]
}
]
}
} Real output from this server, shortened (lists cut to 2 items).
Limits and fair use
- Anonymous30 requests / minute · 1000 / day per IP
- Companies Houseserver-wide cap far below the 600 / 5 minutes Companies House allows
- Cache15 minutes to 7 days depending on the source
Over the limit you get HTTP 429 with Retry-After. No sign-up, no cookies, no personal data stored. Officer dates of birth are never returned.
Sources and licences
- GOV.UK Search API · Open Government Licence v3.0
- GOV.UK Content API · Open Government Licence v3.0
- GOV.UK bank holidays · Open Government Licence v3.0
- Postcodes.io (ONS Postcode Directory) · OGL v3.0 (ONS, OS, Royal Mail data); postcodes.io MIT
- legislation.gov.uk (The National Archives) · Open Government Licence v3.0
- Carbon Intensity API (NESO) · CC BY 4.0
- Food Standards Agency ratings API · Open Government Licence v3.0
- data.police.uk · Open Government Licence v3.0
- ONS API (beta) · Open Government Licence v3.0
- Companies House Public Data API · Companies House public register data (OGL v3.0)
Independent service. mybritain.chat is not affiliated with GOV.UK, HM Government, Companies House or any public body. Data comes from their public APIs under the licences above. It is not legal, tax or immigration advice: check the official page in source_url before you rely on it.
Browse the tools directory for these tools and other UK MCP servers.