GOV UK Search
govuk-mcp is an MCP server providing access to official UK government (GOV.UK) data — no API keys required.
Search GOV.UK (
govuk_search): Full-text search across 700,000+ pages, with optional filters for document format (e.g. guides, transactions) and organisation, plus pagination and sorting.Get page content/metadata (
govuk_get_content): Retrieve metadata (title, doc type, dates) and a navigable section index for any GOV.UK page by its base path.Get a specific section (
govuk_get_section): Fetch the body HTML for a single named section (anchor) of a GOV.UK page.Search within a page (
govuk_grep_content): Use regex or substring search within a page's body, returning matched snippets with context.Get organisation details (
govuk_get_organisation): Look up a UK government organisation by slug to get its type, parent bodies, child agencies, and contact details.List all organisations (
govuk_list_organisations): Browse a paginated list of all government organisations, including slugs, acronyms, types, and statuses.Look up a postcode (
govuk_lookup_postcode): Resolve a UK postcode to its local authority, region, parliamentary constituency (including 2025 boundaries), NHS Integrated Care Board, country, and coordinates.Access structured resources (via
govuk://URIs): For protocol-aware clients, access page headers, section indexes, individual sections, schema-specific fields, related content links, and organisation profiles.
govuk-mcp
MCP server for GOV.UK — search, content retrieval, organisation lookup, and postcode resolution.
Tools
Tool | Description |
| Full-text search across 700k+ GOV.UK pages, with format and organisation filters |
| Page metadata and navigable section index for any GOV.UK page by base path |
| Body HTML for a single named section (anchor) of a GOV.UK page |
| Regex/substring search within the body of a specific GOV.UK page |
| Get details for a UK government organisation (type, parent, children, contacts) |
| Paginated list of all government organisations registered on GOV.UK |
| Resolve a UK postcode to local authority, region, constituency, and NHS board |
All data is sourced from official public GOV.UK APIs and postcodes.io. No API keys required.
Resources
For protocol-aware clients (Claude, Cursor, Inspector), the server also exposes govuk:// resource templates:
URI | Returns |
| Page metadata (title, doc type, dates) |
| Section anchor:heading list |
| Bounded HTML for one section |
| Schema-specific details field |
| Related content by link type |
| Organisation profile |
Quick start
Remote (no install)
Point any MCP client at the hosted server:
{
"mcpServers": {
"govuk": {
"type": "http",
"url": "https://govuk-mcp.fly.dev/mcp"
}
}
}Local (pip install)
pip install govuk-mcp
govuk-mcp
# MCP endpoint: http://localhost:8000/mcpLocal (Claude Desktop)
fastmcp install claude-desktop govuk-mcpAPIs used
API | Base URL | Auth |
GOV.UK Search |
| None |
GOV.UK Content |
| None |
GOV.UK Organisations |
| None |
postcodes.io |
| None |
License
MIT
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulieb89/govuk-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server