uk-parliament-petitions-civic-mcp
# uk-parliament-petitions-civic-mcp
Official UK Government and Parliament public petitions API over Model Context Protocol (MCP). Public affairs teams, policy analysts, and civic journalists can track open petitions, signature counts, government responses, and scheduled parliamentary debates from `petition.parliament.uk` with no API keys. Setup takes seconds.
## Hosted endpoint
Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.
```text
https://uk-parliament-petitions-civic-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `list_uk_open_petitions` | List currently open UK Parliament petitions ordered by signature count |
| `list_uk_closed_petitions` | List closed UK Parliament petitions with final signature totals |
| `search_uk_petitions` | Search UK petitions by keyword across open, closed, or all states |
| `get_uk_petition_details` | Fetch full background text, government response, and debate details by petition ID |
| `list_uk_debated_petitions` | List petitions that have been debated in Parliament with debate transcripts |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"uk-parliament-petitions-civic": {
"url": "https://uk-parliament-petitions-civic-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
You can also run this server locally on Node 20 or newer over stdio.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every upstream request queries `petition.parliament.uk` with a polite `User-Agent` header (`mcpstamp-uk-parliament-petitions-civic/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions cleanly.
## More MCP servers and readiness check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.uk-parliament-petitions-civic-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 5 tools
The list tools are split by petition state (open/closed/debated), which is clear enough, and get_uk_petition_details is the only detail-level tool. However, search_uk_petitions supports a state filter, so it overlaps with list_uk_open_petitions and list_uk_closed_petitions; an agent could reasonably pick either for a state-based listing.
All five names follow a strict verb_noun pattern with a domain prefix: list_uk_*, search_uk_*, get_uk_*. Snake_case is used uniformly and the resource suffix is always the petition object.
Five tools is a tight, well-scoped surface for a read-only petitions API, and each tool maps to a distinct listing or retrieval need without filler.
The surface covers the main lifecycle views (open, closed, debated, keyword search, full detail with response and debate record), which is solid for a read-only server. Minor gaps remain: no signature breakdowns by constituency or a 'recently updated/trending' view, but these are workable around.