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
{
"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