GOV UK Search
govuk-mcp
Servidor MCP para GOV.UK: búsqueda, recuperación de contenido, búsqueda de organizaciones y resolución de códigos postales.
Herramientas
Herramienta | Descripción |
| Búsqueda de texto completo en más de 700.000 páginas de GOV.UK, con filtros de formato y organización |
| Metadatos de página e índice de secciones navegables para cualquier página de GOV.UK por ruta base |
| HTML del cuerpo para una sección nombrada (ancla) específica de una página de GOV.UK |
| Búsqueda por expresión regular/subcadena dentro del cuerpo de una página específica de GOV.UK |
| Obtener detalles de una organización gubernamental del Reino Unido (tipo, padre, hijos, contactos) |
| Lista paginada de todas las organizaciones gubernamentales registradas en GOV.UK |
| Resolver un código postal del Reino Unido a autoridad local, región, circunscripción y junta del NHS |
Todos los datos provienen de las API públicas oficiales de GOV.UK y postcodes.io. No se requieren claves de API.
Related MCP server: @mountainpass/addressr-mcp
Recursos
Para clientes compatibles con el protocolo (Claude, Cursor, Inspector), el servidor también expone plantillas de recursos govuk://:
URI | Devuelve |
| Metadatos de la página (título, tipo de documento, fechas) |
| Lista de anclas:encabezados de sección |
| HTML delimitado para una sección |
| Campo de detalles específico del esquema |
| Contenido relacionado por tipo de enlace |
| Perfil de la organización |
Inicio rápido
Remoto (sin instalación)
Apunte cualquier cliente MCP al servidor alojado:
{
"mcpServers": {
"govuk": {
"type": "http",
"url": "https://govuk-mcp.fly.dev/mcp"
}
}
}Local (instalación con pip)
pip install govuk-mcp
govuk-mcp
# MCP endpoint: http://localhost:8000/mcpLocal (Claude Desktop)
fastmcp install claude-desktop govuk-mcpAPI utilizadas
API | URL base | Autenticación |
GOV.UK Search |
| Ninguna |
GOV.UK Content |
| Ninguna |
GOV.UK Organisations |
| Ninguna |
postcodes.io |
| Ninguna |
Licencia
MIT
Available Tools
7 toolsgovuk_get_contentGet GOV.UK PageARead-onlyIdempotent
Get metadata and navigable section index for a GOV.UK page.
Returns the page title, document type, publication dates, and a list of sections with their anchor IDs and headings. Use govuk_get_section to read the body of a specific section, or govuk_grep_content to search within the page body.
Inputs: base_path (required). Returns: object
govuk_get_organisationGet GOV.UK OrganisationARead-onlyIdempotent
Get the profile of a UK government organisation by its slug.
Returns name, acronym, type, status, web URL, and parent/child organisations. Use govuk_list_organisations to browse all organisations and discover slugs.
Inputs: slug (required). Returns: A UK government organisation record.
govuk_get_sectionGet GOV.UK Page SectionARead-onlyIdempotent
Get the HTML content of one named section of a GOV.UK page.
Use govuk_get_content first to get the list of available section anchors, then call this with the anchor of the section you want to read.
Inputs: anchor (required), base_path (required). Returns: object
govuk_grep_contentSearch within a GOV.UK content bodyARead-onlyIdempotent
Find body sections in a GOV.UK content item matching a pattern.
Returns a list of {anchor, heading, snippet, match} hits — small per-section
snippets centred on the match — so the LLM can decide which full sections to
read via govuk_get_section.
Use this when answering content-based questions ("what does this guide say about X?", "find the bit about eligibility") rather than navigating by section number.
Pattern is regex; if it doesn't compile, falls back to literal substring.
Inputs: pattern (required), base_path (required), max_hits, case_insensitive. Returns: Output schema for govuk_grep_content.
govuk_list_organisationsList GOV.UK OrganisationsARead-onlyIdempotent
List all UK government organisations registered on GOV.UK.
Returns a paginated list of organisations including their slug, acronym, type, and status. Use this to browse the full government structure or discover slugs for use with govuk_get_organisation or govuk_search filters.
Inputs: page, per_page. Returns: A page of UK government organisations.
govuk_lookup_postcodeLook Up UK PostcodeARead-onlyIdempotent
Look up a UK postcode to retrieve its local authority, region, constituency, and other administrative geography.
Useful for determining which council area, parliamentary constituency, or NHS region a postcode falls within. Commonly used to direct users to the correct local service on GOV.UK (e.g. council tax, planning, waste).
Uses the postcodes.io public API (no key required).
Inputs: postcode (required). Returns: UK postcode lookup result with administrative geography.
govuk_searchSearch GOV.UKARead-onlyIdempotent
Search GOV.UK's 700k+ content items using the official Search API.
Returns a list of matching content items with title, description, link, format, owning organisation(s), and last updated timestamp.
Use filter_format to narrow to specific content types (e.g. 'transaction' for citizen-facing services, 'guide' for guidance, 'publication' for official documents). Use filter_organisations to restrict to a department.
Inputs: query (required), count, order, start, +2 more. Returns: A page of GOV.UK search results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clear, distinct purpose with no overlap. Tools like govuk_get_content, govuk_get_section, and govuk_grep_content are designed to work together in a chained manner, avoiding ambiguity.
All tools follow a consistent 'govuk_verb_noun' pattern (e.g., govuk_get_content, govuk_list_organisations, govuk_lookup_postcode), making the naming predictable and easy to understand.
Seven tools is an appropriate number for the server's purpose—searching and retrieving UK government information. Each tool earns its place by providing essential functionality without redundancy.
The tool set covers the core use cases: content search and retrieval, section navigation, organisation lookup, and postcode-based geographic information. No obvious gaps for a read-only government information server.
Maintenance
Related MCP Connectors
data.gov.uk MCP — UK national open-data portal (CKAN API).
MCP server for the GovContractScout US government contracts API: search, NAICS, match scoring.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server for searching npm packages1227 npm16MIT
- AlicenseNot gradedqualityFmaintenanceMCP server for Australian address search and validation powered by Addressr.Apache 2.0
- AlicenseCqualityCmaintenanceMCP server for the UK Bus Open Data Service, enabling timetable queries, stop search, route discovery, journey planning, and real-time bus tracking.1623 PyPIMIT
- AlicenseAqualityBmaintenanceMCP server for live web search and clean-markdown page fetch over the Keenable web index.2138 npm8MIT