WhatDoTheyKnow MCP server — search and read UK FOI requests, authorities, and responses
Project description
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. |
Connect
Hosted (no install)
{
"mcpServers": {
"whatdotheyknow": {
"type": "http",
"url": "https://whatdotheyknow-mcp.fly.dev/mcp"
}
}
}
Local (uvx)
{
"mcpServers": {
"whatdotheyknow": {
"type": "stdio",
"command": "uvx",
"args": ["whatdotheyknow-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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whatdotheyknow_mcp-0.1.2.tar.gz.
File metadata
- Download URL: whatdotheyknow_mcp-0.1.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
092f07a1df0723e650f75c9852baa4466ec8d5da91cebaff29680d0369311edb
|
|
| MD5 |
f3045ff7c9e1f667a2d743a08a9dc0cc
|
|
| BLAKE2b-256 |
ba093fb73050801acfe95ab7280e51767b5eb9e4ae8253a8e8d1a852c433a873
|
Provenance
The following attestation bundles were made for whatdotheyknow_mcp-0.1.2.tar.gz:
Publisher:
release.yml on paulieb89/whatdotheyknow-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whatdotheyknow_mcp-0.1.2.tar.gz -
Subject digest:
092f07a1df0723e650f75c9852baa4466ec8d5da91cebaff29680d0369311edb - Sigstore transparency entry: 1429590686
- Sigstore integration time:
-
Permalink:
paulieb89/whatdotheyknow-mcp@5d35b8378adb5a4391d049550f9bee59ae7cf3fc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/paulieb89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5d35b8378adb5a4391d049550f9bee59ae7cf3fc -
Trigger Event:
release
-
Statement type:
File details
Details for the file whatdotheyknow_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: whatdotheyknow_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfae04fdd8dc1cd91490f8d78b730bf928e4ee0215836563571a065f66d97cea
|
|
| MD5 |
84b93b40adc36c451e7931bff99b453e
|
|
| BLAKE2b-256 |
283bce4130dd508e123e94dcecd7a6f084717d9a34bf7229dbc322a2e2268654
|
Provenance
The following attestation bundles were made for whatdotheyknow_mcp-0.1.2-py3-none-any.whl:
Publisher:
release.yml on paulieb89/whatdotheyknow-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whatdotheyknow_mcp-0.1.2-py3-none-any.whl -
Subject digest:
bfae04fdd8dc1cd91490f8d78b730bf928e4ee0215836563571a065f66d97cea - Sigstore transparency entry: 1429590694
- Sigstore integration time:
-
Permalink:
paulieb89/whatdotheyknow-mcp@5d35b8378adb5a4391d049550f9bee59ae7cf3fc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/paulieb89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5d35b8378adb5a4391d049550f9bee59ae7cf3fc -
Trigger Event:
release
-
Statement type: