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.1.0.tar.gz (8.4 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.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: govuk_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for govuk_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17f8c43ab019b444059e27aad1960ac488e8b736d6b92f9e4f495e42f4c2f5c2
MD5 34e006893423da9c1e8de68448dfa78f
BLAKE2b-256 b4b4674a1d683a991ec2854d7cd0922220c7b41eb246fb39ca437100e19ae09f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: govuk_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for govuk_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae34a8c9ec39c40c25bcc098aa65b136ab9d96aaa7b4a408362db2fd13b13314
MD5 c581d4b39a8b045e3e6653ee7baa8f56
BLAKE2b-256 6fa16e62a78fc51dcf815ccdff9135f5e823b1b28bcd44509b778b9b73e52b82

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