Skip to main content
Glama
paulieb89

GOV UK Search

by paulieb89

govuk-mcp

govuk-mcp MCP server

用于 GOV.UK 的 MCP 服务器 — 提供搜索、内容检索、组织查询和邮政编码解析功能。

工具

工具

描述

govuk_search

对 70 万个以上的 GOV.UK 页面进行全文搜索,支持格式和组织筛选

govuk_get_content

通过基本路径获取任何 GOV.UK 页面的元数据和可导航部分索引

govuk_get_section

获取 GOV.UK 页面单个命名部分(锚点)的正文 HTML

govuk_grep_content

在特定 GOV.UK 页面的正文中进行正则表达式/子字符串搜索

govuk_get_organisation

获取英国政府组织的详细信息(类型、上级、下级、联系方式)

govuk_list_organisations

GOV.UK 上注册的所有政府组织的分页列表

govuk_lookup_postcode

将英国邮政编码解析为地方当局、地区、选区和 NHS 委员会

所有数据均来自官方公开的 GOV.UK API 和 postcodes.io。无需 API 密钥。

Related MCP server: @mountainpass/addressr-mcp

资源

对于支持协议的客户端(Claude、Cursor、Inspector),该服务器还公开了 govuk:// 资源模板:

URI

返回内容

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

页面元数据(标题、文档类型、日期)

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

部分锚点:标题列表

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

一个部分的限定 HTML

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

模式特定的详细信息字段

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

按链接类型关联的内容

govuk://organisation/{slug}

组织概况

快速入门

远程(无需安装)

将任何 MCP 客户端指向托管服务器:

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

本地(pip 安装)

pip install govuk-mcp
govuk-mcp
# MCP endpoint: http://localhost:8000/mcp

本地(Claude Desktop)

fastmcp install claude-desktop govuk-mcp

使用的 API

API

基础 URL

认证

GOV.UK Search

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

GOV.UK Content

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

GOV.UK Organisations

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

postcodes.io

https://api.postcodes.io

许可证

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 French (BOAMP) + EU (TED) public procurement data via TenderAPI.

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