mcp-json-tools

mcp-json-tools

3.3

If you are the rightful owner of mcp-json-tools and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.

MCP JSON Tools provide powerful data manipulation and querying capabilities for local JSON and NDJSON files using Lodash and JSONPath.

MCP JSON Tools is a versatile toolset designed to interact with local JSON and NDJSON files. It leverages Lodash for data manipulation and JSONPath for querying, allowing users to perform complex data operations efficiently. The tools support unified format handling, enabling seamless reading of both JSON and NDJSON formats. Users can query data using JSONPath expressions, inspect data nodes, and execute JavaScript for analysis or modification within a secure, sandboxed environment. The tools are easy to set up and run as a standard Node.js process via npx, ensuring safe execution with configurable timeouts.

Features

  • Unified Format Handling: Automatically reads both JSON and NDJSON formats.
  • Query: Use JSONPath expressions to select data from JSON or NDJSON files.
  • Inspect: Retrieve values and their paths within the JSON/NDJSON structure.
  • Analyze & Modify: Execute JavaScript for complex analysis or modification of files.
  • Safe Execution: Uses Node.js vm module for secure code execution.

Tools

  • mcp_json_query: Executes a JSONPath query on a local JSON or NDJSON file, returning matching values.
  • mcp_json_nodes: Executes a JSONPath query, returning matching nodes (value + path).
  • mcp_json_eval: Executes JavaScript code within a sandboxed VM for analysis or modification of JSON/NDJSON files.
  • mcp_json_multi_eval: Executes JavaScript code on multiple JSON/NDJSON files for analysis or modification.