GOV.UK Design System MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GOV.UK Design System MCPsearch for button guidance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GOV.UK Design System MCP
TypeScript MCP server that serves locally-crawled GOV.UK Design System guidance from SQLite FTS5.
Features
Manual crawler restricted to approved GOV.UK Design System sections.
SQLite-backed storage at
data/govuk-design-system.db.FTS5 search with deterministic ranking and snippets.
MCP tools:
search(query: string)fetch(id: string)version()
STDIO transport adapter isolated from core logic.
Related MCP server: docs-mcp
Setup
bun install
cp .env.example .envBuild the Local Dataset
bun run crawlRun MCP Server
bun run startAdd This MCP to Developer Tools
The server uses STDIO transport, so most MCP-compatible tools can run it with a command.
Use this command in your MCP client configuration:
bun run /absolute/path/to/govuk-frontend-mcp/src/index.tsIf your client supports separate command and args, use:
command:
bunargs:
["run", "/absolute/path/to/govuk-frontend-mcp/src/index.ts"]cwd:
/absolute/path/to/govuk-frontend-mcp
Example: Claude Code (MCP config)
{
"mcpServers": {
"govuk-design-system": {
"command": "bun",
"args": [
"run",
"/absolute/path/to/govuk-frontend-mcp/src/index.ts"
],
"cwd": "/absolute/path/to/govuk-frontend-mcp"
}
}
}Example: Cursor / VS Code style MCP config
∏
"mcpServers": {
"govuk-design-system": {
"type": "stdio",
"command": "bun",
"args": [
"run",
"/absolute/path/to/govuk-frontend-mcp/src/index.ts"
],
"cwd": "/absolute/path/to/govuk-frontend-mcp"
}
}
}Example: Docker command for clients that run shell commands
docker compose run --rm govuk-design-system-mcp bun run src/index.tsAfter connecting, the MCP should expose:
search(query: string)fetch(id: string)version()
Tip: run bun run crawl whenever you want to refresh the local GOV.UK data before using the MCP in your tool.
Docker Compose
docker compose up --buildTest
bun test
bun run typecheckThis server cannot be deployed
Maintenance
Related MCP Connectors
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Design system contracts, docs search, and usage validation for @digitaltableteur components.
classifier.dev documentation as tools: list, read and search the reference, benchmark and guides.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides tools to search and retrieve Google Gemini API documentation with full-text search capabilities and automatic documentation updates stored in a local SQLite database.3101MIT
- FlicenseNot gradedqualityDmaintenanceIndexes documentation sites by base URL and serves keyword search, optional semantic search, and Markdown page retrieval as MCP tools, all from a single SQLite file.-
- AlicenseNot gradedqualityBmaintenanceEnables substring-search of documentation entries from DevDocs.io via a single tool.383 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables lexical search over local Markdown wiki folders using SQLite FTS5, with MCP tools for querying and managing wiki indices.-