Skip to main content
Glama

JSON MCP

Schmiedeabzeichen

Der Model Context Protocol (MCP) -Server ermöglicht LLMs die effiziente Interaktion mit JSON-Dateien. Mit JSON MCP können Sie bestimmte Daten teilen , zusammenführen und suchen sowie JSON-Dateien anhand definierter Bedingungen validieren .



🌟 Hauptfunktionen

✅ Schnell und leicht
✅ LLM-freundliche Funktionalität


Related MCP server: mcp-server-test

🎥 Demo

Unten sehen Sie eine Demo, die die split -Funktionalität vorführt:

Demo: JSON aufteilen


🔧 Anwendungsfälle (Tools)

1. split

Teilen Sie eine JSON-Datei in eine angegebene Anzahl von Objekten auf.

Hinweis: Der Dateipfad muss angegeben werden.

Beispiel für eine Eingabeaufforderung:

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

2. merge

JSON-Dateien zu einer einzigen JSON-Datei zusammenführen

Hinweis: Der Ordnerpfad sollte angegeben werden

Beispiel für eine Eingabeaufforderung:

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

⚙️ Konfiguration

Manuelle VS Code-Konfiguration

Um den JSON-MCP-Server manuell in VS Code zu konfigurieren, aktualisieren Sie die Datei „Benutzereinstellungen“ (JSON) :

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

Installation in VS Code

Sie können den JSON MCP-Server mithilfe der VS Code CLI installieren:

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

Nach der Installation steht der JSON-MCP-Server zur Verwendung mit Ihrem GitHub Copilot-Agent in VS Code zur Verfügung.

Claude Desktop

So installieren Sie json-mcp für Claude Desktop automatisch über Smithery :

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

⚙️ Installationsserver

Global installieren

npm install -g json-mcp-server@latest

Nach globaler Installation ausführen

json-mcp-server

Verwenden von npx mit der neuesten Version (empfohlen)

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