JSON MCP Server

v1.0.0Search & Data Extractionstable

A Model Context Protocol server implementation that enables LLMs to query and manipulate JSON data using JSONPath syntax with extended operations for filtering, sorting, transforming, and aggregating data.

claude-mcpdatadata-extractiondata-filteringjson
Share:
90
Stars
0
Downloads
0
Weekly
0/5

What is JSON MCP Server?

JSON MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server implementation that enables llms to query and manipulate json data using jsonpath syntax with extended operations for filtering, sorting, transforming, and aggregating da...

A Model Context Protocol server implementation that enables LLMs to query and manipulate JSON data using JSONPath syntax with extended operations for filtering, sorting, transforming, and aggregating data.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol server implementation that enables

Use Cases

JSONPath querying and filtering
Data transformation and aggregation
JSON analysis and sorting operations
GongRzhe

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx json-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use JSON MCP Server

JSON MCP Server is a Model Context Protocol server that enables AI assistants to query, filter, transform, and aggregate JSON data from any URL using JSONPath syntax and extended operations. It exposes two primary tools — query and filter — that support array slicing, sorting, grouping, string matching, date operations, and mathematical aggregation on remote JSON datasets. Developers and data analysts use it to let their AI assistant work with live JSON APIs or large data files without manual parsing or preprocessing.

Prerequisites

  • Node.js 18+ installed
  • npx available (comes with Node.js)
  • A remote JSON URL or API endpoint to query
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install or run the JSON MCP Server via npx

The server can be run directly with npx without a global install. Use the versioned package name for stability.

npx @gongrzhe/[email protected]
2

Add the server to your MCP client configuration

Register the JSON MCP Server in your MCP client config file (e.g. claude_desktop_config.json).

{
  "mcpServers": {
    "json": {
      "command": "npx",
      "args": ["@gongrzhe/[email protected]"]
    }
  }
}
3

Restart your MCP client

Restart Claude Desktop or your chosen MCP client to load the JSON MCP Server. The query and filter tools will appear automatically.

4

Query JSON data using JSONPath

Use the query tool by providing a URL pointing to a JSON resource and a JSONPath expression. Extended operations like $.sort(field), $.groupBy(field), and $.map(field) are supported beyond standard JSONPath.

5

Filter JSON data with conditions

Use the filter tool to narrow down JSON array results with conditions such as price > 100, status == 'active', or name.contains('widget'). Combine with JSONPath to target nested fields.

JSON MCP Server Examples

Client configuration

Example claude_desktop_config.json for the JSON MCP Server.

{
  "mcpServers": {
    "json": {
      "command": "npx",
      "args": ["@gongrzhe/[email protected]"]
    }
  }
}

Prompts to try

Example prompts using the query and filter tools with a public JSON API.

- "Query https://jsonplaceholder.typicode.com/posts with JSONPath $[0:5] to get the first 5 posts"
- "Sort the posts from https://jsonplaceholder.typicode.com/posts by userId using $.sort(userId)"
- "Filter https://jsonplaceholder.typicode.com/users where address.city contains 'ville'"
- "Group products from [your API URL] by category using $.groupBy(category)"
- "Get all unique user IDs from https://jsonplaceholder.typicode.com/posts using $.map(userId) then apply distinct"

Troubleshooting JSON MCP Server

JSONPath query returns empty results

Verify the JSONPath expression against the actual JSON structure. Use $ to target the root, $.field for object keys, and $[*].field for array elements. Tools like jsonpath.com can help you test expressions before using them in prompts.

npx fails to fetch or install the package

Ensure you are using the exact versioned package name: @gongrzhe/[email protected]. Check your npm registry access and internet connection. If behind a corporate proxy, set the HTTP_PROXY environment variable.

URL fetch errors when querying remote JSON

The URL must be publicly accessible and return valid JSON. HTTPS URLs are preferred. If the endpoint requires authentication or returns non-JSON content types, the tool will not be able to parse the response.

Frequently Asked Questions about JSON MCP Server

What is JSON MCP Server?

JSON MCP Server is a Model Context Protocol (MCP) server that model context protocol server implementation that enables llms to query and manipulate json data using jsonpath syntax with extended operations for filtering, sorting, transforming, and aggregating data. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install JSON MCP Server?

Follow the installation instructions on the JSON MCP Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with JSON MCP Server?

JSON MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is JSON MCP Server free to use?

Yes, JSON MCP Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "json-mcp-server": { "command": "npx", "args": ["-y", "json-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use JSON MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides