Skip to main content

MCP server for GOV.UK — search, content, organisations and postcode lookup

Project description

govuk-mcp

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 Retrieve the full structured content item for any GOV.UK page by base path
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.

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/mcp

Local (Claude Desktop)

fastmcp install claude-desktop 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

govuk_mcp-0.2.0.tar.gz (175.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

govuk_mcp-0.2.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file govuk_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: govuk_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 175.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for govuk_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 efea5b25976a2fcba86c7f037691648dacaaa8fec9654959df0279a6b2ab7cb5
MD5 965469e91c89320ec47a2a2622d05eed
BLAKE2b-256 e6fb35003c98f95e0f45600ec41733490af9da763039d270eb58cf8ef2f57252

See more details on using hashes here.

File details

Details for the file govuk_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: govuk_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for govuk_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59f50845ebfffe1975feb5d038601d122e1eecd833678a59bffac1afd9a31cc3
MD5 b91492fa36075a87f53861be395da0e1
BLAKE2b-256 1ce8c35b669d2dc57fccc3fed981950ac2c89782da86b967e85beac0e593d7fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page