Skip to main content
Glama

@mcpx-digital/json-tools

MCP server for everyday JSON/JSONC work on local files and strings.

Validate JSON or JSONC, get/set values with jq-like paths, pretty-print or minify, validate against JSON Schema (Ajv), and diff two documents — from Cursor or any MCP client.

Local only. Tools accept file paths or inline strings. They do not fetch URLs, scrape the web, or call external APIs.

Install (MCPX / npx)

npx -y @mcpx-digital/json-tools

Prepared for npm as @mcpx-digital/json-tools. Until published, run from a local clone.

Related MCP server: Universal JSON Agent MCP

Cursor mcp.json example

{
  "mcpServers": {
    "json-tools": {
      "command": "npx",
      "args": ["-y", "@mcpx-digital/json-tools"]
    }
  }
}

Local clone:

{
  "mcpServers": {
    "json-tools": {
      "command": "node",
      "args": ["/absolute/path/to/json-tools-mcp/index.js"]
    }
  }
}

Tools

Tool

What it does

validate_json

Strict JSON parse/validate

validate_jsonc

JSONC (comments + trailing commas)

json_get

Get value at .foo.bar[0]-style path

json_set

Set value at path (optional write)

pretty_json

Pretty-print

minify_json

Minify

schema_validate

Ajv JSON Schema validation

diff_json

Line-oriented diff of two JSON docs

Example prompts

  • “Validate this JSONC config and pretty-print it”

  • “Get .dependencies.react from package.json”

  • “Diff these two API response fixtures”

  • “Validate data.json against schema.json”

Development

git clone https://github.com/TheoryofShadows/json-tools-mcp.git
cd json-tools-mcp
npm install
npm test
node index.js

Sell / list on MCPX

Suggested listing price: $7.

Install command: npx -y @mcpx-digital/json-tools

License

MIT © TheoryofShadows

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables efficient JSON file editing with targeted read, write, delete, and deep merge operations using dot notation paths, optimized for managing multilingual projects and large configuration files.
    4
    11
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides tools to validate, format, and query JSON strings via MCP. Enables AI agents to work with JSON data without needing keys or internet.
    8
    MIT