# LexAPI MCP  MCP Server

> **LexAPI MCP  MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to LexAPI MCP .
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/lexapi-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Research EU legislation, Court of Justice case law, and Official Journal publications through AI assistants. Search across 24 official languages, retrieve structured legal documents and historical versions, run semantic searches, and trace citations across a graph of 650K+ legal references.

---

## Details

- Server ID: `lexapi-mcp`
- Version: 0.5.0
- Tools: 33
- Authentication: API key, held by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — LexAPI MCP  has to be in the toolset
first. In order:

1. Add LexAPI MCP  to your toolset at https://mewcp.com/mcp/lexapi-mcp
2. Connect your LexAPI MCP  account (API key); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `list_accounts(provider)` — only when one app has several connected accounts
- `call_tool(server_maskedId, tool_name, args)` — execute

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (33)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `lex_info` _(read)_ — The caller's LexAPI plan, credit balance (remaining, reset date) and limits, plus the accepted values for search filters. Free (0 credits). Use it when the…
- `lex_search` _(read)_ — Structured EUR-Lex search: keywords plus filters (dates, type, author, procedure, collection) → CELEX numbers, titles, dates; read a hit with lex_get_document.…
- `lex_recent_documents` _(read)_ — Documents published on EUR-Lex in the last N days (default 7), newest first, optionally filtered. Use for "what was published this week". Cost: 3 credits per…
- `lex_resolve` _(read)_ — Turn a pasted EUR-Lex URL, an ELI URI, an ECLI (e.g. ECLI:EU:C:2020:559) or a bare CELEX into the canonical CELEX number plus EUR-Lex links. Cost: 1 credit.…
- `lex_get_document` _(read)_ — A parsed EU document by CELEX: metadata plus body (articles, recitals, judgment paragraphs, annexes). Large documents return an outline first; then read an…
- `lex_get_documents_batch` _(read)_ — Fetch up to 50 documents by CELEX in one call (batch size is clamped to the plan: FREE 1, STARTER 5, PROFESSIONAL 20, higher 50). Per-document failures are…
- `lex_get_metadata` _(read)_ — Metadata only for a CELEX — title, type, author, dates, ECLI/ELI, EuroVoc keywords, EUR-Lex link — without the body. Use to identify a document cheaply before…
- `lex_get_document_by_url` _(read)_ — Same as lex_get_document, for a eur-lex.europa.eu URL the user pasted (the CELEX is extracted from CELEX:… or uri=…). Always English. For ELI/ECLI links use…
- `lex_document_versions` _(read)_ — Every text change LexAPI observed on a document, newest first. These are snapshots of the document as LexAPI fetched it — NOT the law in force on a date (for…
- `lex_get_document_version` _(read)_ — The text of one observed snapshot — by version number, or the snapshot LexAPI held on a date (YYYY-MM-DD). This is what LexAPI had fetched then, NOT the law in…
- `lex_semantic_legislation` _(read)_ — Find EU legislation articles by meaning. Hits: law_id (CELEX), article_ref (use as articleId in lex_get_document), law_title, score, snippet. Consolidated hits…
- `lex_semantic_case_law` _(read)_ — Find CJEU / General Court judgments, orders and AG opinions by meaning. Returns cases with celex (feed to lex_get_document), case number, ECLI, court, date,…
- `lex_national_coverage` _(read)_ — Countries with national-law coverage: live status, legislation/case-law coverage (counts, dates, courts), semantic-search availability, citation-graph…
- `lex_list_national_documents` _(read)_ — Browse a country's national documents by title/type, newest-first by document date. documentKind ("act" | "decision") tells legislation from case law. Not yet…
- `lex_get_national_document` _(read)_ — A national document by id, e.g. "AT-NOR-12345". Same fields in every country: documentKind ("act" | "decision"); decisions add court, chamber, caseNumbers,…
- `lex_national_semantic_case_law` _(read)_ — Find one country's case law by meaning. Hits carry documentKind, ecli, dateOfDocument, and court/caseNumbers where indexed. hyde is a no-op here (no rewrite,…
- `lex_national_semantic_legislation` _(read)_ — Find one country's legislation articles by meaning. No asOf — current text only. Not yet live errors — check lex_national_coverage first. partial: true…
- `lex_cited_by` _(read)_ — Inbound citations: documents that cite, amend, correct, repeal, implement, transpose or are based on this act, with the edge type and its provenance. For…
- `lex_cites` _(read)_ — Outbound citations: what this document references, amends, repeals, implements, transposes or is based on, with the edge type and its provenance. Only…
- `lex_citation_network` _(read)_ — Both directions at once — documents this one cites and documents citing it — deduplicated, with edge types and provenance per neighbour; paging.citesTotal /…
- `lex_citation_path` _(read)_ — Shortest chain of outbound citations from one document to another (e.g. how a judgment reaches a directive), optionally over filtered edges only. found: false…
- `lex_related` _(read)_ — Documents that cite the most of the same acts as this one (bibliographic coupling) — "what else deals with this"; the edge filters narrow which shared…
- `lex_citation_stats` _(read)_ — Totals for the whole LexAPI citation graph plus the 10 most-cited and 10 most-citing documents. includeNational counts national documents of live countries too…
- `lex_transposition` _(read)_ — The measures member states (and the UK) notified to the Commission for an EU act (CELEX sector 3, e.g. a directive), by country, from the Publications Office's…
- `lex_counterparts` _(read)_ — A national document's counterparts in the other live countries, through the EU acts it transposes or implements (via), ranked: 1 = the national source records…
- `lex_extract_citations` _(write)_ — Read a document's EUR-Lex notice and add its outbound citations to the graph, so lex_cites / lex_related work for it. Idempotent: returns alreadyExtracted when…
- `lex_export` _(read)_ — Rows from the LexAPI corpus matching filters — e.g. regulations dated 2024 or documents whose text changed since a date. BUSINESS plans and above (403…
- `lex_list_webhooks` _(read)_ — The account's webhooks with status, criteria, watch list and delivery counters. Free.
- `lex_get_webhook` _(read)_ — One webhook with its recent delivery attempts (status, HTTP response, attempts). Pass deliveriesOffset/deliveriesLimit to page through older deliveries. Free.
- `lex_create_webhook` _(write)_ — Subscribe a URL (must be a public https URL) to (a) new EUR-Lex documents matching searchCriteria and/or (b) changes to watched acts (watchCelex: amendments,…
- `lex_update_webhook` _(write)_ — Change a webhook's name, URL, searchCriteria (null removes them), watch list (replaces the whole list) or status. status ACTIVE re-enables a PAUSED or FAILED…
- `lex_delete_webhook` _(destructive)_ — Permanently delete a webhook and its delivery history. Cannot be undone — confirm with the user first. Free.
- `lex_test_webhook` _(write)_ — POST a signed webhook.test payload to the webhook URL now and report the endpoint's response. Use to check an endpoint is reachable and verifies signatures.…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/lexapi-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/lexapi-mcp/connect/chatgpt
- VS Code: https://mewcp.com/mcp/lexapi-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/lexapi-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/lexapi-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/lexapi-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/lexapi-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/lexapi-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/lexapi-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/lexapi-mcp/connect/hermes
- DeepSeek Harness: https://mewcp.com/mcp/lexapi-mcp/connect/dsh
- Python: https://mewcp.com/mcp/lexapi-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/lexapi-mcp/connect/typescript