{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.oktopeak/lawmatics-mcp",
  "slug": "io.github.oktopeak.lawmatics-mcp",
  "title": "lawmatics-mcp",
  "summary": "Connect Claude to Lawmatics: matters, contacts, pipelines, tasks, forms, custom fields, invoices.",
  "version": "1.0.0",
  "serverKey": "lawmatics-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.oktopeak.lawmatics-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.oktopeak.lawmatics-mcp/install.md",
  "trust": {
    "score": 88,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T20:19:26.577055092Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@oktopeak/lawmatics-mcp@1.0.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add lawmatics-mcp -e 'LAWMATICS_ACCESS_TOKEN=<LAWMATICS_ACCESS_TOKEN>' -- npx -y @oktopeak/lawmatics-mcp@1.0.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"lawmatics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@oktopeak/lawmatics-mcp@1.0.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"LAWMATICS_ACCESS_TOKEN\": \"<LAWMATICS_ACCESS_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"lawmatics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@oktopeak/lawmatics-mcp@1.0.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"LAWMATICS_ACCESS_TOKEN\": \"<LAWMATICS_ACCESS_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"LAWMATICS_ACCESS_TOKEN\",\n      \"id\": \"lawmatics-access-token\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"lawmatics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@oktopeak/lawmatics-mcp@1.0.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"LAWMATICS_ACCESS_TOKEN\": \"${input:lawmatics-access-token}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.lawmatics-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"@oktopeak/lawmatics-mcp@1.0.0\"]\nenv = { \"LAWMATICS_ACCESS_TOKEN\" = \"<LAWMATICS_ACCESS_TOKEN>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "LAWMATICS_ACCESS_TOKEN",
      "required": true,
      "secret": true,
      "description": "Lawmatics OAuth access token (never expires). Obtain once with `npx @oktopeak/lawmatics-mcp auth`.",
      "help": "Lawmatics OAuth access token (never expires). Obtain once with `npx @oktopeak/lawmatics-mcp auth`.",
      "placeholder": "<LAWMATICS_ACCESS_TOKEN>"
    },
    {
      "name": "LAWMATICS_READ_ONLY",
      "required": false,
      "secret": false,
      "description": "Set to '1' to disable all write tools (create/update/tag/submit). Read-only mode for cautious firms.",
      "help": "Set to '1' to disable all write tools (create/update/tag/submit). Read-only mode for cautious firms.",
      "placeholder": "<LAWMATICS_READ_ONLY>"
    },
    {
      "name": "LAWMATICS_EXPERIMENTAL_TOOLS",
      "required": false,
      "secret": false,
      "description": "Set to '1' to enable experimental tools (set-matter-custom-fields) whose API request shape is not fully documented by Lawmatics.",
      "help": "Set to '1' to enable experimental tools (set-matter-custom-fields) whose API request shape is not fully documented by Lawmatics.",
      "placeholder": "<LAWMATICS_EXPERIMENTAL_TOOLS>"
    },
    {
      "name": "LAWMATICS_RATE_LIMIT_PER_MIN",
      "required": false,
      "secret": false,
      "description": "Client-side request throttle per minute (default: 50, the conservative documented per-firm limit; newer docs say 150).",
      "help": "Client-side request throttle per minute (default: 50, the conservative documented per-firm limit; newer docs say 150).",
      "placeholder": "<LAWMATICS_RATE_LIMIT_PER_MIN>"
    },
    {
      "name": "LAWMATICS_AUDIT_LOG",
      "required": false,
      "secret": false,
      "description": "Set to '0' to disable the local JSONL audit log (default path: ~/.lawmatics-mcp/audit.log).",
      "help": "Set to '0' to disable the local JSONL audit log (default path: ~/.lawmatics-mcp/audit.log).",
      "placeholder": "<LAWMATICS_AUDIT_LOG>"
    },
    {
      "name": "LAWMATICS_AUDIT_LOG_PATH",
      "required": false,
      "secret": false,
      "description": "Override the audit log file location (default: ~/.lawmatics-mcp/audit.log). The log contains tool arguments, which can include client data.",
      "help": "Override the audit log file location (default: ~/.lawmatics-mcp/audit.log). The log contains tool arguments, which can include client data.",
      "placeholder": "<LAWMATICS_AUDIT_LOG_PATH>"
    },
    {
      "name": "LAWMATICS_CLIENT_ID",
      "required": false,
      "secret": false,
      "description": "Only needed for the one-time `auth` command: your Lawmatics developer app client ID.",
      "help": "Only needed for the one-time `auth` command: your Lawmatics developer app client ID.",
      "placeholder": "<LAWMATICS_CLIENT_ID>"
    },
    {
      "name": "LAWMATICS_CLIENT_SECRET",
      "required": false,
      "secret": true,
      "description": "Only needed for the one-time `auth` command: your Lawmatics developer app client secret.",
      "help": "Only needed for the one-time `auth` command: your Lawmatics developer app client secret.",
      "placeholder": "<LAWMATICS_CLIENT_SECRET>"
    },
    {
      "name": "LAWMATICS_REDIRECT_PORT",
      "required": false,
      "secret": false,
      "description": "Local port for the one-time OAuth callback (default: 5678). Must match the app's Callback URL.",
      "help": "Local port for the one-time OAuth callback (default: 5678). Must match the app's Callback URL.",
      "placeholder": "<LAWMATICS_REDIRECT_PORT>"
    },
    {
      "name": "LAWMATICS_API_BASE",
      "required": false,
      "secret": false,
      "description": "Override the Lawmatics API base URL (default: https://api.lawmatics.com/v1).",
      "help": "Override the Lawmatics API base URL (default: https://api.lawmatics.com/v1).",
      "placeholder": "<LAWMATICS_API_BASE>"
    }
  ],
  "expectedTools": [
    "list-matters",
    "get-matter",
    "find-matter",
    "create-matter",
    "update-matter",
    "list-contacts",
    "get-contact",
    "find-contact",
    "create-contact",
    "update-contact",
    "list-companies",
    "get-company",
    "find-company",
    "list-pipelines",
    "list-stages",
    "list-practice-areas",
    "list-sources",
    "list-sub-statuses",
    "list-users",
    "get-current-user",
    "list-tasks",
    "create-task",
    "update-task",
    "list-events",
    "create-event",
    "list-notes",
    "create-note",
    "list-activities",
    "list-tags",
    "attach-tags",
    "detach-tags",
    "list-custom-fields",
    "list-forms",
    "get-form",
    "get-form-entries",
    "submit-form",
    "list-invoices"
  ],
  "agentSteps": [
    "Ask the user for: LAWMATICS_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: list-matters, get-matter, find-matter, create-matter, update-matter, list-contacts, get-contact, find-contact, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T20:19:26.577055092Z"
}
