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.2.tar.gz (9.5 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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for whatdotheyknow_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 092f07a1df0723e650f75c9852baa4466ec8d5da91cebaff29680d0369311edb
MD5 f3045ff7c9e1f667a2d743a08a9dc0cc
BLAKE2b-256 ba093fb73050801acfe95ab7280e51767b5eb9e4ae8253a8e8d1a852c433a873

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdotheyknow_mcp-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for whatdotheyknow_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfae04fdd8dc1cd91490f8d78b730bf928e4ee0215836563571a065f66d97cea
MD5 84b93b40adc36c451e7931bff99b453e
BLAKE2b-256 283bce4130dd508e123e94dcecd7a6f084717d9a34bf7229dbc322a2e2268654

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdotheyknow_mcp-0.1.2-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