Skip to main content
Glama

govuk-mcp

govuk-mcp MCP server

GOV.UK용 MCP 서버 — 검색, 콘텐츠 검색, 기관 조회 및 우편번호 확인 기능을 제공합니다.

도구

도구

설명

govuk_search

형식 및 기관 필터를 포함한 70만 개 이상의 GOV.UK 페이지 전체 텍스트 검색

govuk_get_content

기본 경로(base path)를 통한 모든 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 검색

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

없음

GOV.UK 콘텐츠

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

없음

GOV.UK 기관

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

없음

postcodes.io

https://api.postcodes.io

없음

라이선스

MIT

Available Tools

7 tools
govuk_get_contentGet GOV.UK PageA
Read-onlyIdempotent

Get metadata and navigable section index for a GOV.UK page.

Returns the page title, document type, publication dates, and a list of sections with their anchor IDs and headings. Use govuk_get_section to read the body of a specific section, or govuk_grep_content to search within the page body.

Inputs: base_path (required). Returns: object

govuk_get_organisationGet GOV.UK OrganisationA
Read-onlyIdempotent

Get the profile of a UK government organisation by its slug.

Returns name, acronym, type, status, web URL, and parent/child organisations. Use govuk_list_organisations to browse all organisations and discover slugs.

Inputs: slug (required). Returns: A UK government organisation record.

govuk_get_sectionGet GOV.UK Page SectionA
Read-onlyIdempotent

Get the HTML content of one named section of a GOV.UK page.

Use govuk_get_content first to get the list of available section anchors, then call this with the anchor of the section you want to read.

Inputs: anchor (required), base_path (required). Returns: object

govuk_grep_contentSearch within a GOV.UK content bodyA
Read-onlyIdempotent

Find body sections in a GOV.UK content item matching a pattern.

Returns a list of {anchor, heading, snippet, match} hits — small per-section snippets centred on the match — so the LLM can decide which full sections to read via govuk_get_section.

Use this when answering content-based questions ("what does this guide say about X?", "find the bit about eligibility") rather than navigating by section number.

Pattern is regex; if it doesn't compile, falls back to literal substring.

Inputs: pattern (required), base_path (required), max_hits, case_insensitive. Returns: Output schema for govuk_grep_content.

govuk_list_organisationsList GOV.UK OrganisationsA
Read-onlyIdempotent

List all UK government organisations registered on GOV.UK.

Returns a paginated list of organisations including their slug, acronym, type, and status. Use this to browse the full government structure or discover slugs for use with govuk_get_organisation or govuk_search filters.

Inputs: page, per_page. Returns: A page of UK government organisations.

govuk_lookup_postcodeLook Up UK PostcodeA
Read-onlyIdempotent

Look up a UK postcode to retrieve its local authority, region, constituency, and other administrative geography.

Useful for determining which council area, parliamentary constituency, or NHS region a postcode falls within. Commonly used to direct users to the correct local service on GOV.UK (e.g. council tax, planning, waste).

Uses the postcodes.io public API (no key required).

Inputs: postcode (required). Returns: UK postcode lookup result with administrative geography.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose with no overlap. Tools like govuk_get_content, govuk_get_section, and govuk_grep_content are designed to work together in a chained manner, avoiding ambiguity.

    Naming Consistency5/5

    All tools follow a consistent 'govuk_verb_noun' pattern (e.g., govuk_get_content, govuk_list_organisations, govuk_lookup_postcode), making the naming predictable and easy to understand.

    Tool Count5/5

    Seven tools is an appropriate number for the server's purpose—searching and retrieving UK government information. Each tool earns its place by providing essential functionality without redundancy.

    Completeness5/5

    The tool set covers the core use cases: content search and retrieval, section navigation, organisation lookup, and postcode-based geographic information. No obvious gaps for a read-only government information server.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers