Food Hygiene MCP Server
Query UK food hygiene ratings from Claude.
Quick Start
Add to your Claude Desktop config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Option 1: Via PyPI (recommended)
{
"mcpServers": {
"food-hygiene": {
"command": "uvx",
"args": ["food-hygiene-mcp"]
}
}
}
Option 2: From source
git clone https://github.com/w4sspr/food-hygiene-mcp.git
cd food-hygiene-mcp
uv sync
{
"mcpServers": {
"food-hygiene": {
"command": "uv",
"args": ["run", "--directory", "/path/to/food-hygiene-mcp", "food-hygiene-mcp"]
}
}
}
Troubleshooting: If you get
spawn uvx ENOENTorspawn uv ENOENT, Claude Desktop can't find the executable. Use the full path instead (runwhich uvxorwhich uvto find it, e.g.,/Users/you/.local/bin/uvx).
Restart Claude Desktop, then try:
"What's the hygiene rating for Dishoom in London?"
Example Prompts
- "What's the hygiene rating for Dishoom in London?"
- "Find restaurants in Manchester with at least a 4-star rating"
- "Show me takeaways in SW1A 1AA"
- "Get full inspection details for establishment 1662145"
- "Find cafes within 2 miles of 51.5074, -0.1278"
Tools
search_establishments
Search for food establishments by name, location, or rating.
| Parameter | Type | Description |
|---|---|---|
name |
string | Business name (partial match) |
address |
string | Street or area |
postcode |
string | UK postcode |
latitude |
float | Latitude for geo-search |
longitude |
float | Longitude for geo-search |
radius_miles |
float | Max distance in miles (default: 1) |
business_type |
string | "restaurant", "takeaway", "pub", "cafe", "hotel", etc. |
min_rating |
int | Minimum hygiene rating (0-5) |
max_rating |
int | Maximum hygiene rating (0-5) |
get_establishment_details
Get full details for a specific establishment by FHRS ID.
Returns: rating breakdown (hygiene, structural, confidence in management), inspection date, local authority info.
Limitations
- England, Wales, and Northern Ireland only — Scotland uses a different system
- No aggregate statistics — can't calculate "% of 5-star restaurants" without fetching all data
- Limited business types — ~15 common types mapped; niche categories may not work
- Geo-search requires coordinates — city names alone won't trigger distance filtering
Roadmap
-
get_local_authority_stats— aggregate ratings by area (requires pagination through all establishments) - Scotland support via FHIS API
- Cache business type mappings
Why I Built This
Built to demonstrate MCP integration with UK public sector data for my FDE application.
See Also
- uk-charities-mcp — Query the Charity Commission register
Data Source
FSA Food Hygiene Rating Scheme API — free, public, no authentication required.
License
MIT
Metadata
Release files for food-hygiene-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| food_hygiene_mcp-0.1.1.tar.gz | 6.5 kB | Without provenance | Details for food_hygiene_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| food_hygiene_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for food_hygiene_mcp-0.1.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / food_hygiene_mcp-0.1.1.tar.gz
| Download URL | food_hygiene_mcp-0.1.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e81a2f61f32150257c15372eeb3095db769ad2d8c9e80234ddef127e54a00a
|
|
BLAKE2b-256 checksum How to use checksums |
bc2697787dc6f738e1e7cd2330c0d6b2db4598c8b6267423a3a99a9e964a4df6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / food_hygiene_mcp-0.1.1-py3-none-any.whl
| Download URL | food_hygiene_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae876f5f57f2869ec763e9df429d97d4ad4e87b41c285908f3375bc420a1753e
|
|
BLAKE2b-256 checksum How to use checksums |
2c12aec8b17b40a220cf9b55cc8491380c01ff03eb15a84b84e6715589a8ccb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for food-hygiene-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.