This repository provides a JSON Model Context Protocol (MCP) server, enabling LLMs to query and manipulate JSON data using tools like `query` and `filter` with extended operations for diverse data transformations.
This is a JSON Model Context Protocol (MCP) server designed to enable LLMs to interact with JSON data using standardized tools. It provides a way to query and manipulate JSON data from a given URL.
The server can be run using npx @gongrzhe/server-json-mcp@1.0.3
or installed globally via npm install -g @gongrzhe/server-json-mcp@1.0.3
and then executed with server-json-mcp
.
The server offers two primary tools: query
, which uses JSONPath with extended operations to extract data, and filter
, which filters JSON data based on specified conditions and a base JSONPath.
It supports array slicing, sorting, distinct, and transformations (map, flatten, union, intersection). String operations include case conversion, tests (startsWith, endsWith), and search (contains, matches). Numeric operations cover math, rounding, and functions. Date operations allow formatting, checking, and modification. Aggregation operations include group and stats.
For Claude Desktop integration, configure claude_desktop_config.json
to use either the npx
command or the direct node
command pointing to the built index.js
file.
GongRzhe/JSON-MCP-Server
December 24, 2024
March 28, 2025
JavaScript