Skip to content
Claude Desktop

JSON Contracts for Claude Desktop

io.github.json-contracts/json-contracts

JSON contract registry and validator for structured LLM and agent outputs.

client:Claude Desktop transport:stdio runtime:npm

Install JSON Contracts in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "json-contracts": {
      "command": "npx",
      "args": [
        "-y",
        "json-contracts"
      ],
      "env": {
        "JSON_CONTRACTS_DIR": "<JSON_CONTRACTS_DIR>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

JSON Contracts in other clients