# Check & Vote > Check & Vote is a French parliamentary observatory. It publishes legislative bills, decrees, reports and European texts, roll-call votes of the National Assembly, the Senate and the European Parliament, and the people who vote them, with their mandates. This file tells AI agents how to read that public data. The public data is read-only and needs no API key and no account. A second MCP server acts on behalf of a signed-in person, with their OAuth authorization (below). Names, fields and enumeration values are in English; texts (titles, summaries, bill content) are in French, the language of the official sources. ## API - [OpenAPI 3 description](https://www.checkandvote.eu/api/public/v1/openapi.json): the machine-readable contract of every route, with parameters, errors and an example response for each - [Readable documentation](https://www.checkandvote.eu/api/public/v1/docs): the same contract as a web page ## MCP server - [Connect an AI assistant](https://www.checkandvote.eu/connect-ai.html): set-up for Claude Desktop, Claude Code and any MCP client - MCP endpoint: `https://www.checkandvote.eu/mcp` (Streamable HTTP, read-only, no authentication). One tool per use (`search_texts`, `get_bill`, `get_text`, `list_votes`, `get_vote`, `get_person`, `get_person_votes`, `list_groups`...) with typed schemas: prefer it to the REST API when your client speaks MCP. Answers are short and paginated. - Account MCP endpoint: `https://www.checkandvote.eu/mcp/compte` (Streamable HTTP, OAuth 2.1). The same public tools, plus tools that read and change the signed-in person's account: positions on bills and decrees, follows, issues, delegation, forum, profile. Without a token it answers `401` with `WWW-Authenticate: resource_metadata`, which leads to the authorization server (dynamic client registration). Consent is never given through an assistant: a tool that needs one returns a link the person opens on the site. Guide for people, in 24 languages: [Use an AI assistant](https://www.checkandvote.eu/about/ai-assistant) ## How to call the REST API - Base URL: `https://www.checkandvote.eu/api/public/v1`. The version is part of the path: a field is never renamed or removed in v1. - Every route is a GET. Lists are paginated with `page` (from 0) and `size` (default 20, maximum 100). - If you are an AI agent, assistant or tool, add `ai=true` to the query (or the header `X-AI-Client: true`). It only helps us measure how AI uses the API and never changes the response. - A per-IP rate limit applies (120 requests per minute by default). Beyond it the answer is `429` with a `Retry-After` header in seconds. - Errors are RFC 9457 problem details (`application/problem+json`) in English. ## Where to start - `GET /search?q=...`: search bills, decrees and reports in one list - `GET /bills/{id}`: a legislative bill with its steps, votes and text versions - `GET /bills/{id}/reasons?stance=FOR|AGAINST|ABSTENTION`: the reasons citizens give for their stance on a bill, without author names, most shared first - `GET /votes/{id}` and `GET /votes/{id}/member-votes`: a roll-call vote and how each member voted - `GET /people?q=...` and `GET /people/{id}`: parliamentarians and their mandates. Candidates in the 2024 legislative election who never held a mandate are returned only with `kind=CANDIDATE`: when a name returns nothing, retry with it ## Site - [Sitemap](https://www.checkandvote.eu/sitemap.xml): every public page, with its canonical URL - [People](https://www.checkandvote.eu/people): members of parliament and of governments, with their mandates and votes (pages `/people/-`) - [Texts](https://www.checkandvote.eu/texts): bills, decrees and reports (pages `/texts/-`, `/legislative-files/<id>-<title>`, `/decrees/<id>-<title>`) - [Votes](https://www.checkandvote.eu/votes): roll-call votes with the result by political group (pages `/votes/<id>-<title>`) - Only the numeric id at the start of a page address matters: `/people/1234` and `/people/1234-marine-dupont` are the same page.