# jsonloupe

> jsonloupe is an open-source MCP server for developer tools. Open huge JSON locally and give agents its shape, queries and exact values, not the blob. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, Web
- **Website:** https://jsonloupe.dev
- **Repository:** https://github.com/priyanshun/jsonloupe
- **MCP Registry name:** io.github.priyanshuN/jsonloupe
- **Categories:** developer tools, files and documents
- **Listing updated:** 2026-11-15

## About

Pasting a multi-megabyte JSON file into a chat wastes context and can silently corrupt large IDs. This server loads the file once into a local process and lets an agent ask about it in small steps: inspect its shape, profile fields, run queries, sample bounded slices, compare two documents, export exact results, or draft a spreadsheet mapping.

The site describes a 12-tool server and says the document stays in the server process. Numbers beyond 2^53 and precise decimals keep every digit, and queries use a JSONPath subset with filters and aggregation pipes. The README adds that a playbook of saved checks can gate an agent through run_checks, and gate CI through a jsonloupe check command.

It installs from npm and runs over stdio; the same engine also powers a browser app at jsonloupe.dev that the site says uploads nothing and is MIT licensed. Aimed at developers handling large API responses and exports.

## Features

- **Shape-first inspection:** Agents see the structure before pulling any values.
- **Exact numbers:** Int64 IDs and precise decimals keep every digit.
- **Local querying:** JSONPath-style filters, grouping and counts run locally.
- **Document comparison:** Semantic diff aligns arrays by identity so reordering is not noise.
- **Compressed input:** Opens Zstd, Base64-Zstd and PostgreSQL bytea blobs.
- **Checks and playbooks:** Saved queries act as pass/fail checks, usable in CI.
- **Spreadsheet mapping:** Nested JSON becomes linked tables exportable as Excel or CSV.

## Good for

- Let an agent explore a huge API response without loading it all
- Verify that large IDs survive without rounding
- Diff two exports while ignoring reordering
- Turn nested JSON into linked spreadsheet tables
- Run pass/fail checks on a JSON file in CI

## Install

### Claude Code (Terminal)

```sh
claude mcp add jsonloupe -- npx -y jsonloupe
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "jsonloupe": {
      "command": "npx",
      "args": [
        "-y",
        "jsonloupe"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "jsonloupe": {
      "command": "npx",
      "args": [
        "-y",
        "jsonloupe"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "jsonloupe": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "jsonloupe"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "jsonloupe": {
      "command": "npx",
      "args": [
        "-y",
        "jsonloupe"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "jsonloupe": {
      "command": "npx",
      "args": [
        "-y",
        "jsonloupe"
      ]
    }
  }
}
```

## Tools

- `run_checks`: Gates a document on the checks saved in a playbook file.

## FAQ

### How do I install it?

Run claude mcp add jsonloupe -- npx -y -p jsonloupe jsonloupe-mcp, as shown on the site.

### Does my data leave my machine?

The site says documents are parsed locally with no backend, account or telemetry; optional English-to-query translation sends only the document shape to a model you configure.

### What licence is it under?

The site shows MIT.

### How many tools does it expose?

The site says 12.

### Is jsonloupe free?

Yes. jsonloupe is open source, so you can use and self-host it for free.

### How do I add jsonloupe to Claude Code?

Run this command in your terminal: claude mcp add jsonloupe -- npx -y jsonloupe

### What are the best alternatives to jsonloupe?

The closest alternatives to jsonloupe are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/jsonloupe
