Quickstart

DocketLayer provides real-time access to court dockets across 2,148 US and Canadian courts — federal district, appellate, bankruptcy, and state courts, plus Canadian federal, provincial, and territorial superior courts — built for AI agents and developers who need reliable case monitoring without managing data infrastructure.

No account is required. Payment is per query: $0.99 USDC settled on Solana at the moment each request is fulfilled via x402. Fund a Solana wallet once, pay only for what you query.

Choose the integration path that fits your stack.

01

Configure the Server

Add DocketLayer to your MCP client's configuration file. The server is distributed via npm — npx fetches and runs it automatically, no separate install required. Provide your Solana wallet private key in Base58 format via DOCKETLAYER_WALLET_PRIVATE_KEY. The server uses this key to sign USDC payments on your behalf.

// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
// Windows: %APPDATA%\\Claude\\claude_desktop_config.json
{
  "mcpServers": {
    "docketlayer": {
      "command": "npx",
      "args": ["-y", "@docketlayer/mcp-server"],
      "env": {
        "DOCKETLAYER_WALLET_PRIVATE_KEY": "your_base58_private_key"
      }
    }
  }
}
// Project: .cursor/mcp.json  |  Global: ~/.cursor/mcp.json
{
  "mcpServers": {
    "docketlayer": {
      "command": "npx",
      "args": ["-y", "@docketlayer/mcp-server"],
      "env": {
        "DOCKETLAYER_WALLET_PRIVATE_KEY": "your_base58_private_key"
      }
    }
  }
}
// Refer to your client's documentation for config file location.
// The mcpServers schema is standard across MCP-compatible clients.
{
  "mcpServers": {
    "docketlayer": {
      "command": "npx",
      "args": ["-y", "@docketlayer/mcp-server"],
      "env": {
        "DOCKETLAYER_WALLET_PRIVATE_KEY": "your_base58_private_key"
      }
    }
  }
}

Key Security

Pass the private key through your client's env block, not as a command-line argument. Keep it out of version control. The wallet needs a USDC balance on Solana mainnet — see the wallet setup guide. Each paid query costs $0.99.
02

Available Tools

The server exposes seven tools. The two below cover the core quickstart use case. The full catalog — including docketlayer_case_monitor, docketlayer_case_batch, and docketlayer_wallet_info — is in the API reference.

docketlayer_status free

Returns operational status, API version, and the full list of covered courts with court codes and coverage levels. Use this to verify connectivity and look up a court_code before querying a case.

docketlayer_case_query $0.99

Returns normalized case context and docket activity for a known case. Pass last_checked to receive only activity since your prior query.

court_code string required

Court identifier. Full list from docketlayer_status or docketlayer.ai/coverage.

case_id string required

Case identifier in the format used by the court registry.

last_checked ISO-8601 optional

Your prior query timestamp. Returns only activity since this time.

context enum optional

basic (default) or full. basic returns activity summary; full includes all docket entries.

language enum optional

en or fr. Relevant for bilingual Canadian jurisdictions.

03

Make Your First Query

Restart your MCP client after updating the config. Ask your AI assistant to query a case — the tool call, payment, and response are handled automatically. The first call will take a moment while npx fetches the package.

Request
{
  "tool": "docketlayer_case_query",
  "arguments": {
    "court_code": "nysd",
    "case_id": "1:24-cv-09822"
  }
}
Response
{
  "meta": {
    "request_id": "req_8f3a...",
    "queried_at": "2026-05-10T09:14:22-07:00",
    "query_cost_usd": 0.99
  },
  "case_id": "1:24-cv-09822",
  "court_code": "nysd",
  "case": {
    "case_number": "1:24-cv-09822",
    "case_name": "Acme Corp v. Widget Inc",
    "status": "open",
    "filed_at": "2024-06-15T00:00:00Z"
  },
  "delta": {
    "changed": true,
    "since": "2026-05-01T00:00:00Z",
    "change_count": 1,
    "new_filings": [
      {
        "filing_type": "order",
        "description": "Order granting motion to dismiss",
        "filed_at": "2026-04-13T08:47:22Z"
      }
    ]
  }
}

Next Steps

Check Coverage for the full court list, Pricing for pricing details, and the API reference for the complete field dictionary, MCP tool schema, and error catalog. For a deeper dive into the payment handshake, see How x402 Works.