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.
Metadata
Release files for whatdotheyknow-mcp 0.1.3
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 | |
|---|---|---|---|---|
| whatdotheyknow_mcp-0.1.3.tar.gz | 10.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| whatdotheyknow_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / whatdotheyknow_mcp-0.1.3.tar.gz
| Download URL | whatdotheyknow_mcp-0.1.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3b6d4e1e3c69bf5611d0f598d12175adf8e08dc3c922cc3ca9048c0f55e3733
|
|
BLAKE2b-256 checksum How to use checksums |
8dec41bf769456c8df819e4ba755a154973ed4bffc0a0798a1f15d888111384b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / whatdotheyknow_mcp-0.1.3-py3-none-any.whl
| Download URL | whatdotheyknow_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81774832fa1493dd5caab627835e03140dad3ee045af30a76a31ee444bdf7ca9
|
|
BLAKE2b-256 checksum How to use checksums |
b5fe8362a21d0b95e9b2f968b035a0816d3b455adb81514a7f0ffe051af8e781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logSecurity for whatdotheyknow-mcp 0.1.3
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for whatdotheyknow_mcp-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logA 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.