Skip to main content
Glama
README.md
<p align="center">
  <img src="assets/github-banner.png" alt="DC/LO Official Graphical MCP Server & Research Tools Suite" width="100%"/>
</p>

<p align="center">
  <a href="https://datacentrelitigation.org/tools"><strong>Live Tools Hub</strong></a> ·
  <a href="https://datacentrelitigation.org/mcp"><strong>Remote MCP Endpoint</strong></a> ·
  <a href="https://datacentrelitigation.org/data"><strong>Open Data v0</strong></a> ·
  <a href="docs/ANTHROPIC_CONNECTOR_SUBMISSION.md"><strong>Anthropic Connector Pack</strong></a> ·
  <a href="spec/openapi.json"><strong>OpenAPI 3.1</strong></a>
</p>

---

# Official DC/LO MCP App & Research Tools Suite

The official **Model Context Protocol (MCP) App & Server** (`@modelcontextprotocol/ext-apps`, protocol `2026-01-26`), interactive `ui://dclo/...` views, **Python/R research clients**, **Agent Skill**, and **OpenAPI 3.1** specification for the **Data Centre Litigation Observatory ([DC/LO](https://datacentrelitigation.org))** — built by the **CLIMPACT Project** at the **University of Bari Aldo Moro**.

Query **784+ global legal disputes** across **39 jurisdictions**, **4,797 catalogued primary legal documents**, **297+ GW of contested power capacity**, and **2,660+ corporate operators and SPVs/LLCs** directly from **Claude**, **ChatGPT**, **VS Code**, **Cursor**, **Antigravity**, **Python**, and **R** — with interactive bidirectional MCP App views, zero API keys, and zero hallucinations.

---

## Architecture

```mermaid
flowchart LR
    CDN["datacentrelitigation.org/dati/dclo/v0/<br/>(disputes.json, tables/*.csv, documents.json, cases/*.json)"]
    CORE["@dclo/mcp-server<br/>Live TTL Cache + Legal-Empirical Engine"]
    UI["Official DC/LO MCP App (@modelcontextprotocol/ext-apps)<br/>ui://dclo/overview, dispute, explorer, operator, compare"]
    HTTP["Streamable HTTP<br/>https://datacentrelitigation.org/mcp"]
    STDIO["Local CLI (stdio)<br/>npx -y @dclo/mcp-server"]
    CLIENTS["Claude, ChatGPT, VS Code, Cursor, Antigravity"]
    LANGS["Python SDK, R Client, OpenAPI 3.1, SKILL.md"]

    CDN --> CORE
    CORE --> UI
    CORE --> HTTP --> CLIENTS
    UI <--> HTTP
    CORE --> STDIO --> CLIENTS
    UI <--> STDIO
    CDN --> LANGS
```

---

## 1-Click Setup & Installation

### 1. Claude.ai / Claude Desktop (Remote MCP — Zero Install)
Add a Custom Connector / Remote MCP Server with:
- **Name:** `DC/LO — Data Centre Litigation Observatory`
- **Remote MCP URL:** `https://datacentrelitigation.org/mcp`
- **Authentication:** None (public read-only)

### 2. Claude Desktop / Claude Code (`npx` Local stdio)
Add to `claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "dclo": {
      "command": "npx",
      "args": ["-y", "@dclo/mcp-server"]
    }
  }
}
```

### 3. Cursor / VS Code / Antigravity (`mcp.json`)
```json
{
  "mcpServers": {
    "dclo": {
      "url": "https://datacentrelitigation.org/mcp"
    }
  }
}
```
*(Or use `"command": "npx", "args": ["-y", "@dclo/mcp-server"]` for local stdio execution, or pass `--data-dir /path/to/dclo` for offline use.)*

### 4. Python & Google Colab
```python
# Standalone 1-file install or pip install -e clients/python
import dclo

print(dclo.overview())
df = dclo.to_dataframe()
case = dclo.get_dispute("DCLO-0052")
print(dclo.cite("DCLO-0052", style="oscola"))
```
See [`notebooks/dclo_research_starter.ipynb`](notebooks/dclo_research_starter.ipynb) for an interactive research starter.

### 5. R / RStudio (1-Line Source)
```r
source("https://datacentrelitigation.org/dati/dclo/tools/dclo.R")
df <- dclo_disputes()
dclo_overview(df)
moratoria_2026 <- dclo_search(df, year_from = 2026, moratorium_only = TRUE)
```

### 6. Official Agent Skill (`SKILL.md`)
Copy [`skill/dclo/SKILL.md`](skill/dclo/SKILL.md) into your Claude Code, Antigravity, Cursor, or Codex skills directory.

---

## 12 Legal-Empirical MCP Tools

| Tool | Purpose | MCP App View |
| :--- | :--- | :--- |
| `dclo_overview` | Global observatory snapshot: disputes, jurisdictions, GW contested, documents, 2026 surge vs baseline | `ui://dclo/overview` |
| `dclo_search_disputes` | Multi-filter search (query, jurisdiction/ISO-2, year range, status, outcome, scale, legal basis, climate, moratorium, operator, forum) | `ui://dclo/explorer` |
| `dclo_get_dispute` | Complete dossier for `DCLO-XXXX`: summary, dates, MW, coordinates, proceedings, primary docs, SPVs, OSCOLA/APA/BibTeX | `ui://dclo/dispute` |
| `dclo_search_documents` | Search across 4,797+ catalogued court orders, regulatory rulings, municipal ordinances, and filings | Structured + URLs |
| `dclo_jurisdictions` | Country and subnational state/region breakdown with contested MW/GW, moratoria, and 2026 velocity | Structured |
| `dclo_operators_and_spvs` | Corporate parent-group & SPV/LLC exposure trace (Amazon/AWS, Google, Microsoft, Meta, Oracle/OpenAI) | `ui://dclo/operator` |
| `dclo_energy_and_water` | Contested MW/GW, hyperscale AI scaling, onsite generation (gas/diesel/nuclear/battery), grid carbon, water/cooling | Structured |
| `dclo_outcomes_and_moratoria` | Concluded outcomes, stoppages/withdrawals, judicial interim relief, moratoria, developer `for_project` counter-trends | Structured |
| `dclo_climate_audit` | Two-layer Codebook v0.4 climate audit: raised by parties vs addressed by decision-makers, central vs peripheral | Structured |
| `dclo_compare` | Side-by-side comparison of two periods (`2026` vs `2012-2025`) OR two jurisdictions (`US` vs `IE` / `GB`) | `ui://dclo/compare` |
| `dclo_cite` | Publication-ready academic citations in **OSCOLA**, **APA 7**, **Bluebook**, **BibTeX**, or **RIS** | Citation text |
| `dclo_export_slice` | Export any filtered slice as clean RFC-4180 **CSV** or **JSON** for R, Stata, or pandas | CSV / JSON |

---

## Official DC/LO MCP App (`@modelcontextprotocol/ext-apps`)

All 5 visual tools publish static `_meta.ui.resourceUri` pointers alongside MIME type `text/html;profile=mcp-app`, strict sandbox CSP metadata (`connectDomains: ["https://datacentrelitigation.org"]`, `resourceDomains: []`, `prefersBorder: false`), **and** a rich Markdown + `structuredContent` JSON payload. Each view embeds a zero-dependency bidirectional JSON-RPC 2.0 `window.parent.postMessage` bridge (`ui/initialize` `2026-01-26`, `ui/notifications/tool-result`, `ui/notifications/host-context-changed` light/dark theme sync, `ResizeObserver` `ui/size-changed`, `ui/open-link`, and interactive in-card `tools/call` drill-down):

- `ui://dclo/overview` — Global Observatory Executive App with interactive SVG annual velocity chart (`2012–2026`) and clickable jurisdictions drilling directly into `dclo_search_disputes`.
- `ui://dclo/explorer` — Interactive Dispute Explorer App with instant filter pills (`All`, `2026`, `Moratoria`, `Concluded`, `Pending`), live search, and clickable `DCLO-XXXX` pills that open the full dossier in-card via `tools/call`.
- `ui://dclo/dispute` *(and direct-read `ui://dclo/dispute/{id}`)* — Full Dispute Dossier App with MW/grid badges, proceedings timeline, primary documents table, clickable SPV chips, and interactive OSCOLA / APA 7 / BibTeX citation tabs + copy button.
- `ui://dclo/operator` *(and direct-read `ui://dclo/operator/{name}`)* — Corporate & SPV Exposure App displaying both global operator rankings and single-group subsidiary traces with in-card dispute drill-down.
- `ui://dclo/compare` *(and direct-read `ui://dclo/compare/{mode}/{left}/{right}`)* — Side-by-side Comparative Dashboard App with paired proportional bars and delta KPIs.

### Built-In MCP Resources & Research Prompts
- **Data Resources:** `dclo://index`, `dclo://codebook`, `dclo://facets`, `dclo://dispute/{id}`, `dclo://jurisdiction/{country}`, `dclo://operator/{name}`
- **Research Prompts:** `case-brief`, `jurisdiction-dossier`, `operator-risk-profile`, `comparative-litigation-memo`, `moratorium-precedent-scan`

---

## Local Development & Testing

```bash
npm install
npm run build

# Run full unit + MCP protocol + Streamable HTTP integration tests against local DC/LO data:
DCLO_DATA_DIR=/path/to/public/dati/dclo npm test

# Start standalone Streamable HTTP server locally on port 3333:
npm run start:http
```

---

## Academic Citation & Licensing

- **Software & MCP Server:** MIT License (see [`LICENSE`](LICENSE)).
- **DC/LO Empirical Dataset:** **CC BY-NC-SA 4.0** (commercial reuse requires prior written permission from the CLIMPACT Project, University of Bari Aldo Moro).

**OSCOLA:**
> CLIMPACT Project, University of Bari Aldo Moro, 'DC/LO, Data Centre Litigation Observatory: Data Files' (v0, alpha, 2026) `<https://datacentrelitigation.org/data>`.

**BibTeX:**
```bibtex
@dataset{dclo_dataset_2026,
  author  = {{CLIMPACT Project, University of Bari Aldo Moro}},
  title   = {{DC/LO, Data Centre Litigation Observatory: Data Files}},
  year    = {2026},
  version = {v0},
  url     = {https://datacentrelitigation.org/data},
  note    = {Alpha release, CC BY-NC-SA 4.0}
}
```

TDQS

A3.5/5.0

Scored across 12 tools

Disambiguation4/5

Each tool targets a distinct facet (search vs. get vs. cite vs. export vs. analytics by dimension), and the descriptions make boundaries fairly clear. Minor overlap exists between dclo_get_dispute (which already returns ready-to-paste OSCOLA/APA/BibTeX citations) and dclo_cite, and between dclo_overview and the several analytical breakdown tools (jurisdictions, outcomes_and_moratoria).

Naming Consistency4/5

All names share a uniform dclo_ prefix and snake_case, which is highly predictable. However, the convention mixes verb-led action names (search_disputes, get_dispute, export_slice, compare) with noun-phrase analytics names (jurisdictions, operators_and_spvs, energy_and_water, outcomes_and_moratoria), a slight inconsistency in the verb_noun pattern.

Tool Count5/5

Twelve tools is well within a healthy range for a research-data server, and each tool covers a genuinely different analytic angle (documents, jurisdictions, operators, energy/water, outcomes, climate coding, comparison). No tool appears redundant or filler.

Completeness5/5

For a read-only litigation observatory the lifecycle is well covered: overview, filtered search, entity retrieval, document search, citation generation, export, and multiple analytic breakdowns plus comparison. The only modest gap is a direct 'get document by ID' fetch, but document search with dispute_id filtering largely covers that need.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues