JSON
JSON handling and processing mcp server
claude mcp add --transport stdio gongrzhe-json-mcp-server npx -y @gongrzhe/server-json-mcp@1.0.3
How to use
This MCP server implements tools for querying and manipulating JSON data. It exposes two primary tools: query and filter. The query tool evaluates JSON data sources using JSONPath expressions with a set of extended operations, enabling you to fetch, transform, and extract values from JSON documents or endpoints. The filter tool applies a base JSONPath expression and a conditional filter to return only the items that satisfy the given condition. The server supports a variety of operations across arrays, strings, numbers, dates, and aggregations (e.g., slicing, sorting, mapping, grouping, and basic arithmetic). You can compose complex data processing pipelines by chaining these operations through the provided inputs to the tools (url, jsonPath, condition, etc.).
How to install
Prerequisites:
- Node.js (v14+ recommended) and npm installed on your machine
- Internet access to pull NPM packages
Installation steps:
-
Install the MCP server package globally via npx (recommended for quick start): npx -y @gongrzhe/server-json-mcp@1.0.3
-
Alternatively, install globally with npm (if you prefer a persistent binary): npm install -g @gongrzhe/server-json-mcp@1.0.3
-
Run the MCP server after installation: server-json-mcp
-
If you need to run a specific version directly via npx without global install: npx -y @gongrzhe/server-json-mcp@1.0.3
Additional notes
Notes and tips:
- All JSONPath expressions start with $ to represent the root object. Indices are zero-based for arrays.
- When performing string operations, wrap string literals in quotes (e.g., $.contains("text")).
- Date operations support units like days, months, and years (e.g., $.add(1, 'days')).
- Numeric operations support basic arithmetic operators such as +, -, *, and / (e.g., $.math(+10)).
- The tools expect inputs like url (JSON data source URL), jsonPath (expression with optional operations), and condition (for filtering).
- If you run into network or CORS issues fetching remote JSON, consider providing a data URL with appropriate CORS headers or hosting the JSON at a reachable endpoint.
- The MCP server version included here is 1.0.3; for production, pin to a specific version and monitor updates from the package maintainers.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.