Skip to main content
Glama

JSON MCP

鍛冶屋バッジ

モデルコンテキストプロトコル(MCP)サーバーは、 LLMがJSONファイルを効率的に操作できるようにします。JSON MCPを使用すると、JSONファイル内の特定のデータを 分割、結合、検索したり、定義された条件に基づいて検証したりできます。



🌟 主な機能

✅高速かつ軽量
✅ LLMに適した機能


Related MCP server: mcp-server-test

🎥 デモ

以下はsplit機能を紹介するデモです。

デモ: JSON の分割


🔧 ユースケース(ツール)

1. split

JSON ファイルを指定された数のオブジェクトに分割します。

**注:**ファイル パスを指定する必要があります。

プロンプトの例:

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

2. merge

JSONファイルを1つのJSONファイルに結合します

**注:**フォルダパスを指定する必要があります

プロンプトの例:

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

⚙️ 構成

VS Code の手動設定

VS Code で JSON MCP サーバーを手動で構成するには、**ユーザー設定 (JSON)**ファイルを更新します。

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

VS Codeでのインストール

VS Code CLI を使用して JSON MCP サーバーをインストールできます。

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

インストール後、JSON MCP サーバーは VS Code 内の GitHub Copilot エージェントで使用できるようになります。

クロードデスクトップ

Smithery経由で Claude Desktop 用の json-mcp を自動的にインストールするには:

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

⚙️ インストールサーバー

グローバルにインストール

npm install -g json-mcp-server@latest

グローバルインストール後に実行

json-mcp-server

最新バージョンのnpxを使用する(推奨)

npx json-mcp-server@latest

Available Tools

2 tools
mergeC

Merge JSON files into a one JSON file

Inputs: path (required).

splitB

Split a JSON file into a specified number of objects

Inputs: path (required), numObjects (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    Merge and split are clearly opposite operations. An agent can easily distinguish their purposes without ambiguity.

    Naming Consistency5/5

    Both tools use concise, single-word verbs (merge, split) following a consistent pattern.

    Tool Count4/5

    Two tools is slightly below the typical well-scoped range, but the server's narrow focus on merge/split operations justifies this minimal set.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers