# govuk

Connects your agent to the official GOV.UK portal to search content, read specific sections, explore public bodies, and check postal codes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1717 installs
- Author: bouch
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/bouch/govuk
- Updated: 2026-04-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/govuk

## What it does

The server runs over HTTP and communicates with the official GOV.UK Search API. Instead of dumping entire articles into context, it pairs `govuk_grep_content` with `govuk_get_section`. The model locates text matches inside headings, then fetches only the relevant section HTML.

It also handles administrative lookups. The `govuk_lookup_postcode` tool identifies the council area, parliamentary constituency, and NHS region for any UK postal code. Tools like `govuk_list_organisations` and `govuk_get_organisation` return agency profiles, parent entities, and status codes.

All tools run against the remote endpoint `https://govuk--bouch.run.tools`, so you do not need local runtimes or dependencies.

## Requirements
- Remote server: `https://govuk--bouch.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http govuk https://govuk--bouch.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add govuk --url https://govuk--bouch.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "govuk": {
            "url": "https://govuk--bouch.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "govuk": {
            "type": "http",
            "url": "https://govuk--bouch.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http govuk https://govuk--bouch.run.tools
```

## When to use it
- search official GOV.UK documents and filter results by content format
- extract a single section from a long guidance page
- look up council area and constituency from a UK postcode
- inspect government department hierarchy and metadata

## Example prompts
- Search GOV.UK for standard visitor visa rules and fetch the eligibility section
- Look up the administrative geography for UK postcode SW1A 1AA
- Get parent and child organisations for the hm-revenue-customs slug

## Similar
- [mcp](https://affpapa.org/en/nevibecode/mcp/postcodecontext-mcp.md) — MCP server
- [What Do They Know?](https://affpapa.org/en/nevibecode/mcp/what-do-they-know.md) — MCP server · 2223 installs
- [nimistu](https://affpapa.org/en/nevibecode/mcp/nimistu.md) — MCP server · 1596 installs
- [reddit-search-api](https://affpapa.org/en/nevibecode/skills/reddit-search-api.md) — skill · 13400 installs
- [search-docs](https://affpapa.org/en/nevibecode/skills/search-docs.md) — skill · 511 installs
- [Nigeria Postcode](https://affpapa.org/en/nevibecode/mcp/nigeria-postcode.md) — MCP server · ★ 7 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
