JSON MCP Server
JSON MCP サーバー (@gongrzhe/server-json-mcp@1.0.3)
JSONデータのクエリと操作のためのJSONモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、LLMは標準化されたツールセットを通じてJSONデータを操作できるようになります。
インストールと使用方法
# Using npx with specific version (recommended)
npx @gongrzhe/server-json-mcp@1.0.3
# Install specific version globally
npm install -g @gongrzhe/server-json-mcp@1.0.3
# Run after global installation
server-json-mcpRelated MCP server: MCP Database Server
コンポーネント
ツール
クエリ
拡張操作を含む JSONPath 構文を使用して JSON データをクエリする
入力:
url(文字列): JSONデータソースのURLjsonPath(文字列): オプションの操作を含むJSONPath式
フィルター
条件を使用してJSONデータをフィルタリングする
入力:
url(文字列): JSONデータソースのURLjsonPath(文字列): ベースJSONPath式condition(文字列): フィルター条件
サポートされている操作
配列操作
スライス:
$[0:5]、$[-3:]、$[1:4]ソート:
$.sort(price)、$.sort(-price)個別:
$.distinct()変換:
マップ:
$.map(fieldName)フラット化:
$.flatten()ユニオン:
$.union([1,2,3])交差点:
$.intersection([1,2,3])
文字列操作
大文字と小文字:
$.toLowerCase()、$.toUpperCase()テスト:
$.startsWith('test')、$.endsWith('test')検索:
$.contains('test')、$.matches('pattern')
数値演算
数学:
$.math(+10)、$.pow2()丸め:
$.round()、$.floor()、$.ceil()関数:
$.abs()、$.sqrt()
日付操作
フォーマット:
$.format('YYYY-MM-DD')チェック:
$.isToday()変更:
$.add(1, 'days')
集計操作
グループ:
$.groupBy(category)統計:
$.sum(price)、$.avg(price)、$.min(price)、$.max(price)
構成
Claude Desktopでの使用
このサーバーを Claude Desktop アプリで使用するには、 claude_desktop_config.jsonに次の構成を追加します。
{
"json": {
"command": "npx",
"args": [
"@gongrzhe/server-json-mcp@1.0.3"
]
}
}あるいは、パッケージがインストールされている場合は、node コマンドを直接使用することもできます。
{
"json": {
"command": "node",
"args": [
"path/to/build/index.js"
]
}
}発達
ソースから構築
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run build
注記
すべてのJSONPath式はルートオブジェクトを表す
$で始まります配列のインデックスはゼロベースです
演算内の文字列値は引用符で囲む必要があります
日付演算は「日」、「月」、「年」単位をサポートします
数値演算では基本的な算術演算子 (+、-、、/) がサポートされます。
ライセンス
マサチューセッツ工科大学
Available Tools
2 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The tools 'filter' and 'query' both operate on JSON data, which creates some overlap in purpose, as filtering can be seen as a subset of querying. However, the descriptions differentiate them: 'filter' uses conditions (likely simpler, boolean-based operations), while 'query' uses JSONPath syntax (a more expressive, path-based language). This distinction helps reduce confusion, but an agent might still struggle to choose between them for certain tasks.
Both tool names follow a consistent pattern: they are single, lowercase verbs ('filter' and 'query') that clearly indicate actions. There are no deviations in style (e.g., no mixing with snake_case or camelCase), making the naming predictable and easy to understand across the set.
With only 2 tools, this server feels thin for a JSON processing domain, which typically involves operations like parsing, transforming, validating, or merging JSON. The limited scope may force agents to work around gaps, as basic tasks like reading or writing JSON files are not covered, making it under-scoped for a general-purpose JSON server.
The tool set is severely incomplete for JSON processing. While 'filter' and 'query' handle retrieval and selection, there are no tools for creating, updating, validating, or manipulating JSON structures (e.g., add, remove, merge). This leaves significant gaps that will likely cause agent failures when trying to perform common JSON operations beyond simple queries.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol Server that enables LLMs to interact with and execute REST API calls through natural language prompts, supporting GET/PUT/POST/PATCH operations on configured APIs.6Apache 2.0
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.514 npmMIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides standardized interfaces for interacting with Ollama API, offering JSON responses, error handling, and intelligent guidance for LLM-based API calls.9MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server for querying large JSON files using JSONPath expressions, enabling LLMs to efficiently search and extract information from large JSON data.311MIT