JSON
HTTP-SSESTDIOJSON server for querying and manipulating JSON data using JSONPath syntax
JSON server for querying and manipulating JSON data using JSONPath syntax
A JSON Model Context Protocol (MCP) server implementation for querying and manipulating JSON data. This server enables LLMs to interact with JSON data through a set of standardized tools.
# Using npx with specific version (recommended) npx @gongrzhe/[email protected] # Install specific version globally npm install -g @gongrzhe/[email protected] # Run after global installation server-json-mcp
query
url (string): URL of the JSON data sourcejsonPath (string): JSONPath expression with optional operationsfilter
url (string): URL of the JSON data sourcejsonPath (string): Base JSONPath expressioncondition (string): Filter condition$[0:5], $[-3:], $[1:4]$.sort(price), $.sort(-price)$.distinct()$.map(fieldName)$.flatten()$.union([1,2,3])$.intersection([1,2,3])$.toLowerCase(), $.toUpperCase()$.startsWith('test'), $.endsWith('test')$.contains('test'), $.matches('pattern')$.math(+10), $.pow2()$.round(), $.floor(), $.ceil()$.abs(), $.sqrt()$.format('YYYY-MM-DD')$.isToday()$.add(1, 'days')$.groupBy(category)$.sum(price), $.avg(price), $.min(price), $.max(price)To use this server with the Claude Desktop app, add the following configuration to your claude_desktop_config.json:
{ "json": { "command": "npx", "args": [ "@gongrzhe/[email protected]" ] } }
Alternatively, you can use the node command directly if you have the package installed:
{ "json": { "command": "node", "args": [ "path/to/build/index.js" ] } }
npm install
npm run build
$ representing the root objectMIT