Skip to main content

govuk-mcp

PyPI Glama smithery badge 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.

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

Metadata

Release files for govuk-mcp 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for govuk-mcp 0.3.1
File Size Uploaded Provenance Actions
govuk_mcp-0.3.1.tar.gz 152.6 kB With provenance Details for govuk_mcp-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for govuk-mcp 0.3.1
File Interpreter ABI Platform Actions
govuk_mcp-0.3.1-py3-none-any.whl Python 3 none any Details for govuk_mcp-0.3.1-py3-none-any.whl

Total release size: 171.1 kB

Release files / govuk_mcp-0.3.1.tar.gz

Download URL govuk_mcp-0.3.1.tar.gz
Size 152.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cdbb46537355e9be87e5c02b810123eb79fe128ebc7e4c5981b1753acb195590
BLAKE2b-256 checksum
How to use checksums
908feecc3eae2cc6090327a040fc9094013db1be028beb59f55fa9aef47bf3de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / govuk_mcp-0.3.1-py3-none-any.whl

Download URL govuk_mcp-0.3.1-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe4ec7d8847343f66e91a3e4cddab63f70e98cf354f64f590d60c083dd20fc22
BLAKE2b-256 checksum
How to use checksums
b9dcd7bbdebb7f3681c71fd0b7956dee228f2fbb8d94b6fce44fe3374a02a9ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for govuk-mcp 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for govuk_mcp-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page