file-systemsdeveloper-tools

JSON Splitter and Merger

by vadimnastoyashchy

Effortlessly split or merge large JSON files with our JSON Splitter and Merger for streamlined and efficient data proces

Provides tools for splitting large JSON files into manageable chunks and merging multiple JSON files into a consolidated output for efficient data processing workflows.

github stars

13

Fast and lightweight processingNo API key needed

best for

  • / Data engineers working with large JSON datasets
  • / Developers preparing JSON data for batch processing
  • / Managing oversized JSON files that need chunking

capabilities

  • / Split JSON files into specified number of objects per chunk
  • / Merge multiple JSON files from a folder into one file
  • / Process large JSON datasets efficiently
  • / Handle JSON file manipulation through simple commands

what it does

Splits large JSON files into smaller chunks and merges multiple JSON files into a single consolidated file for easier data processing.

about

JSON Splitter and Merger is a community-built MCP server published by vadimnastoyashchy that provides AI assistants with tools and capabilities via the Model Context Protocol. Effortlessly split or merge large JSON files with our JSON Splitter and Merger for streamlined and efficient data proces It is categorized under file systems, developer tools. This server exposes 2 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install JSON Splitter and Merger in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

JSON Splitter and Merger is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

JSON MCP

Smithery Badge

The Model Context Protocol (MCP) server empowers LLMs to efficiently interact with JSON files. With JSON MCP, you can split, merge, and find specific data, validate within JSON files based on defined conditions.


<a href="https://glama.ai/mcp/servers/@VadimNastoyashchy/json-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@VadimNastoyashchy/json-mcp/badge" /> </a>

🌟 Key Features

Fast and lightweight
LLM-friendly functionality


🎥 Demo

Below is a demo showcasing the split functionality:

Demo: Split JSON


🔧 Use Cases (Tools)

1. split

Split a JSON file into a specified number of objects.

Note: The file path must be provided.

Prompt Example:

Split JSON file from /Users/json-mcp/tests/merged.json
5 objects per file

2. merge

Merge JSON files into a one JSON file

Note: The folder path should be provided

Prompt Example:

Merge json files from /Users/json-mcp/tests

⚙️ Configuration

<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">

VS Code Manual Configuration

To configure the JSON MCP server manually in VS Code, update the User Settings (JSON) file:

{
  "mcp": {
    "servers": {
      "json-mcp-server": {
        "command": "npx",
        "args": ["json-mcp-server@latest"]
      }
    }
  }
}

Installation in VS Code

You can install the JSON MCP server using the VS Code CLI:

# For VS Code
code --add-mcp '{"name":"json-mcp-server","command":"npx","args": ["json-mcp-server@latest"]}'

After installation, the JSON MCP server will be available for use with your GitHub Copilot agent in VS Code.

Claude Desktop

To install json-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @VadimNastoyashchy/json-mcp --client claude

⚙️ Installation Server

Install globally

npm install -g json-mcp-server@latest

Run after global installation

json-mcp-server

Using npx with latest version (recommended)

npx json-mcp-server@latest