Skip to main content
Glama

@pipeworx/es-tc-case-law

Spanish Tribunal Constitucional case law: search its sentencias, autos and declaraciones, and read any resolution in full by ECLI, with the official URL of each.

Part of Pipeworx — an MCP gateway connecting AI agents to 2106+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Not covered: the Tribunal Supremo and the ordinary courts. This pack reads the Tribunal Constitucional only.

Tools

  • tc_search(query?, type?, year?, number?, page?) — free-text search over the full text of the Tribunal's resolutions, filterable by type (sentencia, auto, declaracion), year and number. Returns type, number, year, date, BOE reference, chamber, process type, descriptive synthesis, ECLI and official URL for each hit, with the total hit count. 10 hits per page. No hits returns found: false with the reason.

  • tc_get_resolution(ecli | year + number + type, max_chars?) — one resolution: ECLI, title, chamber, dates, the official summary, the official URL and the full text (antecedentes, fundamentos jurídicos, fallo, votos particulares). An ECLI or number that does not exist returns found: false with the reason, never an empty text.

Related MCP server: tc-mcp

Auth

Keyless.

Data sources

  • Tribunal Constitucional de España, Buscador de jurisprudencia constitucional — the Tribunal's own database of its resolutions. Public, no login.

ECLI format: ECLI:ES:TC:YEAR:NUMBER, with an A suffix for an auto and D for a declaración; no suffix is a sentencia (for example ECLI:ES:TC:2023:537A is auto 537/2023). In search results the ECLI is built from the resolution's type, number and year; tc_get_resolution returns the ECLI printed on the resolution itself and refuses to return a resolution whose ECLI differs from the one asked for.

The Tribunal Supremo is out of scope: its decisions are published by the CGPJ's documentation centre, which places an image CAPTCHA in front of the full text. This pack does not read that database.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "es-tc-case-law": {
      "url": "https://gateway.pipeworx.io/es-tc-case-law/mcp"
    }
  }
}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/es-tc-case-law/mcp returns the tools in the table above plus five Pipeworx tools: ask_pipeworx, discover_tools, ask_pipeworx_grounded, company_register_search and company_facts. ask_pipeworx answers a question this pack does not cover by routing across the whole catalog, without adding a second MCP server.

Add an option to the same URL:

  • https://gateway.pipeworx.io/es-tc-case-law/mcp?meta=1 lists this pack's tools plus up to 48 shared Pipeworx tools (48 when this README was generated; a connection without an account lists fewer, and its own tools/list is the exact answer on any given day).

  • https://gateway.pipeworx.io/es-tc-case-law/mcp?meta=0 lists this pack's tools alone.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 2106+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one (it is not listed on a ?meta=0 connection).

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/tc_search \
  -H 'Content-Type: application/json' \
  -d '{"query":"libertad de expresión","type":"sentencia","year":2026}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/tc_search. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Run it from npm

@pipeworx/mcp-es-tc-case-law is a local stdio bridge to the Pipeworx gateway: your MCP client starts it with npx, and it forwards every call to the same https://gateway.pipeworx.io/es-tc-case-law/mcp endpoint shown above. It needs network access; there is no offline mode.

{
  "mcpServers": {
    "es-tc-case-law": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-es-tc-case-law"]
    }
  }
}

Without a key it calls anonymously, capped at 50 calls a day. A free account raises that to 200 a day: get a key at https://pipeworx.io/signup and add "env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry. The key is sent as a Bearer token, the same way a hosted connection sends it, so calls are metered and billed exactly as they are there.

It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to also list ask_pipeworx and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check your Node version's documentation.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Es Tc Case Law data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables searching and reading Peru's National Systematized Jurisprudence from the Judiciary's public portal, including resolutions and arbitration award records, with full-text and exact-catalog filtering plus paginated results. Users can retrieve complete summaries, public PDF URLs, and complete Excel exports of a search without any authentication or browser.
      10
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables searching and reading Peruvian Constitutional Court jurisprudence by querying both the current thematic systematization and the 2001-2018 historical resolutions inventory at once, returning them fused and deduplicated as a single source. Supports full-text search, exact filters (case number, parties, dates, chamber, district, type, keywords), thesaurus and thematic browsing, and full metadata plus complete reasoning text with public PDF links, without credentials or browser automation.
      9
      2
      Apache 2.0