fetch-jsonpath-mcp

v1.2.0
fetch-jsonpath-mcp Checked 1 day ago Published 2 months ago

An MCP server for fetching and extracting JSON data using JSONPath

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fetch-json

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. Supports different HTTP methods (default: GET).

ParameterTypeDescription
url *stringThe URL to get raw JSON from
dataobject | string | nullRequest body data for POST/PUT/PATCH requests. Can be a JSON object or string.
headersobjectAdditional HTTP headers to include in the request
methodstringHTTP method to use (GET, POST, PUT, DELETE, PATCH, etc.). Default is GET.
patternstringExtended JSONPath pattern supporting: Basic: 'foo[*].baz', 'bar.items[*]'; Extensions: '$.data.`len`', '$.users.`keys`', '$.field.`str()`'; Filtering: '$.items[?(@.price > 10)]', '$.users[?name = "Joh…

fetch-text

Fetch text content from a URL using various HTTP methods. Defaults to converting HTML to Markdown format.

ParameterTypeDescription
url *stringThe URL to get text content from
dataobject | string | nullRequest body data for POST/PUT/PATCH requests. Can be a JSON object or string.
headersobjectAdditional HTTP headers to include in the request
methodstringHTTP method to use (GET, POST, PUT, DELETE, PATCH, etc.). Default is GET.
output_formatstringOutput format: 'markdown' (default), 'clean_text', or 'raw_html'.

batch-fetch-json

Batch extract JSON content from multiple URLs with different extended JSONPath patterns. Supports all JSONPath extensions and optimizes by fetching each unique request only once. Executes requests concurrently for better performance. Supports different HTTP methods.

ParameterTypeDescription
requests *arrayArray of request objects

batch-fetch-text

Batch fetch raw text content from multiple URLs using various HTTP methods. Executes requests concurrently for better performance.

ParameterTypeDescription
requests *arrayArray of URLs (strings) or request objects