GovBridge UK
A unified API gateway that puts HMRC Making Tax Digital, Companies House, DVLA, Land Registry and FHRS behind one consistent contract. In early access: Companies House, Land Registry, food hygiene and MOT history are live for customers; HMRC runs in HMRC's test environment only and DVLA is not yet available.
- Role
- Founder and sole engineer
- Context
- Yug Solutions Ltd, own product
- When
- In active development
Technologies
- ASP.NET Core
- C#
- React
- PostgreSQL (Supabase)
- Redis (Upstash)
- Render
- Cloudflare Pages
- Python
Problem
UK government APIs are fragmented. HMRC Making Tax Digital, Companies House, DVLA, Land Registry and the Food Hygiene Rating Scheme each have their own authentication, their own quirks and their own sandbox rules. Anyone building tax or business software has to learn and maintain every one of them separately.
Developers who have seen GovBridge have told me that integrating 50+ fragmented endpoints is a real, recurring pain. That is qualitative feedback, not a sales claim, but it is the problem I set out to remove.
Architecture
Text description of the diagram
Three kinds of client call the GovBridge API: developers' applications over REST with an API key, the React developer portal on Cloudflare Pages, and AI clients (a Python tool-calling agent and an MCP server). The API is an ASP.NET Core service on Render in Frankfurt exposing one consistent contract over 40+ endpoints. Inside it: rate limiting per API key, encrypted OAuth token storage, HMRC fraud prevention headers, log redaction of NINO, UTR and VRN, a SandboxOnly guard attribute and explicit "HMRC not connected" errors. It uses PostgreSQL on Supabase and Redis on Upstash, and calls six UK government services: HMRC Making Tax Digital (VAT, Income Tax, PAYE, CIS, Savings Income), HMRC GovTalk for Corporation Tax CT600 returns with an IRmark, Companies House, DVLA, Land Registry and the Food Hygiene Rating Scheme.
What I did
One contract over many government APIs
I built a single gateway that started with VAT only and has grown to 40+ endpoints, all behind one consistent contract.
- HMRC Making Tax Digital: VAT, Income Tax, PAYE, CIS Deductions and Savings Income
- HMRC Corporation Tax: CT600 returns through GovTalk
- Companies House
- DVLA
- Land Registry
- Food Hygiene Rating Scheme (FHRS)
The hard part: Corporation Tax
Corporation Tax works differently from the rest of the gateway: a CT600 return is submitted through GovTalk and has to carry an IRmark. I got this working end to end, and a submission was accepted by HMRC's test Transaction Engine.
Security
- Encrypted OAuth token storage.
- HMRC fraud prevention headers.
- Rate limiting partitioned by authenticated API key.
- Log redaction of National Insurance numbers, UTRs and VAT registration numbers.
- A SandboxOnly guard attribute for operations that must only run against the HMRC sandbox.
- Explicit "HMRC not connected" error handling.
Developer experience
A React developer portal groups the tools by category and shows a live HMRC status banner.
AI on top of the gateway
I built a Python tool-calling agent that works through the gateway, with an evaluation harness and a golden dataset so its answers are measured rather than assumed. I have also built a Model Context Protocol (MCP) server for the platform.
How I run the project
I run a self-hosted coding agent (OpenClaw, under WSL) against the repository. A daily scheduled automation reviews the codebase and proposes the next feature or fix to me on WhatsApp. Nothing is implemented until I approve it.
Architecture and hosting
The API is an ASP.NET Core solution split into Api, Core and Data projects. It runs on Render in Frankfurt, with PostgreSQL on Supabase and Redis on Upstash. The developer portal is a React app on Cloudflare Pages.
Outcome
- Live at api.govbridge.co.uk with 40+ endpoints behind one contract.
- Corporation Tax (CT600) submission accepted by HMRC's test Transaction Engine.
- A tool-calling agent with an evaluation harness, and an MCP server, built on the same gateway.
Honest status
GovBridge is early-stage. It is live and in active development, and I am validating it with Making Tax Digital software vendors. It has no paying customers yet.
On the roadmap
- Verify & Enrich: Companies House identity verification status under ECCTA, plus company enrichment, for KYB checks.
- A year-end Making Tax Digital Income Tax return engine for software vendors.
- Stripe self-serve checkout.
- A public status page.