jq MCP Server
Enables running jq expressions on JSON files to filter and transform data through MCP.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jq MCP Serverrun jq .name on /data/config.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jq MCP Server
This project is an MCP (Model Context Protocol) server for AI models that allows executing jq expressions against JSON files.
What it does
The server exposes a tool that runs a jq filter on a JSON file and returns the result as text. It accepts the jq expression and the absolute path to the JSON file, and it handles execution errors.
Related MCP server: jsony-mcp
Requirements
Node.js
npm, pnpm (recommended) or any compatible Node.js package manager
Installation
Install the dependencies with:
npm installOr with pnpm:
pnpm installFor security reasons, the pnpm package manager is recommended. You can configure it with the following command before installing any dependencies:
pnpm config set minimum-release-age 1440 --globalThis adds a layer of security against supply chain attacks.
If you use pnpm run pnpm approve-builds, select node-jq with key and press . Finally press y and press to confirm.
Or install dependencies with your favorite Node.js package manager.
Usage with MCP clients
This server is intended to be started by MCP-compatible clients; you do not need to run node main.js manually. Properly configured clients will start the server when needed. Below are example client configurations (replace /path/to/... with the correct path on your system).
Continue (VSCode extension) — example
config.yaml:
mcpServers:
- name: jq MCP server
command: npx
args:
- -y
- node
- /path/to/mcp_servers/jq/main.js
env: {}Claude (desktop) — example
claude_desktop_config.json:
{
"mcpServers": {
"jq": {
"command": "npx",
"args": ["-y", "node", "/path/to/mcp_servers/jq/main.js"]
}
}
}GitHub Copilot (VSCode). Press Ctrl+Shift+P (Windows or Linux) or Cmd+Shift+P (Mac) to open the Command Palette. Execute the MCP: Open User Configuration command. This creates a clean
mcp.jsonin your global user profile directory. Edit themcp.jsonfile and place the following:
{
"servers": {
"jq": {
"command": "npx",
"args": ["-y", "node", "/path/to/mcp_servers/jq/main.js"]
}
}
}Generic MCP client (command line):
# A client can launch the server this way if it must be started manually
npx -y node /path/to/mcp_servers/jq/main.jsTool exposed
The server exposes the following MCP tool:
execute-jq-expressionParameters:
filter: the jq expression to evaluatefilePath: the absolute path to the JSON file
Example
If the JSON file contains:
{
"name": "Ada",
"skills": ["jq", "JSON"]
}You can use a filter such as:
.nameor:
.skills[]Notes:
Check the documentation of the MCP client you use for the exact configuration key names; the examples above are common templates.
When chatting with the AI, make sure to provide the absolute path of JSON file and the jq expression.
This server cannot be deployed
Maintenance
Related MCP Connectors
AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
PDF, image, video, OCR, screenshot, SQL, QR and text tools for agents. No API key, no signup.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables natural language interaction with JSON files, providing tools to load, query, aggregate, transform, and export data directly from AI editors.3MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to read, write, query, and manage JSON data files with automatic ID and timestamp generation.618 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI models to execute SQL queries against a SQLite database and receive results as JSON.57 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables LLM agents to securely explore, read, search, and analyze text-based files within a sandboxed environment.-