json-repair-mcp

v1.0.1
io.github.grupoanesthy-spec/json-repair-mcp Checked 4 days ago Published 2 months ago

Repairs malformed JSON from LLM output, validated against a schema.

Values you need

VariableWhat it is
JSON_REPAIR_API_KEYrequired secret API key obtained by visiting https://json-repair-api-9ybv.onrender.com/signup (Stripe Checkout, one-time signup).
JSON_REPAIR_API_URLoptional Base URL of the hosted API. Defaults to the production endpoint if unset.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add json-repair-mcp -e 'JSON_REPAIR_API_KEY=<JSON_REPAIR_API_KEY>' -- npx -y json-repair-mcp@1.0.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "json-repair-mcp": {
      "args": [
        "-y",
        "json-repair-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "JSON_REPAIR_API_KEY": "<JSON_REPAIR_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "json-repair-mcp": {
      "args": [
        "-y",
        "json-repair-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "JSON_REPAIR_API_KEY": "<JSON_REPAIR_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "JSON_REPAIR_API_KEY",
      "id": "json-repair-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "json-repair-mcp": {
      "args": [
        "-y",
        "json-repair-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "JSON_REPAIR_API_KEY": "${input:json-repair-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.json-repair-mcp]
command = "npx"
args = ["-y", "json-repair-mcp@1.0.1"]
env = { "JSON_REPAIR_API_KEY" = "<JSON_REPAIR_API_KEY>" }

For AI agents

  1. Ask the user for: JSON_REPAIR_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: repair_json.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json