プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

LexAPI

作者:Lex-APIバージョン 0.3.0i★ –iパソコンでもクラウドでも
レジストリ名io.github.Lex-API/lexapi-mcp

インストール

概要

作者による説明(英語の原文)

EU law for AI: EUR-Lex legislation and case law, citation graph, semantic search with asOf.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンでもクラウドでも
  • トランスポート: stdio, Streamable HTTP
  • カテゴリ: 検索・AIの記憶
  • 入力が必要なもの:LEXAPI_API_KEY, Authorization

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • 作者のサーバーで動きます。あなたが頼んだ内容は、作者のサーバーを通ります。
  • 自分で入力するもの: LEXAPI_API_KEY, LEXAPI_BASE_URL, LEXAPI_MCP_READ_ONLY, LEXAPI_TIMEOUT_MS, Authorization

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • クラウドで動くインストール不要。インターネット経由でつながります
  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

このアドレスはリクエストの header にキーが必要ですが、コネクタを追加するメニューでは設定できません。代わりにClaude Code、Cursor、VS Codeを使ってください。

または、パソコンで動かす

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "lexapi": {
      "command": "npx",
      "args": [
        "-y",
        "@lexapi/mcp"
      ],
      "env": {
        "LEXAPI_API_KEY": "your-value",
        "LEXAPI_BASE_URL": "your-value",
        "LEXAPI_MCP_READ_ONLY": "your-value",
        "LEXAPI_TIMEOUT_MS": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add --transport http lexapi https://mcp.lex-api.com/v1 --header 'Authorization: your-value'

または、パソコンで動かす

claude mcp add lexapi --env LEXAPI_API_KEY=your-value --env LEXAPI_BASE_URL=your-value --env LEXAPI_MCP_READ_ONLY=your-value --env LEXAPI_TIMEOUT_MS=your-value -- npx -y @lexapi/mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "lexapi": {
      "url": "https://mcp.lex-api.com/v1",
      "headers": {
        "Authorization": "your-value"
      }
    }
  }
}

または、パソコンで動かす

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "lexapi": {
      "command": "npx",
      "args": [
        "-y",
        "@lexapi/mcp"
      ],
      "env": {
        "LEXAPI_API_KEY": "your-value",
        "LEXAPI_BASE_URL": "your-value",
        "LEXAPI_MCP_READ_ONLY": "your-value",
        "LEXAPI_TIMEOUT_MS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "lexapi": {
      "type": "http",
      "url": "https://mcp.lex-api.com/v1",
      "headers": {
        "Authorization": "your-value"
      }
    }
  }
}

または、パソコンで動かす

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "lexapi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lexapi/mcp"
      ],
      "env": {
        "LEXAPI_API_KEY": "your-value",
        "LEXAPI_BASE_URL": "your-value",
        "LEXAPI_MCP_READ_ONLY": "your-value",
        "LEXAPI_TIMEOUT_MS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

このアドレスはリクエストの header にキーが必要ですが、コネクタを追加するメニューでは設定できません。代わりにClaude Code、Cursor、VS Codeを使ってください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • LEXAPI_API_KEY 秘密 必須 env
    LexAPI API key. Get one at https://lex-api.com/dashboard (FREE plan: 500 credits/month).
  • LEXAPI_BASE_URL env
    Override the LexAPI base URL. Defaults to https://lex-api.com/api/v1.
  • LEXAPI_MCP_READ_ONLY env
    Set to true to hide every non-read-only tool (webhook create/update/delete/test, citation extraction).
  • LEXAPI_TIMEOUT_MS env
    Deadline per tool call in milliseconds, retries included (default 55000). Raise only together with the MCP client timeout.
  • Authorization 秘密 必須 HTTP header
    Bearer . Get one at https://lex-api.com/dashboard (FREE plan: 500 credits/month).

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

このサーバーのツール一覧はまだ読み取っていません。エンドポイントは順番にチェックしています。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Lex-API で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    エンドポイントが応答する

    まだチェックしていません。エンドポイントは順番にチェックしています

  • … 未チェック

    OAuthでサインイン

    まだチェックしていません。エンドポイントは順番にチェックしています

  • … 未チェック

    ツールの説明に隠れた指示がない

    まだチェックしていません。エンドポイントをチェックするときにツール一覧を読み取ります

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの7226件のうち0%よりスターが多い
  • このカテゴリのほかの7226件のうち79%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの7226件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

LexAPIは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:LEXAPI_API_KEY, Authorization

パソコンで動きますか、それともクラウドですか?

どちらでも使えます。パソコンにインストールしても、クラウド版につないでもかまいません。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.3.0)がレジストリに届いたのは9 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT3 日前更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT20 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT44 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

LexAPI MCP

Model Context Protocol server for LexAPI — EU law for AI assistants: EUR-Lex legislation parsed to article level, CJEU case law, the typed citation graph, and semantic search (including the law as in force on a past date). Works with Claude, Cursor, VS Code and any other MCP client.

