What Do They Know
whatdotheyknow-mcp
A Model Context Protocol server for UK Freedom of Information research. Connects AI assistants to WhatDoTheyKnow — the UK's largest FOI request platform — to search requests, read responses, look up public authorities, and draft new requests.
Tools
Tool | Description |
| Full-text search of FOI requests and responses via WhatDoTheyKnow's Atom feed. Supports structured expressions ( |
| Search UK public authorities by name. Returns slug for use with other tools. |
| Fetch the event timeline (sent, response, clarification) for a specific FOI request. |
| Build a prefilled WhatDoTheyKnow request URL for a given authority and topic. |
| Create a request via the write API (requires |
| Update user-assessed state of a request (requires |
Resources
URI template | Returns |
| Authority profile JSON |
| FOI request detail JSON |
| User profile JSON |
| Request event Atom feed |
| User activity Atom feed |
| Full CSV of all UK public authorities |
Prompts
Prompt | Description |
| Draft a narrow, specific FOI request for a given authority and topic. |
Quickstart
Run locally
pip install fastmcp httpx pydantic
fastmcp run server.pyInspect with the MCP Inspector:
npx @modelcontextprotocol/inspector http://localhost:8000/mcpEnvironment variables
Variable | Required | Description |
| Optional | Enables |
Upstream API and Licence
Source | API | Licence | Auth |
WhatDoTheyKnow |
| None (read) / API key (write) |
Data is sourced directly from the WhatDoTheyKnow public API. The platform is operated by mySociety.
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulieb89/whatdotheyknow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server