What Do They Know?
MCP 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.
README
whatdotheyknow-mcp
<!-- mcp-name: io.github.paulieb89/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 |
|---|---|
search_request_events |
Full-text search of FOI requests and responses via WhatDoTheyKnow's Atom feed. Supports structured expressions (status:successful, body:"Liverpool City Council"). |
search_authorities |
Search UK public authorities by name. Returns slug for use with other tools. |
get_request_feed_items |
Fetch the event timeline (sent, response, clarification) for a specific FOI request. |
build_request_url |
Build a prefilled WhatDoTheyKnow request URL for a given authority and topic. |
create_request_record |
Create a request via the write API (requires WDTK_API_KEY). |
update_request_state |
Update user-assessed state of a request (requires WDTK_API_KEY). |
Resources
| URI template | Returns |
|---|---|
wdtk://authorities/{authority_slug} |
Authority profile JSON |
wdtk://requests/{request_slug} |
FOI request detail JSON |
wdtk://users/{user_slug} |
User profile JSON |
wdtk://requests/{request_slug}/feed |
Request event Atom feed |
wdtk://users/{user_slug}/feed |
User activity Atom feed |
wdtk://authorities/all.csv |
Full CSV of all UK public authorities |
Prompts
| Prompt | Description |
|---|---|
draft_foi_request |
Draft a narrow, specific FOI request for a given authority and topic. |
Quickstart
Run locally
pip install fastmcp httpx pydantic
fastmcp run server.py
Inspect with the MCP Inspector:
npx @modelcontextprotocol/inspector http://localhost:8000/mcp
Environment variables
| Variable | Required | Description |
|---|---|---|
WDTK_API_KEY |
Optional | Enables create_request_record and update_request_state write tools |
Upstream API and Licence
| Source | API | Licence | Auth |
|---|---|---|---|
| WhatDoTheyKnow | www.whatdotheyknow.com |
OGL v3 | None (read) / API key (write) |
Data is sourced directly from the WhatDoTheyKnow public API. The platform is operated by mySociety.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.