Ask your assistant *"what does Article 17 GDPR require?"*, *"which acts amended REACH?"* or *"what were the own-funds requirements for banks in June 2019?"* — the model calls LexAPI and answers from the source text, with CELEX citations.

You need a LexAPI account. With the hosted server you just sign in with LexAPI from your MCP client; with the npm package (or if you prefer), use an API key from lex-api.com/dashboard. There is a FREE plan, no card required, with enough credits to try the read tools; current allowances are on lex-api.com/pricing.

Connect to the hosted server (sign in with LexAPI)

The server is hosted at `https://mcp.lex-api.com/v1` (Streamable HTTP). Add that URL to your client and sign in with your LexAPI account when it asks — no key to copy. You see a LexAPI consent page listing what the connection can do; calls are billed to your plan exactly like your own API key, and you can disconnect the app at any time under *Dashboard → Connected apps* (that revokes it immediately).

claude.ai and Claude Desktop

*Settings → Connectors → Add custom connector*, name it LexAPI, URL https://mcp.lex-api.com/v1, then *Connect* and sign in. Connectors added on claude.ai are also available in Claude Desktop (same account).

Claude Code
claude mcp add --transport http lexapi https://mcp.lex-api.com/v1

Then run /mcp in Claude Code and choose *Authenticate* for lexapi; your browser opens the LexAPI sign-in.

Other MCP clients

Any client that implements MCP authorization (OAuth 2.1 with protected-resource discovery) connects the same way: point it at https://mcp.lex-api.com/v1. The server answers an unauthenticated request with 401 and WWW-Authenticate: Bearer … resource_metadata="https://mcp.lex-api.com/.well-known/oauth-protected-resource/v1"; the client discovers LexAPI (https://lex-api.com) as the authorization server from there.

With an API key instead

Clients without OAuth support — or scripts — send a key from the dashboard as Authorization: Bearer lex_... (or x-api-key: lex_...):

claude mcp add --transport http lexapi https://mcp.lex-api.com/v1 --header "Authorization: Bearer lex_..."

Run it locally (npm, API key)

Claude Desktop (local)

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

{

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

Restart Claude Desktop.

Claude Code (local)
claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcp
Cursor, VS Code and other stdio clients

Run npx -y @lexapi/mcp with LEXAPI_API_KEY in the environment (Cursor: ~/.cursor/mcp.json; VS Code: .vscode/mcp.json; same command / args / env shape as above).

The npm package needs Node.js 20 or newer. It uses an API key; signing in with LexAPI is a feature of the hosted server.

Tools

Every call is billed from your LexAPI credit pool exactly like the REST endpoint it wraps; each tool's description states its cost so the model can see it.

ToolWhat it doesCredits
lex_semantic_legislationFind legislation articles by meaning. asOf returns the text in force on a date. Consolidated hits are labelled, with the authentic act to cite.5 (+ up to 5 per live version fetch with asOf)
lex_semantic_case_lawFind judgments, orders and AG opinions by meaning; hyde for terse queries; court / date / case-number filters.5 (15 with hyde)
lex_searchStructured EUR-Lex search: text, dates, type, author, procedure, collection.3 per page
lex_recent_documentsWhat was published in the last N days.3 per 10 results
lex_resolveURL / ELI / ECLI → CELEX.1
lex_get_documentA document by CELEX — an outline first for large acts, then articleId or include parts; language and fallback languages.1 corpus · 4 Cellar · 5 live
lex_get_documents_batchUp to 50 documents at once (plan-capped).per document, as above
lex_get_metadataMetadata only.1 · 4 · 5
lex_get_document_by_urlA document from a pasted EUR-Lex URL.1 · 4 · 5
lex_document_versionsLexAPI's observed version history of a document.1
lex_get_document_versionOne observed snapshot, by version number or date.1
lex_cited_byDocuments citing / amending / correcting / repealing an act. includeNational adds national neighbours (BUSINESS+).1
lex_citesWhat a document cites. includeNational adds national neighbours (BUSINESS+).1
lex_citation_networkBoth directions in one call. includeNational adds national neighbours (BUSINESS+).20
lex_citation_pathShortest citation chain between two documents. includeNational follows national documents (BUSINESS+).20
lex_relatedDocuments citing the same acts (bibliographic coupling). includeNational considers national documents (BUSINESS+).20
lex_citation_statsCitation graph totals and most-cited documents. includeNational counts national documents (BUSINESS+).20
lex_extract_citationsAdd a document's outbound citations to the graph.5 (1 if already done)
lex_exportCorpus rows by type (exact label, any case) or type family (documentTypeCode), author, collection, language, document date (dateFrom/dateTo), changedSince or fetchedSince (BUSINESS plans and above).1 per row returned, at least 1 per call (1-credit admission, rows reserved up to limit, unreturned rows refunded; 402 if the pool cannot cover the reservation)
lex_national_coverageWhich countries' national law LexAPI covers and what's live in each (sources, licences, attribution). Call first.free
lex_list_national_documentsBrowse a country's national legislation/case law by title or type; cursor paging past the first 1,000 rows.3 per call
lex_get_national_documentA national document by id. Always served from the corpus.5 → 1
lex_national_semantic_case_lawSemantic search over one country's case law.5
lex_national_semantic_legislationSemantic search over one country's legislation.5
lex_infoYour plan, credit balance and limits.free
lex_list_webhooks · lex_get_webhookYour webhooks and their deliveries.free
lex_create_webhook · lex_update_webhook · lex_delete_webhook · lex_test_webhookWebhooks for new documents and for changes to watched acts (paid plans). The URL must be a public https URL (port 443/8443, no internal hosts or private addresses) — checked here as well as by the API.free
National law

lex_national_coverage, lex_list_national_documents, lex_get_national_document, lex_national_semantic_case_law and lex_national_semantic_legislation cover member-state legislation and case law alongside the EU_LAW tools above. A country can be registered on LexAPI before it is made available to customers — always call lex_national_coverage first; the other tools answer an error for a country that isn't live yet. The citation-graph tools (lex_cited_by, lex_cites, lex_citation_network, lex_citation_path, lex_related, lex_citation_stats) accept national document ids directly (e.g. "AT-NOR-12345") and an includeNational option to pull in national neighbours — BUSINESS, SCALE and ENTERPRISE only, 403 below that. National results have the same fields in every country (LexAPI API 2.8.0): documentKind (act | decision) everywhere, and on a decision court, chamber, caseNumbers and citedNorms — whatever the source calls them. Every national result carries attribution (the official source and its licence, e.g. RIS, gesetze-im-internet.de, Normattiva, Légifrance/Judilibre, the Rechtspraak open data) — show it to the user alongside anything quoted. On FREE/STARTER/PROFESSIONAL plans, national-law calls also draw from a separate monthly allowance (reported as allowance on each response); BUSINESS and higher have no separate limit. A document its source withdrew (a takedown, a pseudonymisation fix) answers a distinct error — nothing of it is served, not even the title; the model is told not to retry and to drop any cached copy.

How results are shaped for models
  • Compact output. Responses drop envelopes and duplicate legacy fields. Documents keep their metadata, textAvailability (why text is missing, which languages exist, a pointer to the latest consolidated version) and language-fallback labels.
  • Large documents. lex_get_document returns the whole body when it fits maxChars (default 40,000 characters), otherwise an outline (article ids, section tree, counts). Fetch an article with articleId or parts with include; long parts continue with offset.
  • Consolidated texts are not authentic. Consolidated versions carry consolidated: true, consolidatedAsOf, baseCelex and a note: quote them, cite the act as published in the Official Journal.
  • `asOf`. Each legislation hit says whether it carries the version in force on that date (asOfResolved, asOfVersion); unresolved hits keep the current text with an asOfReason, and the response warns about them.
  • Errors say what to do. A 402 states the credits needed, the credits left and the reset date; a 429 says how long to wait.

Configuration

Env varDefaultPurpose
LEXAPI_API_KEY*(required)*Your API key from lex-api.com/dashboard.
LEXAPI_BASE_URLhttps://lex-api.com/api/v1Override for staging or self-hosting.
LEXAPI_MCP_READ_ONLYofftrue hides (and refuses) every tool that is not read-only: webhook create / update / delete / test, and lex_extract_citations (it writes to the shared citation graph and costs credits).
LEXAPI_TIMEOUT_MS55000Deadline for one tool call towards LexAPI, retries included. Raise it only together with your MCP client's own tool timeout.
LEXAPI_MCP_ALLOWED_ORIGINS*(none)*Hosted HTTP server only: browser Origins allowed to call it (comma-separated, * for any). Requests without an Origin header (all non-browser clients) are always allowed.

The key is sent only as the x-api-key header to LexAPI; it is never logged or included in tool output. A LEXAPI_API_KEY containing whitespace or control characters (e.g. a multi-line paste) is rejected at startup.

Hosting the HTTP server

npm run start:http (or the Dockerfile) runs the Streamable HTTP transport (POST /v1, GET /health). Self-hosted, it accepts LexAPI API keys (Authorization: Bearer lex_… or x-api-key: lex_…); a request without one gets 401. A value that cannot be an API key (it contains a . or is longer than 8192 characters) is answered 401 and never forwarded.

Env varDefaultPurpose
PORT3000Listen port.
LEXAPI_BASE_URLhttps://lex-api.com/api/v1LexAPI REST base.

Sign in with LexAPI is a feature of the hosted server at https://mcp.lex-api.com/v1: it needs an OAuth client registered with LexAPI, so a self-hosted copy runs with API keys only. The OAuth-related settings in src/oauth/config.ts (LEXAPI_OAUTH_*, LEXAPI_MCP_*) are for that deployment; the server refuses to start if they are set incompletely.

`/health` returns status

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く