npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@247arjun/mcp-jq

v1.0.0

Published

An MCP Server that wraps the jq command-line utility for JSON querying

Downloads

119

Readme

@247arjun/mcp-jq

CI License: MIT Node.js Version TypeScript

An MCP (Model Context Protocol) server that provides a wrapper around the jq command-line utility for querying JSON data.

Features

  • Query JSON files using jq syntax
  • Parse and format JSON data
  • Support for complex jq filters and operations
  • Stream processing for large JSON files

Prerequisites

  • Node.js 18 or higher
  • jq command-line utility installed on your system

Installing jq

macOS:

brew install jq

Ubuntu/Debian:

sudo apt-get install jq

Windows: Download from https://jqlang.github.io/jq/download/

Quick Start

  1. Install dependencies:

    npm install
  2. Build the project:

    npm run build
  3. Run tests:

    npm test
  4. Start the server:

    npm start

Alternatively, use the installation script:

chmod +x install.sh && ./install.sh

Installation from npm

You can also install the package directly from npm:

npm install -g @247arjun/mcp-jq

Then run with:

mcp-jq

MCP Client Configuration

Add this to your MCP client configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "jq": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-jq/build/index.js"],
      "description": "JSON querying with jq"
    }
  }
}

Documentation

Project Structure

mcp-jq/
├── src/
│   └── index.ts          # Main server implementation
├── build/                # Compiled JavaScript (after build)
├── examples/             # Sample JSON files for testing
│   ├── users.json
│   └── company.json
├── package.json          # Project dependencies and scripts
├── tsconfig.json         # TypeScript configuration
├── install.sh           # Installation script
├── test.js              # Test script
└── README.md            # This file

Available Tools

The server exposes the following tools:

jq_query

Query JSON data using jq syntax.

Parameters:

  • json_data (string): The JSON data to query
  • filter (string): The jq filter expression
  • raw_output (boolean, optional): Return raw output instead of JSON

jq_query_file

Query a JSON file using jq syntax.

Parameters:

  • file_path (string): Path to the JSON file
  • filter (string): The jq filter expression
  • raw_output (boolean, optional): Return raw output instead of JSON

jq_format

Format and prettify JSON data.

Parameters:

  • json_data (string): The JSON data to format

jq_validate

Validate if a string is valid JSON.

Parameters:

  • json_data (string): The JSON data to validate

jq_keys

Get all keys from a JSON object or array of objects.

Parameters:

  • json_data (string): The JSON data to extract keys from
  • recursive (boolean, optional): Get keys recursively (default: false)

Development

Run in development mode with auto-rebuild:

npm run dev

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes and add tests
  4. Run tests: npm test
  5. Commit your changes: git commit -am 'Add some feature'
  6. Push to the branch: git push origin feature/your-feature
  7. Create a Pull Request

Changelog

See CHANGELOG.md for version history and changes.

License

MIT - see LICENSE for details.

Support