home / mcp / json mcp server

JSON MCP Server

JSON handling and processing mcp server

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "gongrzhe-json-mcp-server": {
      "command": "npx",
      "args": [
        "@gongrzhe/[email protected]"
      ]
    }
  }
}

You run a JSON MCP Server to query and manipulate JSON data using standardized tools. This server exposes practical capabilities to extract, transform, and analyze JSON sources, making it easier for you to integrate JSON data workflows with MCP-compatible clients.

How to use

Connect to the JSON MCP Server from your client and choose the tools you need to work with JSON data. You can query data sources using JSONPath expressions with extended operations, or filter data based on specific conditions. Use these core actions to fetch, transform, and analyze JSON with minimal boilerplate and a consistent interface.

How to install

# Using npx with a specific version (recommended)
npx @gongrzhe/[email protected]

# Install a specific version globally
npm install -g @gongrzhe/[email protected]

# Run after global installation
server-json-mcp

Configuration

The server can be started either via npx with the exact package version or by running a local build via node if you have a built index. Use the following configurations to enable MCP clients to connect.

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

Notes

- All JSONPath expressions start with $ representing the root object. - Array indices are zero-based. - String values in operations should be wrapped in quotes. - Date operations support days, months, and years units. - Numeric operations support basic arithmetic operators (+, -, *, /).

Available tools

query

Query JSON data using JSONPath syntax with extended operations. Input requires url and jsonPath.

filter

Filter JSON data using conditions. Input requires url, jsonPath, and condition.