MCP Server Studio

Eur Lex MCP Server MCP server

Search EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.

Registry name: io.github.cyanheads/eur-lex-mcp-server

Publisher
cyanheads
Runs
Local or hosted
Package
npm
Version
0.21.0
Category
Search & knowledge
Updated
2026-11-18

Source code on GitHub

Set up Eur Lex MCP Server (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/[email protected]"
      ],
      "env": {
        "CELLAR_SPARQL_ENDPOINT": "<CELLAR_SPARQL_ENDPOINT>",
        "EURLEX_CONTENT_BASE_URL": "<EURLEX_CONTENT_BASE_URL>",
        "SPARQL_QUERY_TIMEOUT_MS": "<SPARQL_QUERY_TIMEOUT_MS>",
        "MAX_SPARQL_RESULTS": "<MAX_SPARQL_RESULTS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add eur-lex-mcp-server -e CELLAR_SPARQL_ENDPOINT='<CELLAR_SPARQL_ENDPOINT>' -e EURLEX_CONTENT_BASE_URL='<EURLEX_CONTENT_BASE_URL>' -e SPARQL_QUERY_TIMEOUT_MS='<SPARQL_QUERY_TIMEOUT_MS>' -e MAX_SPARQL_RESULTS='<MAX_SPARQL_RESULTS>' -e MCP_LOG_LEVEL='<MCP_LOG_LEVEL>' -- npx -y @cyanheads/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/[email protected]"
      ],
      "env": {
        "CELLAR_SPARQL_ENDPOINT": "<CELLAR_SPARQL_ENDPOINT>",
        "EURLEX_CONTENT_BASE_URL": "<EURLEX_CONTENT_BASE_URL>",
        "SPARQL_QUERY_TIMEOUT_MS": "<SPARQL_QUERY_TIMEOUT_MS>",
        "MAX_SPARQL_RESULTS": "<MAX_SPARQL_RESULTS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "eur-lex-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/[email protected]"
      ],
      "env": {
        "CELLAR_SPARQL_ENDPOINT": "<CELLAR_SPARQL_ENDPOINT>",
        "EURLEX_CONTENT_BASE_URL": "<EURLEX_CONTENT_BASE_URL>",
        "SPARQL_QUERY_TIMEOUT_MS": "<SPARQL_QUERY_TIMEOUT_MS>",
        "MAX_SPARQL_RESULTS": "<MAX_SPARQL_RESULTS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/[email protected]"
      ],
      "env": {
        "CELLAR_SPARQL_ENDPOINT": "<CELLAR_SPARQL_ENDPOINT>",
        "EURLEX_CONTENT_BASE_URL": "<EURLEX_CONTENT_BASE_URL>",
        "SPARQL_QUERY_TIMEOUT_MS": "<SPARQL_QUERY_TIMEOUT_MS>",
        "MAX_SPARQL_RESULTS": "<MAX_SPARQL_RESULTS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Set up Eur Lex MCP Server (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://eur-lex.caseyjhand.com/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http eur-lex-mcp-server https://eur-lex.caseyjhand.com/mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "url": "https://eur-lex.caseyjhand.com/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "eur-lex-mcp-server": {
      "type": "http",
      "url": "https://eur-lex.caseyjhand.com/mcp"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "eur-lex-mcp-server": {
      "serverUrl": "https://eur-lex.caseyjhand.com/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
CELLAR_SPARQL_ENDPOINTNoCELLAR SPARQL endpoint URL override (e.g., for a local Virtuoso mirror).
EURLEX_CONTENT_BASE_URLNoBase URL of the EU Publications Office CELLAR content-negotiation resolver that serves act full text; override e.g. for a local mirror.
SPARQL_QUERY_TIMEOUT_MSNoClient-side timeout for SPARQL requests in milliseconds.
MAX_SPARQL_RESULTSNoEnforced ceiling on LIMIT in all generated SPARQL queries.
MCP_LOG_LEVELNoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More search & knowledge MCP servers