Skip to content
Cursor

JSON Contracts for Cursor

io.github.json-contracts/json-contracts

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

client:Cursor transport:stdio runtime:npm

Install JSON Contracts in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

JSON Contracts in other clients