Skip to main content
Glama

JsonMend

Repair broken JSON from LLM output and validate it against a JSON Schema.

Live service

Related MCP server: Jsonaut

Use it from an AI assistant (MCP)

JsonMend is a remote MCP server (Streamable HTTP) at https://jsonmend.mike-tusa.workers.dev/mcp. Tools: repair_json, validate_json.

Cursor and Windsurf accept this config:

{
  "mcpServers": {
    "jsonmend": {
      "type": "http",
      "url": "https://jsonmend.mike-tusa.workers.dev/mcp"
    }
  }
}

Cline (MCP Servers > Remote Servers, or cline_mcp_settings.json) needs "type": "streamableHttp":

{
  "mcpServers": {
    "jsonmend": {
      "type": "streamableHttp",
      "url": "https://jsonmend.mike-tusa.workers.dev/mcp"
    }
  }
}

Claude Desktop: open Settings > Connectors, choose "Add custom connector" and paste https://jsonmend.mike-tusa.workers.dev/mcp. Or, for clients that only support local (stdio) servers, use the mcp-remote bridge: npx mcp-remote https://jsonmend.mike-tusa.workers.dev/mcp.

VS Code uses a servers key instead of mcpServers.

The server.json file is the MCP Registry manifest for this server.

Run your own copy

Requires Node.js 22+ and a Cloudflare account.

npm install
npx wrangler@4 dev      # local dev server

wrangler.toml is a template: create your own KV namespaces / D1 databases / rate-limit namespaces and replace the <PLACEHOLDER> values before npx wrangler@4 deploy. Any secrets the Worker reads go in wrangler secret put (or .dev.vars locally), never in the repo.

License

MIT (c) Digital Promo Hub. See LICENSE.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Deterministic JSON validation and repair for AI agents. Validates, repairs, schema-checks, and diffs JSON so long-running agents don't corrupt their session state with malformed writes.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    JSON repair & validation MCP server for AI agents: fixes malformed JSON (trailing commas, truncation, etc.) and validates/coerces against a JSON Schema, with deterministic free tier and paid LLM-fallback.
    2 npm
    1
    MIT