Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/LexAPI

LexAPI

by io.github.Lex-API

Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.

Power your agent

Add this server

The publisher's own command. Not a PlugMCP endpoint.

Local command
npx -y @lexapi/[email protected]
Credentials from the publisher
  • LEXAPI_API_KEY — LexAPI API key. Get one at https://lex-api.com/dashboard (FREE tier available; semantic tools require a paid plan).
  • LEXAPI_BASE_URL — Override the LexAPI base URL. Defaults to https://lex-api.com/api/v1.
Provider
Claude Code
LEXAPI_API_KEY=<secret> LEXAPI_BASE_URL=<value> claude mcp add io.github.lex-api-lexapi-mcp -- npx -y @lexapi/[email protected]

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.lex-api-lexapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lexapi/[email protected]"
      ],
      "env": {
        "LEXAPI_API_KEY": "<secret>",
        "LEXAPI_BASE_URL": "<value>"
      }
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Questions

How do I install LexAPI?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does LexAPI need an API key?
The publisher lists these environment variables: LEXAPI_API_KEY, LEXAPI_BASE_URL.
What transport does LexAPI use?
LexAPI runs locally over stdio.
When was LexAPI last checked?
Last checked 2026-10-21. Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.

Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.

LexAPI MCP

Model Context Protocol server for LexAPI — query EUR-Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP-enabled clients.

Install once, get an API key, and ask your AI assistant: "summarize Article 17 of the GDPR" or "which regulations amend Directive 95/46/EC?" — the model calls LexAPI directly.

Install

You'll need a LexAPI API key. Create one for free at lex-api.com/dashboard (500 credits/month on the FREE tier, no card required).

Claude Desktop

Add to claude_desktop_config.json (location: ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "lexapi": {
      "command": "npx",
      "args": ["-y", "@lexapi/mcp"],
      "env": {
        "LEXAPI_API_KEY": "lex_..."
      }
    }
  }
}

Restart Claude Desktop.

Claude Code

claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcp

Cursor / other MCP clients

Any client that supports stdio MCP servers can run this. The command is npx -y @lexapi/mcp with LEXAPI_API_KEY in the environment.

Tools

ToolWhat it does
lex_searchStructured EUR-Lex search (text, dates, document type, author, language).
lex_get_documentFull parsed document by CELEX — metadata + articles, sections, tables, annexes.
lex_get_metadataMetadata only (faster than full content).
lex_get_document_by_urlFetch by EUR-Lex URL (pasted from a browser).
lex_recent_documentsRecent Official Journal publications (default 7 days).
lex_cited_byDocuments citing this CELEX (inbound, typed edges).
lex_citesDocuments this CELEX cites (outbound, typed edges).
lex_citation_networkBoth directions in one call.
lex_semantic_case_lawEmbedding search over EU case law (paid plans).
lex_semantic_legislationEmbedding search over EU legislation (paid plans).

Configuration

Env varDefaultPurpose
LEXAPI_API_KEY(required)Your API key. Get one at lex-api.com/dashboard.
LEXAPI_BASE_URLhttps://lex-api.com/api/v1Override for self-hosted or staging.

Troubleshooting

LEXAPI_API_KEY is not set — the env var isn't reaching the spawned process. Double-check the env block in your MCP client config.

LexAPI error (401 invalid_api_key) — the key is wrong or revoked. Generate a new one at the dashboard.

LexAPI error (429 …) — you hit your daily quota or per-minute rate limit. The server retries once automatically; if you see this in tool output, you're over quota. Upgrade your plan or wait for reset.

LexAPI error (403 …) on semantic tools — semantic search requires a paid plan. FREE tier returns 403 for those endpoints.

Local development

git clone https://github.com/Lex-API/lexapi-mcp.git
cd lexapi-mcp
npm install
npm run build

LEXAPI_API_KEY=lex_xxx node dist/index.js

License

MIT

How do I install LexAPI?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does LexAPI need an API key?
The publisher lists these environment variables: LEXAPI_API_KEY, LEXAPI_BASE_URL.
What transport does LexAPI use?
LexAPI runs locally over stdio.
When was LexAPI last checked?
Last checked 2026-10-21. Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Pricing
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • MCP Apps
  • Tools
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • Club
  • Work with us
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA