OpenUKPublicDataMCP
Provides tools for retrieving carbon intensity data for Great Britain from the National Grid ESO.
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., "@OpenUKPublicDataMCP look up postcode SW1A 1AA"
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.
OpenUKPublicDataMCP
OpenUKPublicDataMCP is a no-key-first Model Context Protocol server for useful UK public data.
The goal is to give Claude, Hermes, Cursor, and other MCP clients one reliable endpoint for common UK public-data questions: postcodes, GOV.UK content, bank holidays, carbon intensity, public datasets, flood monitoring, parliamentary/legal/statistical lookups, and optional-key enrichments such as Companies House, EPC, Ordnance Survey, and TfL.
Status
MVP shipped: 23+ MCP tools, FastAPI explorer API, and web/ React map UI. Tier C backlog (EPC, Met Office, Parliament) remains optional.
Related MCP server: floodwise
Principles
No-key-first: core tools must work without signup.
Source-cited: every tool returns upstream source metadata and retrieval time.
Official-first: prefer official UK public sector APIs; label community/non-official sources explicitly.
Thin adapters: normalize useful fields but keep upstream payloads available.
Optional enrichments: API-key sources are allowed only as optional modules.
Read-only by default: no public-sector write operations in the initial project.
Current tools
health_check— server health and configured source count.list_sources— source registry with auth/licence/freshness notes.plan_uk_public_data_research/get_research_methodology/save_uk_research_note— agent planning surface.lookup_postcode— postcode lookup via postcodes.io.get_bank_holidays— GOV.UK bank holidays by UK region.get_carbon_intensity— National Grid ESO carbon intensity for Great Britain.search_govuk— GOV.UK Search API.search_public_datasets— data.gov.uk CKAN package search.list_flood_warnings/search_flood_areas— Environment Agency flood monitoring (England).search_ons_datasets/get_ons_dataset/get_ons_latest_version/get_ons_observations— ONS Beta API.search_planning_applications— planning.data.gov.uk (England).get_cpih_inflation_headline— CPIH month-on-month % from ONS observations.list_uk_regions— explorer geography metadata (sample postcodes).police_street_crime_near— data.police.uk near lat/lng.search_mp_by_postcode,search_constituencies— UK Parliament Members API.met_office_site_forecast— Met Office DataHub (optionalMET_OFFICE_DATAHUB_API_KEY).companies_house_company_profile— optionalCOMPANIES_HOUSE_API_KEY.os_places_find_place— optionalOS_PLACES_API_KEY.tfl_line_status— optionalTFL_APP_ID+TFL_APP_KEY.
Implementation plan: docs/plans/2026-07-05-openuk-v1-implementation.md. Test brief: docs/tests/Q2-executive-report.md.
Quick start
cd /home/stephen/projects/OpenUKPublicDataMCP
python3.11 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
python -m openukpublicdata_mcp.serverRun validation:
pytest
fastmcp inspect src/openukpublicdata_mcp/server.py:mcp
fastmcp list src/openukpublicdata_mcp/server.py --json
fastmcp call src/openukpublicdata_mcp/server.py lookup_postcode postcode='SW1A 1AA' --jsonHermes MCP config
After the server is stable, register it with Hermes using hermes config set rather than editing config files directly:
hermes config set mcp_servers.openukpublicdata.command "/home/stephen/projects/OpenUKPublicDataMCP/.venv/bin/python"
hermes config set mcp_servers.openukpublicdata.args '["-m", "openukpublicdata_mcp.server"]'
hermes config set mcp_servers.openukpublicdata.timeout 120
hermes config set mcp_servers.openukpublicdata.connect_timeout 60Restart Hermes after changing MCP config.
Web explorer
./scripts/run-web.sh
# http://127.0.0.1:8765See web/README.md for dev mode (Vite + API).
Research
See research/LINKS.md and research/github-projects/ for the first competitor/source notes.
Available Tools
26 toolscompanies_house_company_profileC
Fetch Companies House company profile (requires COMPANIES_HOUSE_API_KEY).
Inputs: company_number (required). Returns: object
get_bank_holidaysB
Get bank holidays for England and Wales, Scotland, or Northern Ireland.
Inputs: region. Returns: object
get_carbon_intensityB
Get current GB carbon intensity, optionally for a regional intensity region ID.
Inputs: region_id. Returns: object
get_cpih_inflation_headlineB
Latest CPIH index month-on-month % change from ONS observations (UK aggregate slice).
Inputs: dataset_id. Returns: object
get_ons_datasetB
Fetch ONS dataset metadata (release frequency, editions, links).
Inputs: dataset_id (required). Returns: object
get_ons_latest_versionC
Resolve the latest ONS Beta API edition/version for a dataset.
Inputs: dataset_id (required). Returns: object
get_ons_observationsC
Fetch ONS observations with time=*; some datasets require extra upstream dimension filters not yet exposed.
Inputs: dataset_id (required), limit, edition, version. Returns: object
get_research_methodologyC
Methodology for no-key-first UK public data research and citation rules.
Inputs: no named parameters. Returns: result
health_checkA
Return server health and source registry status.
Inputs: no named parameters. Returns: object
list_flood_warningsC
List current Environment Agency flood warnings (England).
Inputs: limit. Returns: object
list_sourcesB
List configured UK public-data sources and their auth/licence metadata.
Inputs: auth. Returns: object
list_uk_regionsA
List UK nations/regions with sample postcodes for explorer map drill-down.
Inputs: no named parameters. Returns: object
lookup_postcodeA
Look up a UK postcode and return location/geography metadata.
Inputs: postcode (required). Returns: object
met_office_site_forecastC
Met Office Weather DataHub site-specific forecast (optional MET_OFFICE_DATAHUB_API_KEY).
Inputs: latitude (required), longitude (required), resolution. Returns: object
os_places_find_placeC
Find UK places or postcodes via Ordnance Survey Places (requires OS_PLACES_API_KEY).
Inputs: query (required), limit. Returns: object
plan_uk_public_data_researchC
Return a structured research plan (tool order, depth, suggested output) for UK public-data questions.
Inputs: topic (required), depth, period. Returns: object
police_street_crime_nearC
Street-level crime categories near a lat/lng (England and Wales, data.police.uk).
Inputs: latitude (required), longitude (required), date, limit. Returns: object
save_uk_research_noteC
Persist a research brief under ~/research// (or UK_RESEARCH_ROOT).
Inputs: topic (required), content_markdown (required), slug, filename. Returns: object
search_constituenciesB
Search Westminster constituencies by name (UK Parliament API).
Inputs: search_text (required), limit. Returns: object
search_flood_areasB
Search Environment Agency flood monitoring areas by name or river.
Inputs: query (required), limit. Returns: object
search_govukC
Search GOV.UK content.
Inputs: query (required), limit. Returns: object
search_mp_by_postcodeB
Find current MPs for a UK postcode (UK Parliament Members API).
Inputs: postcode (required). Returns: object
search_ons_datasetsC
Search ONS Beta API datasets by keyword.
Inputs: query (required), limit. Returns: object
search_planning_applicationsB
Search England planning applications via planning.data.gov.uk (optional reference filter).
Inputs: limit, offset, dataset, reference. Returns: object
search_public_datasetsC
Search data.gov.uk dataset metadata.
Inputs: query (required), limit. Returns: object
tfl_line_statusB
London tube/DLR/tram line status via TfL Unified API (requires TFL_APP_ID and TFL_APP_KEY).
Inputs: line_ids. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
Most tools target distinct data sources and actions, but there is slight overlap among search tools (e.g., search_ons_datasets vs search_public_datasets) and between location tools (lookup_postcode vs os_places_find_place). Descriptions help, but an agent might select the wrong search tool without careful reading.
Naming conventions are inconsistent: some tools use verb_noun (get_bank_holidays, list_flood_warnings), while others mix noun and verb (companies_house_company_profile, os_places_find_place). There is no uniform pattern, though most names are descriptive.
With 26 tools, the server is on the higher end but covers a wide range of UK public data sources, justifying the count. It could be slightly trimmed, but overall it feels appropriate given the breadth of domains (weather, crime, transport, etc.).
The tool set covers many key UK public data sources (ONS, Companies House, flood warnings, etc.) but misses several major ones like DVLA, NHS data, or land registry. For an 'open UK public data' server, there are notable gaps that could limit agent coverage.
Maintenance
Related MCP Connectors
UK postcode lookup, street-level crime, flood warnings, grid carbon intensity, bank holidays
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
data.gov.uk MCP — UK national open-data portal (CKAN API).
UK public data tools for agents: companies, tenders, property, stats, documents. No key to start
Related MCP Servers
- AlicenseBqualityDmaintenanceAn unofficial MCP server providing access to Dutch government open data from data.overheid.nl, CBS statistics, and KVK business registry. Enables natural language queries for discovering datasets, inspecting metadata, and querying data without API keys or authentication.14MIT

floodwiseofficial
AlicenseAqualityCmaintenanceMCP server to look up long-term flood risk for England postcodes using official Environment Agency data, and validate UK postcodes.246 npm1Apache 2.0- AlicenseCqualityCmaintenanceMCP server for the UK Bus Open Data Service, enabling timetable queries, stop search, route discovery, journey planning, and real-time bus tracking.1623 PyPIMIT
- AlicenseCqualityCmaintenanceA research MCP server for UK geospatial and statistical data, enabling AI assistants to query Ordnance Survey and ONS datasets.1033MIT