Skip to main content
Glama
paulieb89

GOV UK Search

by paulieb89

govuk-mcp

PyPI Glama Install in VS Code Install in VS Code Insiders Install in Cursor Install in VS Code (local)

MCP server for GOV.UK — search, content retrieval, organisation lookup, and postcode resolution.

Tools

Tool

Description

govuk_search

Full-text search across 700k+ GOV.UK pages, with format and organisation filters

govuk_get_content

Page metadata and navigable section index for any GOV.UK page by base path

govuk_get_section

Body HTML for a single named section (anchor) of a GOV.UK page

govuk_grep_content

Regex/substring search within the body of a specific GOV.UK page

govuk_get_organisation

Get details for a UK government organisation (type, parent, children, contacts)

govuk_list_organisations

Paginated list of all government organisations registered on GOV.UK

govuk_lookup_postcode

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.

Related MCP server: @mountainpass/addressr-mcp

Resources

For protocol-aware clients (Claude, Cursor, Inspector), the server also exposes govuk:// resource templates:

URI

Returns

govuk://content/{base_path*}/header

Page metadata (title, doc type, dates)

govuk://content/{base_path*}/index

Section anchor:heading list

govuk://content/{base_path*}/section/{anchor}

Bounded HTML for one section

govuk://content/{base_path*}/details/{field}

Schema-specific details field

govuk://content/{base_path*}/links/{rel}

Related content by link type

govuk://organisation/{slug}

Organisation profile

Connect

Hosted (no install)

{
  "mcpServers": {
    "govuk": {
      "type": "http",
      "url": "https://govuk-mcp.fly.dev/mcp"
    }
  }
}

Local (uvx)

{
  "mcpServers": {
    "govuk": {
      "type": "stdio",
      "command": "uvx",
      "args": ["govuk-mcp"]
    }
  }
}

APIs used

API

Base URL

Auth

GOV.UK Search

https://www.gov.uk/api/search.json

None

GOV.UK Content

https://www.gov.uk/api/content{path}

None

GOV.UK Organisations

https://www.gov.uk/api/organisations

None

postcodes.io

https://api.postcodes.io

None

License

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
5dRelease cycle
4Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • data.gov.uk MCP — UK national open-data portal (CKAN API).

  • MCP server for Google search results via SERP API

  • MCP server for hex.pm and hexdocs.pm: search, inspect, compare, and audit Elixir packages

View all MCP Connectors

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