Fetch Jsonpath Mcp
About
A Model Context Protocol (MCP) server that provides tools for fetching and extracting JSON data from URLs using JSONPath patterns.
Explore
- Extract JSON data using JSONPath patterns.
- Support for all HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS).
- Intelligent text extraction with Markdown, clean text, or raw HTML output.
- Batch processing of multiple URLs concurrently.
- Smart browser headers to prevent blocking.
- Reduced token usage and hallucinations.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Fetch Jsonpath McpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
For most IDEs, use the uvx tool to run the server.
``json`
{
"mcpServers": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": [
"fetch-jsonpath-mcp"
]
}
}
}
`
<details>
<summary><b>Install in Claude Code</b></summary>
bash`
claude mcp add fetch-jsonpath-mcp -- uvx fetch-jsonpath-mcp
`
</details>
<details>
<summary><b>Install in Cursor</b></summary>
json`
{
"mcpServers": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": ["fetch-jsonpath-mcp"]
}
}
}
</details>
<details>
<summary><b>Install in Windsurf</b></summary>
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
`bash
uv sync
uv add fastapi uvicorn
export JSONRPC_MCP_PROXY="http://proxy.example.com:8080"
Default Browser Headers: The server automatically includes realistic browser headers to prevent blocking:
- User-Agent: Chrome browser simulation
- Accept: Standard browser content types
- Accept-Language, Accept-Encoding: Browser defaults
- Security headers: Sec-Fetch-* headers for modern browsers
Custom headers in JSONRPC_MCP_HEADERS` will override defaults when there are conflicts.
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).
fetch-text
Fetch text content from a URL using various HTTP methods. Defaults to converting HTML to Markdown format.
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.
batch-fetch-text
Batch fetch raw text content from multiple URLs using various HTTP methods. Executes requests concurrently for better performance.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"fetch jsonpath mcp": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": [
"fetch-jsonpath-mcp"
]
}
}
}
}
McpServers
{
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": [
"fetch-jsonpath-mcp"
]
}
}
🎯 Why Use This?
Reduce LLM Token Usage & Hallucination - Instead of fetching entire JSON responses and wasting tokens, extract only the data you need.Traditional Fetch vs JSONPath Extract
❌ Traditional fetch (wasteful): ``json
// API returns 2000+ tokens
{
"data": [
{
"id": 1,
"name": "Alice",
"email": "[email protected]",
"avatar": "https://...",
"profile": {
"bio": "Long bio text...",
"settings": {...},
"preferences": {...},
"metadata": {...}
},
"posts": [...],
"followers": [...],
"created_at": "2023-01-01",
"updated_at": "2024-01-01"
},
// ... 50 more users
],
"pagination": {...},
"meta": {...}
}
`
✅ JSONPath extract (efficient):
`json
// Only 10 tokens - exactly what you need!
["Alice", "Bob", "Charlie"]
`
Using pattern: data[*].name saves 99% tokens and eliminates model hallucination from irrelevant data.
Installation
For most IDEs, use the uvx tool to run the server.
`json
{
"mcpServers": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": [
"fetch-jsonpath-mcp"
]
}
}
}
`
<details>
<summary><b>Install in Claude Code</b></summary>
`bash
claude mcp add fetch-jsonpath-mcp -- uvx fetch-jsonpath-mcp
`
</details>
<details>
<summary><b>Install in Cursor</b></summary>
`json
{
"mcpServers": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": ["fetch-jsonpath-mcp"]
}
}
}
`
</details>
<details>
<summary><b>Install in Windsurf</b></summary>
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
Windsurf Local Server Connection
`json
{
"mcpServers": {
"fetch-jsonpath-mcp": {
"command": "uvx",
"args": ["fetch-jsonpath-mcp"]
}
}
}
`
</details>
<details>
<summary><b>Install in VS Code</b></summary>
`json
"mcp": {
"servers": {
"fetch-jsonpath-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["fetch-jsonpath-mcp"]
}
}
}
`
</details>
Development Setup
1. Install Dependencies
`bash
uv sync
`
2. Start Demo Server (Optional)
``bashSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



