# Lex-Ray > Lex-Ray publishes EU legislation, UK legislation, UK-retained EU law and the > FCA Handbook as structured data: one stable URL per provision, parsed text > rather than scraped HTML, and an explicit statement of the currency limits on > the day you ask. 536 instruments carry full parsed text > (248 EU, 94 UK/UK-retained, > 194 FCA Handbook); several hundred more carry bibliographic > metadata only. If you are a language model or an agent acting for one, read this file rather than scraping the reader. Everything below is a stable contract. ## How a provision is addressed An act is addressed by its CELEX id or by a short acronym: `https://lexray.law/32024R1689` and `https://lexray.law/aia` are the same act. A provision is the act path plus a token — `a6` (article 6), `r2` (recital 2), `anx3` (annex III), `s5` / `sch2` for UK sections and schedules. An inserted provision keeps its letters, lower-case: `s1a` (section 1A), `sch2a`, `a6a`: - `https://lexray.law/aia/a6` — human-readable page - `https://lexray.law/aia/a6.md` — the same provision as Markdown - `https://lexray.law/aia/a6.json` — the same provision as structured JSON - `https://lexray.law/aia.json` — the whole act: metadata, structure, currency Anchors inside a payload (`#art_6.1`) are the anchors the rendered document uses, derived from each node's full structural path. Quote them; they resolve. An FCA Handbook provision has no token: its `anchor` is its card's id on the sourcebook's page and its `url` is that page at the card (`https://lexray.law/fca-prin#prv_2A_1_1R`). ## How to judge currency Entry into force and application are different legal events and are routinely years apart. Every machine rendering carries a `currency` block with: - `as_at` — the date the status was derived for, in the act's own legal frame (Brussels for EU acts, London for UK and FCA material) - `status` — one of `not_yet_in_force`, `in_force_not_yet_applying`, `partially_applying`, `applying`, `expired`, `unknown` - `subject` — **whom that status is about**: `you` (the act applies directly) or `member_states` (a directive, whose status describes the transposition timetable). Read with `reach` (`direct` / `via_national_law`) and the boolean `applies_directly`. - `status_basis` — `commencement_record` when the act's commencement has been resolved from the official notice (deterministic), or `dates_only` when it was derived from the date columns alone. A `dates_only` status is indicative: for an act that commences in stages, the recorded entry-into-force date can be one of the later application dates. FCA Handbook rows with no temporal model use `not_modelled` and publish `applies_directly: null`; do not infer commencement, history, future changes or direct applicability for them. - `version` — the corpus version the text was materialised from, if the act has more than one **`status` never means anything on its own — always read it with `subject`.** A directive binds Member States to legislate; the obligations reach a regulated party through national implementing law, which Lex-Ray does not hold. So `{"status": "applying", "subject": "member_states"}` says the transposition timetable is applying, **not** that anyone owes a duty under the directive directly. Only `subject: "you"` (equivalently `applies_directly: true`) licenses that reading. Two limits of the `dates_only` basis worth knowing before you quote one: - On a directive it answers from the recorded application date without consulting the transposition timetable, and reports `unknown` where there is no such date. `unknown` there is a real answer — a directive's status comes from its timetable or it is not known — and is never a reason to fall back on `date_entry_into_force`. - `partially_applying` is only ever reached from a resolved `commencement_record`; the date columns alone cannot see a tranche. `partially_applying` is not a rounding error: the AI Act applies in four tranches. Do not answer "is this in force" from `date_entry_into_force` alone, and do not reuse a `currency` block across days — re-fetch it. ## What requires an account The metadata, the structure and the currency of every act are open. Article and recital text, definitions, and resolved cross-references are the paid corpus. An open payload says so in its `entitlement` block and carries no article bodies — it is never silently truncated text. The public `.json` and `.md` routes return `200` with this projected payload. Full-content REST endpoints guarded by `lexray_content_required` instead return `401 authentication_required` or `402 lexray_access_required`, with `preview_available: true`. MCP refusals are in-band tool errors with stable `code` values such as `authentication_required`, `entitlement_required`, and `forbidden`. ## Setting up a connection 1. **The address** is `https://lexray.law/mcp`. A client that supports MCP sign-in (OAuth) needs nothing else: it finds the authorization server from the 401 challenge and `https://lexray.law/.well-known/oauth-protected-resource`, opens the Lex-Ray login in the person's browser, and calls as them. They need a Lex-Ray account and must have signed in to the website once. 2. **No sign-in support:** the person creates an API key on `https://lexray.law/profile` and the client sends it as `Authorization: Bearer lr_…` (or `X-API-Key: lr_…`). The key acts as them. Per-client configuration snippets: `https://lexray.law/docs/mcp-setup`. 3. **Terms.** Signing in and an API key both act as your Lex-Ray account, so the account must have accepted the current terms on the website. Until it has, every call is refused with `terms_acceptance_required` and a `terms_url` to visit in a browser; retrying will not help. On MCP the refusal is a JSON-RPC `403` with the code in `error.data.code`; on REST it is a `403` body with the same `code`. Tell the person to open `terms_url`. 4. **No credential at all** still reaches the public tools, throttled per IP (`anonymous_rate_limited` with `Retry-After`). 5. **No MCP client:** the same tools are `GET https://lexray.law/api/v1/*`, same key, same access, described by `https://lexray.law/api/v1/openapi.json`. To try it before connecting anything, the page at `https://lexray.law/mcp` (opened in a browser) has a live playground that runs the public tools. ## The structured route in - [MCP server](https://lexray.law/mcp) — JSON-RPC over HTTP, OAuth-protected. Opened in a browser the same address is a plain-language introduction for a person. It is dual-era and stateless: clients that open with the `initialize` handshake (MCP 2025-03-26 to 2025-11-25) are served without a session, and a request carrying MCP 2026-07-28 metadata — `params._meta` (`io.modelcontextprotocol/protocolVersion`, `io.modelcontextprotocol/clientCapabilities`) plus the `MCP-Protocol-Version` and `Mcp-Method` headers (and `Mcp-Name` for `tools/call` and `prompts/get`) — is served by that revision. Discovery is `initialize` (or `server/discover` for a 2026-07-28 client) followed by `tools/list`; both are available before a client has selected a credential. A 2026-07-28 client may declare the MCP Tasks extension (`io.modelcontextprotocol/tasks`) in its per-request `clientCapabilities`: `request_coverage` (ask for an instrument the corpus lacks) then answers with a task to poll with `tasks/get` (`Mcp-Name` set to the `taskId`) until it completes with the retrieval step. Every other client gets the request record at once and reads it with `get_coverage_request`. Tools that need no Lex-Ray plan (a valid key with no plan gets exactly these) are: `about_this_server`, `search_instruments`, `get_legislation`, `get_timeline`, `get_changes`. Tools that need a Lex-Ray trial or plan (a key alone is refused with `entitlement_required` and the upgrade link) are: `get_toc`, `get_legislation_text`, `get_article`, `list_fca_sourcebooks`, `list_articles`, `get_licence`, `get_fca_provision_history`, `get_fca_chapter_as_at`, `get_fca_chapter_provisions_as_at`, `get_fca_sourcebook_as_at`, `get_fca_historical_glossary`, `request_coverage`, `get_coverage_request`, `find_readings`, `list_readings`, `get_reading`, `get_parties`, `get_duties`, `get_exceptions`, `search_statements`, `get_statements`, `get_reading_coverage`, `get_reading_changes`, `export_readings`, `get_position`, `submit_feedback`. `get_article` resolves definitions and cross-references server-side, so a definition reads as its meaning rather than as a pointer to another instrument. `get_toc` returns at most `max_entries` entries (1-1000, default 200); `complete: false` means it was cut, `truncation.narrower_scopes` names the subtrees to request next with `scope` (paged by `narrower_scopes_offset`), and a truncated listing is never the whole act. To fit a context window ask for fewer entries: `depth` (1 = the top structural level) with `entries_below` on a cut entry, `limit`/`offset` to page in document order, and `headings: true` for the words of FCA provisions (off by default). `list_articles` is the exhaustive, unpaged alternative. - [MCP reference](https://lexray.law/docs/mcp) — every tool with its input schema, output fields, access tier and an example call; the data scope and licence/attribution terms; and `tools/list` as a JSON download per tier. Generated from the same registry as the list above. - [REST description](https://lexray.law/api/v1/openapi.json) — the same tools over plain HTTP, `GET /api/v1/*`: search, an act, its contents, provisions, text, dated events and readings. Public-tier operations need no key; the rest take `Authorization: Bearer lr_…` with the same access as MCP. Every operation names the MCP tool it is, and its tier. - [Readings REST description](https://lexray.law/api/v1/readings/openapi.json) — the same readings tools over `GET /api/v1/readings/*`, key-authenticated (`Authorization: Bearer lr_…`) with Lex-Ray access; every operation names the MCP tool it mirrors. Generated from the same definitions as the tools. - [OAuth metadata](https://lexray.law/.well-known/oauth-protected-resource) - [Sitemap](https://lexray.law/sitemap.xml) — every indexed act and provision - [Pricing](https://lexray.law/pricing) — what an account costs and what it opens - [About](https://lexray.law/about) — what Lex-Ray is, who sells it, and the key facts ## Reporting a problem If a call exposes a gap — a bug, a missing feature, or a task you could not complete — report it where you hit it. Reports reach the same triage queue as feedback from the web app; one that makes sense becomes a GitHub issue, where a fix is drafted and a human approves it. - [Feedback schema](https://lexray.law/api/feedback/schema) — the report's fields, where to send it and the rate limit; no credential needed to read it. - `POST https://lexray.law/api/feedback/report` with any API key (`Authorization: Bearer lr_…`) and a JSON body: `category` (`bug`, `feature`, `task_failure`, `other`), `summary`, `details`, and optionally `attempted`, `expected`, `actual`, `surface`, `error_code`, `request_id`, `identifier`, `client`. Unknown fields are refused with `invalid_arguments` naming the accepted ones. - MCP: the `submit_feedback` tool takes the same fields (Lex-Ray credential). ## Optional - [AI transparency notice](https://lexray.law/ai-transparency) — where this site uses AI, and how AI-assisted content is marked - [Privacy notice](https://lexray.law/privacy)