JSON MCP Server

MIT License
116
24
  • Apple
  • Linux

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-mcp

コンポーネント

ツール

  • クエリ
    • 拡張操作を含む JSONPath 構文を使用して JSON データをクエリする
    • 入力:
      • url (文字列): JSONデータソースのURL
      • jsonPath (文字列): オプションの操作を含むJSONPath式
  • フィルター
    • 条件を使用してJSONデータをフィルタリングする
    • 入力:
      • url (文字列): JSONデータソースのURL
      • jsonPath (文字列): ベース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" ] } }

発達

ソースから構築

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. プロジェクトをビルドします。
    npm run build

注記

  1. すべてのJSONPath式はルートオブジェクトを表す$で始まります
  2. 配列のインデックスはゼロベースです
  3. 演算内の文字列値は引用符で囲む必要があります
  4. 日付演算は「日」、「月」、「年」単位をサポートします
  5. 数値演算では基本的な算術演算子 (+、-、、/) がサポートされます。

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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 データをクエリおよび操作し、データのフィルタリング、並べ替え、変換、および集約のための拡張操作を実行できるようにするモデル コンテキスト プロトコル サーバーの実装。

  1. インストールと使用方法
    1. コンポーネント
      1. ツール
      2. サポートされている操作
    2. 構成
      1. Claude Desktopでの使用
    3. 発達
      1. ソースから構築
    4. 注記
      1. ライセンス

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.
          Last updated -
          10
          53
          Python
          MIT License
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.
          Last updated -
          536
          1
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A 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.
          Last updated -
          5
          Python
          Apache 2.0
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
          Last updated -
          TypeScript
          • Apple

        View all related MCP servers

        ID: 9g137c4b4k