Skip to main content
Glama

Fetch JSONPath MCP

by ackness

get-json

Extract and manipulate JSON data from a URL using JSONPath, enabling filtering, arithmetic operations, and text transformations to retrieve specific content efficiently.

Instructions

Extract JSON content from a URL using JSONPath with extended features. Supports extensions like len, keys, filtering, arithmetic operations, and more. If 'pattern' is omitted or empty, the entire JSON document is returned.

Input Schema

NameRequiredDescriptionDefault
patternNoExtended JSONPath pattern supporting: Basic: 'foo[*].baz', 'bar.items[*]'; Extensions: '$.data.`len`', '$.users.`keys`', '$.field.`str()`'; Filtering: '$.items[?(@.price > 10)]', '$.users[?name = "John"]'; Arithmetic: '$.a + $.b', '$.items[*].price * 1.2'; Text ops: '$.text.`sub(/old/, new)`', '$.csv.`split(",")'
urlYesThe URL to get raw JSON from

Input Schema (JSON Schema)

{ "properties": { "pattern": { "description": "Extended JSONPath pattern supporting: Basic: 'foo[*].baz', 'bar.items[*]'; Extensions: '$.data.`len`', '$.users.`keys`', '$.field.`str()`'; Filtering: '$.items[?(@.price > 10)]', '$.users[?name = \"John\"]'; Arithmetic: '$.a + $.b', '$.items[*].price * 1.2'; Text ops: '$.text.`sub(/old/, new)`', '$.csv.`split(\",\")'", "type": "string" }, "url": { "description": "The URL to get raw JSON from", "type": "string" } }, "required": [ "url" ], "type": "object" }
Install Server

Other Tools from Fetch JSONPath MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ackness/fetch-jsonpath-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server