JSON MCP サーバー (@gongrzhe/server-json-mcp@1.0.3)
JSONデータのクエリと操作のためのJSONモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、LLMは標準化されたツールセットを通じてJSONデータを操作できるようになります。
インストールと使用方法
コンポーネント
ツール
クエリ
拡張操作を含む 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に次の構成を追加します。
あるいは、パッケージがインストールされている場合は、node コマンドを直接使用することもできます。
発達
ソースから構築
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run build
注記
すべてのJSONPath式はルートオブジェクトを表す
$で始まります配列のインデックスはゼロベースです
演算内の文字列値は引用符で囲む必要があります
日付演算は「日」、「月」、「年」単位をサポートします
数値演算では基本的な算術演算子 (+、-、、/) がサポートされます。
ライセンス
マサチューセッツ工科大学
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
LLM が JSONPath 構文を使用して JSON データをクエリおよび操作し、データのフィルタリング、並べ替え、変換、および集約のための拡張操作を実行できるようにするモデル コンテキスト プロトコル サーバーの実装。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.Last updated -1091MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.Last updated -109MIT License
- -securityAlicense-qualityA 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.Last updated -MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server for querying large JSON files using JSONPath expressions, enabling LLMs to efficiently search and extract information from large JSON data.Last updated -37