JSON-MCP-Server

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.

61
5

JSON MCP Server (@gongrzhe/server-json-mcp@1.0.3)

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.

Installation & Usage

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.

Components

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.

Supported Operations

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.

Configuration

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.

Repository

GO
GongRzhe

GongRzhe/JSON-MCP-Server

Created

December 24, 2024

Updated

March 28, 2025

Language

JavaScript

Category

Developer Tools