loading…
Search for a command to run...
loading…
Provides AI assistants with access to 102 curated UK Government technology standards, enabling context-aware recommendations for accessibility, APIs, security,
Provides AI assistants with access to 102 curated UK Government technology standards, enabling context-aware recommendations for accessibility, APIs, security, cloud strategy, and more.
A Model Context Protocol (MCP) server providing access to 102 curated UK Government technology standards for AI assistants. Get context-aware recommendations for accessibility, APIs, security, cloud strategy, and more.
# Clone the repository
git clone <repository-url>
cd uk-gov-tech-standards-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Setup database with curated standards (takes 2-3 minutes)
npm run setup
Start MCP Server:
npm run serve
Start HTTP API Server:
npm run serve:http
# API available at http://localhost:3001
# Clone the repository
git clone <repository-url>
cd uk-gov-tech-standards-mcp
# Copy environment template
cp docker.env.template .env
# Build and start services
docker-compose up -d
# Check status
docker-compose ps
The setup includes:
localhost:3000localhost:8080 localhost:8000 (vector database)MCP Server (default):
docker-compose up -d uk-gov-standards-mcp
HTTP Server (alternative):
docker-compose --profile http-only up -d
Both servers:
docker-compose up -d uk-gov-standards-mcp uk-gov-standards-http
Docker volumes persist data in:
./data/ - SQLite database./logs/ - Application logs ./models/ - ML models cachechromadb_data - Vector embeddingsEnvironment Variables (.env file):
NODE_ENV=production
LOG_LEVEL=info
DB_PATH=/app/data/standards.db
CHROMA_HOST=chromadb
CHROMA_PORT=8000
Health Checks:
# Check MCP server health
curl http://localhost:3000/health
# Check HTTP API health
curl http://localhost:8080/health
# Check ChromaDB health
curl http://localhost:8000/api/v1/heartbeat
Logs:
# View all logs
docker-compose logs -f
# View specific service logs
docker-compose logs -f uk-gov-standards-mcp
docker-compose logs -f chromadb
Add to your claude_desktop_config.json:
{
"mcpServers": {
"uk-gov-standards": {
"command": "node",
"args": ["/absolute/path/to/uk-gov-tech-standards-mcp/dist/index.js"],
"env": {
"DATABASE_URL": "sqlite:/absolute/path/to/uk-gov-tech-standards-mcp/standards.db",
"NODE_ENV": "production",
"LOG_LEVEL": "info"
}
}
}
}
The server implements the full MCP specification. Use these connection details:
node["/path/to/dist/index.js"]DATABASE_URL to your database pathThe server provides 8 context-aware tools:
search_uk_gov_standards
query (required), category, organisationget_standard_by_id
standardId (required)list_categories
get_recent_updates
daysBack (default: 30)get_applicable_standards
workType[], serviceType[], developmentPhase[]get_mandatory_standards
get_standards_by_priority
priority (critical, high, medium, low)get_category_hierarchy
categoryId (optional)check_compliance
serviceDescription (required)When running npm run serve:http, access these endpoints:
GET /api/search?q=<query>&category=<category>&org=<organisation>
GET /api/standards/<id>
GET /api/categories
GET /api/recent?days=<days>
POST /api/applicable
{
"workType": ["frontend", "backend"],
"serviceType": ["citizen-facing"],
"developmentPhase": ["development", "testing"]
}
GET /api/mandatory
GET /api/priority/<level>
GET /api/hierarchy?categoryId=<id>
POST /api/compliance
{
"serviceDescription": "Description of your service"
}
102 standards across 11 focused categories:
| Category | Count | When to Use |
|---|---|---|
| Design and Build Government Services | 30 | Any government service development |
| Standards | 21 | General compliance and best practices |
| Secure By Design | 14 | Security-focused development |
| Accessibility | 10 | Frontend/UI development |
| Open source and open standards | 8 | Technology selection and architecture |
| APIs | 5 | REST, SOAP, GraphQL development |
| Legacy Technologies | 3 | Modernization projects |
| Native or Hybrid Apps | 3 | Mobile app development |
| Cloud Strategy | 2 | Cloud adoption and migration |
| Data | 2 | Data management and GDPR |
| Application Development | 1 | General development guidance |
Get relevant standards based on your specific work:
| Work Context | Example Results |
|---|---|
| Frontend + Citizen-facing | Accessibility standards, WCAG guidelines |
| Backend + APIs | API technical standards, security guidelines |
| Mobile + Native apps | iOS/Android security, app store guidelines |
| Cloud + Data | GDPR compliance, cloud-first policy |
DATABASE_URL="sqlite:/custom/path/standards.db" npm run setup
npm run update # Refresh standards content
npm run dev # Run with hot reload
npm test # Run test suite
Set LOG_LEVEL environment variable:
error: Errors onlywarn: Warnings and errorsinfo: General information (default)debug: Detailed debuggingThis system uses a curated approach rather than broad discovery:
All 102 standards are sourced from official UK Government websites:
Database corruption:
rm -f standards.db*
npm run setup
Port already in use:
# Change port in src/http-server.ts or kill existing process
pkill -f "http-server"
Semantic search unavailable:
logs/server.lognode --version (requires 18+)ls -la standards.dbnpm test##� License
MIT License - see LICENSE file for details.
The system automatically tracks when standards are updated. Run npm run update periodically to refresh content.
Built for AI assistants to provide accurate, up-to-date UK Government technology guidance.
Run in your terminal:
claude mcp add uk-government-technology-standards-mcp-server -- npx Yes, UK Government Technology Standards Server MCP is free — one-click install via Unyly at no cost.
No, UK Government Technology Standards Server runs without API keys or environment variables.
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
Open UK Government Technology Standards Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Security
Low riskAutomated heuristic from public metadata — not a security guarantee.