Skip to main content

WhatDoTheyKnow MCP server — search and read UK FOI requests, authorities, and responses

Project description

whatdotheyknow-mcp

Glama smithery badge Install in VS Code Install in VS Code Insiders Install in Cursor Install in VS Code (local)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatdotheyknow_mcp-0.1.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whatdotheyknow_mcp-0.1.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file whatdotheyknow_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: whatdotheyknow_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for whatdotheyknow_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a3b6d4e1e3c69bf5611d0f598d12175adf8e08dc3c922cc3ca9048c0f55e3733
MD5 608536386da8bca3589d593dd892f38f
BLAKE2b-256 8dec41bf769456c8df819e4ba755a154973ed4bffc0a0798a1f15d888111384b

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdotheyknow_mcp-0.1.3.tar.gz:

Publisher: release.yml on paulieb89/whatdotheyknow-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file whatdotheyknow_mcp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for whatdotheyknow_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 81774832fa1493dd5caab627835e03140dad3ee045af30a76a31ee444bdf7ca9
MD5 13ba51dd6bb85d91385f72f27ef1fef9
BLAKE2b-256 b5fe8362a21d0b95e9b2f968b035a0816d3b455adb81514a7f0ffe051af8e781

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdotheyknow_mcp-0.1.3-py3-none-any.whl:

Publisher: release.yml on paulieb89/whatdotheyknow-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page