Govuk MCP

مجتمعي الحكومة والقانون

Search GOV.UK content, retrieve full government pages, look up organisations and resolve UK postcodes to local authorities. Read-only.

التثبيت

خطوات التثبيت موجودة في التوثيق أدناه. التوثيق

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. govuk-mcp
  2. Tools
  3. Resources
  4. Connect
  5. APIs used
  6. License

govuk-mcp

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

Tools

ToolDescription
govuk_searchFull-text search across 700k+ GOV.UK pages, with format and organisation filters
govuk_get_contentPage metadata and navigable section index for any GOV.UK page by base path
govuk_get_sectionBody HTML for a single named section (anchor) of a GOV.UK page
govuk_grep_contentRegex/substring search within the body of a specific GOV.UK page
govuk_get_organisationGet details for a UK government organisation (type, parent, children, contacts)
govuk_list_organisationsPaginated list of all government organisations registered on GOV.UK
govuk_lookup_postcodeResolve 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:

URIReturns
govuk://content/{base_path*}/headerPage metadata (title, doc type, dates)
govuk://content/{base_path*}/indexSection 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

APIBase URLAuth
GOV.UK Searchhttps://www.gov.uk/api/search.jsonNone
GOV.UK Contenthttps://www.gov.uk/api/content{path}None
GOV.UK Organisationshttps://www.gov.uk/api/organisationsNone
postcodes.iohttps://api.postcodes.ioNone

License

MIT

الأسئلة الشائعة

ما هو Govuk MCP؟

Search GOV.UK content, retrieve full government pages, look up organisations and resolve UK postcodes to local authorities. Read-only.

كيف أثبّت Govuk MCP؟

اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.

هل Govuk MCP مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Govuk MCP؟

ينشره paulieb89. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من القوائم المجتمعية awesome-mcp-servers ومستودع المشروع على GitHub. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.