Your local, on the public record.
464
pub_name_count on 05/12/2026.
Ask about a pub or a place, and each answer comes from the public body that publishes the record, with its source named. The Food Standards Agency files pubs, bars and nightclubs together, so the counts include all three.
- Coverage
- Ratings, counts and petitions: UK. Crime: England, Wales, NI. Floods and listed buildings: England.
- Licence
- Open Government Licence v3.0 and the Open Parliament Licence v3.0
- Endpoint
pubsmcp.uk/ mcp
England 429
Wales 31
Scotland 4
Northern Ireland 0
Add PubsMCP to your assistant
Use the endpoint
https://pubsmcp.uk/mcp in any MCP client
that speaks streamable HTTP. No key needed.
Claude Code In a terminal
claude mcp add --transport http \
pubsmcp https://pubsmcp.uk/mcp
Claude.ai Settings, Connectors, add a custom connector
https://pubsmcp.uk/mcp
Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"pubsmcp": {
"url": "https://pubsmcp.uk/mcp"
}
}
}
VS Code .vscode/mcp.json
{
"servers": {
"pubsmcp": {
"type": "http",
"url": "https://pubsmcp.uk/mcp"
}
}
}
6 tools, each with a real call
Examples captured from the live server on 05/12/2026. Lists are cut to three items and long text is shortened. Ask again for today's figures.
pubs_near
Pubs near a place
List pubs, bars and nightclubs near a postcode or lat and lon within radius_km (default 1, max 5), nearest first, with each one's food hygiene rating and rating date. A pub never inspected has an empty rating_date, and rating_note says when it awaits inspection.
| Parameter | Type | Required | Description |
|---|---|---|---|
lat |
number | No | latitude, with lon |
limit |
integer | No | default 10, max 50 |
lon |
number | No | longitude, with lat |
postcode |
string | No | UK postcode |
radius_km |
number | No | default 1, max 5 |
Give a postcode, or lat and lon together.
Example call
{
"name": "pubs_near",
"arguments": {
"limit": 3,
"postcode": "SW1A 1AA",
"radius_km": 1
}
}Answer
21 pubs, bars and nightclubs within 1 km; showing 3.
{
"note": "The Food Standards Agency files pubs under \"Pub/bar/nightclub\", so bars and nightclubs are counted too.",
"pubs": [
{
"address": "COLONIES 25 WILFRED STREET, LONDON, SW1E 6PR",
"distance_km": 0.3,
"fhrs_id": 1870913,
"latitude": 51.4985861,
"local_authority": "Westminster",
"longitude": -0.1395433,
"name": "Pineapple",
"postcode": "SW1E 6PR",
"rating": "5",
"rating_date": "2025-09-29",
"scheme": "FHRS"
},
{
"address": "43 BUCKINGHAM PALACE ROAD, LONDON, SW1W 0PP",
"distance_km": 0.35,
"fhrs_id": 1966145,
"latitude": 51.4981553,
"local_authority": "Westminster",
"longitude": -0.1435662,
"name": "BBAR",
"postcode": "SW1W 0PP",
"rating": "5",
"rating_date": "2026-06-17",
"scheme": "FHRS"
},
{
"address": "77 BUCKINGHAM PALACE ROAD, LONDON, SW1W 0AJ",
"distance_km": 0.41,
"fhrs_id": 1595447,
"latitude": 51.4976073,
"local_authority": "Westminster",
"longitude": -0.1439265,
"name": "Vagabond Wines",
"postcode": "SW1W 0AJ",
"rating": "5",
"rating_date": "2025-11-18",
"scheme": "FHRS"
}
],
"total": 21
}
pub_report
Report on one pub
Report on one pub by its fhrs_id from pubs_near: hygiene rating and date, street-level crime within about a mile in the latest month, flood warnings within 3 km, listed buildings within 50 m, and how many pubs and bars its council has had over the years. Each part has available; when true its data sits under detail, and when false reason says why: "Not covered: ..." outside the data set's area, else the upstream error. A pub never inspected has an empty rating_date, and rating_note says when it awaits inspection. likely_match on a listed building means it shares the pub's core name and lies within 50 m; it is not a confirmed identity.
| Parameter | Type | Required | Description |
|---|---|---|---|
fhrs_id |
integer | Yes | id from pubs_near |
Example call
{
"name": "pub_report",
"arguments": {
"fhrs_id": 293911
}
}Answer
Ye Olde Cheshire Cheese (EC4A 2BU): hygiene rating 5, rated 2025-01-22; 4 of 4 parts available.
{
"area": {
"available": true,
"detail": {
"change": -40,
"change_percent": -21.1,
"council_code": "E09000001",
"earliest": {
"count": 190,
"year": 2010
},
"latest": {
"count": 150,
"year": 2026
},
"local_authority": "City of London"
}
},
"crime": {
"available": true,
"detail": {
"month": "2026-09",
"top_categories": [
{
"category": "other-theft",
"count": 588
},
{
"category": "theft-from-the-person",
"count": 551
},
{
"category": "shoplifting",
"count": 448
}
],
"total": 2935
}
},
"flood": {
"available": true,
"detail": {
"radius_km": 3,
"total": 0,
"warnings": []
}
},
"hygiene": {
"new_rating_pending": false,
"rating": "5",
"rating_date": "2025-01-22",
"scheme": "FHRS",
"scores": {
"confidence_in_management": 0,
"hygiene": 0,
"structural": 5
}
},
"listed": {
"available": true,
"detail": {
"buildings": [
{
"distance_m": 9,
"grade": "II",
"likely_match": false,
"list_entry": 1359181,
"listed_on": "1950-01-04",
"name": "146, FLEET STREET EC4",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1359181"
},
{
"distance_m": 13,
"grade": "II",
"likely_match": false,
"list_entry": 1285207,
"listed_on": "1972-06-05",
"name": "1-3, WINE OFFICE COURT EC4",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1285207"
},
{
"distance_m": 15,
"grade": "II",
"likely_match": true,
"list_entry": 1064662,
"listed_on": "1977-11-10",
"name": "YE OLDE CHESHIRE CHEESE PUBLIC HOUSE",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1064662"
}
],
"radius_m": 50,
"total": 6
}
},
"pub": {
"address": "Ye Olde Cheshire Cheese Public House, 145 Fleet Street, London, EC4A 2BU",
"country": "England",
"fhrs_id": 293911,
"latitude": 51.514392,
"local_authority": "City of London Corporation",
"located_by": "coordinates",
"longitude": -0.107388,
"name": "Ye Olde Cheshire Cheese",
"postcode": "EC4A 2BU"
}
}
pub_name_count
How many pubs share a name
Count the pubs, bars and nightclubs whose name contains the given words, across the UK and in each of England, Scotland, Wales and Northern Ireland, with a few examples.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | pub name, at least 2 characters |
Example call
{
"name": "pub_name_count",
"arguments": {
"name": "Red Lion"
}
}Answer
464 pubs, bars and nightclubs in the UK have a name containing "Red Lion".
{
"by_nation": {
"england": 429,
"northern_ireland": 0,
"scotland": 4,
"wales": 31
},
"examples": [
{
"local_authority": "East Riding of Yorkshire",
"name": "Red Lion",
"postcode": "YO43 3AH"
},
{
"local_authority": "Arun",
"name": "Red Lion",
"postcode": "BN18 9AG"
},
{
"local_authority": "Manchester",
"name": "Red Lion",
"postcode": "M20 9BT"
}
],
"name": "Red Lion",
"note": "Names match on \"contains\", so \"Red Lion\" also counts \"Old Red Lion\". The Food Standards Agency files pubs under \"Pub/bar/nightclub\", so bars and nightclubs are…",
"total": 464
}
pubs_in_area
Pubs and bars in a council area over time
Count the pubs and bars in one council area for every year ONS UK Business Counts publish, oldest first, with the change from the earliest year to the latest. Name the area by a postcode, by lat and lon, or by council_code (a GSS code such as E09000033), but not both.
| Parameter | Type | Required | Description |
|---|---|---|---|
council_code |
string | No | GSS code |
lat |
number | No | latitude, with lon |
lon |
number | No | longitude, with lat |
postcode |
string | No | UK postcode |
Give a postcode, or lat and lon together.
Example call
{
"name": "pubs_in_area",
"arguments": {
"council_code": "E09000033"
}
}Answer
Westminster had 450 pubs and bars in 2010 and 475 in 2026.
{
"change": 25,
"change_percent": 5.6,
"council_code": "E09000033",
"earliest": {
"count": 450,
"year": 2010
},
"latest": {
"count": 475,
"year": 2026
},
"local_authority": "Westminster",
"note": "Counts local units (workplaces), not enterprises: each site a business trades from counts once, under SIC 2007 class 56.30/2, public houses and bars. Each year'…",
"series": [
{
"count": 450,
"year": 2010
},
{
"count": 455,
"year": 2011
},
{
"count": 455,
"year": 2012
}
]
}
listed_pubs_near
Listed pubs near a place
List Historic England listed buildings whose names mark them as pubs, near a postcode or lat and lon in England within radius_km (default 1, max 5), nearest first, with grade, listing date and list entry link. Outside England covered is false and the note says "Not covered" with the reason.
| Parameter | Type | Required | Description |
|---|---|---|---|
lat |
number | No | latitude, with lon |
limit |
integer | No | default 10, max 50 |
lon |
number | No | longitude, with lat |
postcode |
string | No | UK postcode |
radius_km |
number | No | default 1, max 5 |
Give a postcode, or lat and lon together.
Example call
{
"name": "listed_pubs_near",
"arguments": {
"limit": 3,
"postcode": "SW1A 1AA",
"radius_km": 1
}
}Answer
8 listed buildings named as pubs within 1 km; showing 3.
{
"covered": true,
"listed": [
{
"distance_km": 0.38,
"grade": "II",
"latitude": 51.4980216336791,
"list_entry": 1220224,
"listed_on": "1987-12-01",
"longitude": -0.144139232736597,
"matched_on": "PUBLIC HOUSE",
"name": "BAG O'NAILS PUBLIC HOUSE",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1220224"
},
{
"distance_km": 0.56,
"grade": "II",
"latitude": 51.4977235523655,
"list_entry": 1066148,
"listed_on": "1973-10-31",
"longitude": -0.135522843854962,
"matched_on": "PUBLIC HOUSE",
"name": "THE ALBERT PUBLIC HOUSE",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1066148"
},
{
"distance_km": 0.58,
"grade": "II",
"latitude": 51.5056409842155,
"list_entry": 1066937,
"listed_on": "1970-01-09",
"longitude": -0.137649151101426,
"matched_on": "PUBLIC HOUSE",
"name": "RED LION PUBLIC HOUSE",
"url": "https://historicengland.org.uk/listing/the-list/list-entry/1066937"
}
],
"note": "Matched on PUBLIC HOUSE, INN, TAVERN, ARMS, ALEHOUSE or BEERHOUSE in the list entry's name. The list names many pubs without any of these words, so this is a fl…",
"total": 8
}
pub_petitions
Petitions to Parliament about pubs
Search UK Parliament petitions, most signatures first. The query defaults to "pub", which also matches "pubs". state is one of all, awaiting_debate, awaiting_response, closed, debated, not_debated, open, rejected, with_response; the default is all. Give a postcode to see how many people in its constituency signed each of the top 5.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit |
integer | No | default 10, max 25 |
postcode |
string | No | UK postcode |
query |
string | No | default pub |
state |
string | No | default all |
Example call
{
"name": "pub_petitions",
"arguments": {
"limit": 3,
"query": "pub"
}
}Answer
87 petitions match "pub"; showing 3.
{
"note": "Petitions to the UK Parliament whose text matches the query, most signatures first. local_signatures covers the top 5 petitions only.",
"petitions": [
{
"closed_on": "2025-10-01",
"government_response": "The Government is setting up an inventory to recognise intangible cultural heritage in the UK. We will open a public call later this year and would welcome a su…",
"id": 716686,
"opened_on": "2025-04-01",
"signatures": 41026,
"state": "closed",
"title": "Recognise the production and serving of cask ale as Intangible Cultural Heritage",
"url": "https://petition.parliament.uk/petitions/716686"
},
{
"closed_on": "2026-04-16",
"government_response": "The Government recognises the importance of the hospitality sector across the UK. The Chancellor makes decisions on tax policy at fiscal events in the context o…",
"id": 743021,
"opened_on": "2025-10-16",
"signatures": 18502,
"state": "closed",
"title": "Cut VAT for local hospitality – for Pubs, Cafes \u0026 Restaurants ",
"url": "https://petition.parliament.uk/petitions/743021"
},
{
"closed_on": "2026-09-12",
"government_response": "The Government is supporting UK hospitality through Great British Summer Savings and lower business rates. Cutting VAT to 10% would cost around £11 billion a ye…",
"id": 759116,
"opened_on": "2026-03-12",
"signatures": 16111,
"state": "closed",
"title": "Reduce VAT on hospitality to 10%: protect jobs, communities \u0026 UK competitiveness",
"url": "https://petition.parliament.uk/petitions/759116"
}
],
"query": "pub",
"state": "all",
"total": 87
}
Sources and licences
Each answer carries the line for every publisher it draws on.
- Food Standards Agency Contains public sector information licensed under the Open Government Licence v3.0. Source: Food Standards Agency Food Hygiene Rating Scheme.
- data.police.uk Contains public sector information licensed under the Open Government Licence v3.0. Crime data from data.police.uk; locations are anonymised to street level.
- Environment Agency This uses Environment Agency flood and river level data from the real-time data API (Beta). Contains public sector information licensed under the Open Government Licence v3.0.
- Office for National Statistics Contains public sector information licensed under the Open Government Licence v3.0. Source: Office for National Statistics. UK Business Counts from Nomis.
- Historic England © Historic England 2026. Contains Ordnance Survey data © Crown copyright and database right 2026. Licensed under the Open Government Licence v3.0.
- UK Parliament Contains Parliamentary information licensed under the Open Parliament Licence v3.0.
- postcodes.io Contains public sector information licensed under the Open Government Licence v3.0. Postcode data from postcodes.io: contains OS data © Crown copyright and database right 2026, Royal Mail data © Royal Mail copyright and database right 2026 and ONS data © Crown copyright and database right 2026.