json-mcp-server
The JSON MCP server enables efficient interaction with JSON files, providing lightweight and fast tools for:
Splitting JSON files: Divide a JSON file into a specified number of objects
Merging JSON files: Combine multiple JSON files into a single file
LLM-friendly functionality: Optimized for integration with Large Language Models
Easy configuration: Can be installed globally or via
npx, and integrates with VS Code and Claude Desktop
Integrates with GitHub Copilot agent in VS Code to provide JSON manipulation capabilities through the Model Context Protocol.
Click on "Install 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., "@json-mcp-serversplit the users.json file into 3 objects per file"
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.
JSON MCP
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.
π Key Features
β
Fast and lightweight
β
LLM-friendly functionality
Related MCP server: mcp-server-test
π₯ Demo
Below is a demo showcasing the split functionality:

π§ 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 file2. 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
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@latestRun after global installation
json-mcp-serverUsing npx with latest version (recommended)
npx json-mcp-server@latestAvailable Tools
2 toolsmergeC
Merge JSON files into a one JSON file
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided. The description only says 'merge', without disclosing critical behaviors like conflict resolution, merge strategy (shallow vs deep), output location, or whether it modifies input files.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence, which is concise but sacrifices clarity. It is front-loaded but lacks necessary detail.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given one parameter, no output schema, and no annotations, the description is too incomplete. It does not explain merge behavior, input constraints, or output format, leaving significant gaps for an agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage for the 'path' parameter, and the description does not explain what 'path' represents. It could be a file path or directory; the ambiguity reduces usefulness.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool merges JSON files into one, with a verb 'merge' and resource 'JSON files'. It distinguishes from the sibling 'split' by being the opposite operation. However, it lacks specificity about what 'path' refers to (a single file? a directory?)
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives. The sibling 'split' suggests a complementary tool, but no explicit when-to-use or when-not-to-use is given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
splitB
Split a JSON file into a specified number of objects
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| numObjects | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description does not disclose side effects (e.g., whether the original file is modified or a new file created), required permissions, or other behavioral traits. With no annotations, the description carries the full burden but provides minimal info.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, no unnecessary words. However, the description could benefit from additional structure to cover key behavioral aspects.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with two parameters, the description is minimally adequate but leaves questions unanswered, such as output behavior and impact on input file. Missing details reduce completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, and the description adds no meaning beyond the schema. For example, 'path' and 'numObjects' are not detailedβno clarification on file format, location constraints, or how numObjects is applied.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (split) and the resource (JSON file). It distinguishes from the sibling tool 'merge' by implying opposite functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives (e.g., 'merge'). No context about prerequisites or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v1.0.0- First observed
merge - First observed
split
TDQS
Merge and split are clearly opposite operations. An agent can easily distinguish their purposes without ambiguity.
Both tools use concise, single-word verbs (merge, split) following a consistent pattern.
Two tools is slightly below the typical well-scoped range, but the server's narrow focus on merge/split operations justifies this minimal set.
The server covers the core merge and split operations for JSON files. Minor gaps like transform or validate exist, but the surface is complete for its stated purpose.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The official MCP Server for the Mux API
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- MIT
- -
- AlicenseNot gradedqualityAmaintenanceJson AI - MCP server providing AI-powered tools and automation by MEOK AI Labs13MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for reading, querying, and filtering local JSON files with extended JSONPath syntax, supporting sorting, aggregations, and complex conditions.152MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/VadimNastoyashchy/json-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server