Skip to main content
Glama

JSON MCP Server

MIT License
80
78
  • 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. 数値演算では基本的な算術演算子 (+、-、、/) がサポートされます。

ライセンス

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

Deploy Server
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

        • -
          security
          A
          license
          -
          quality
          A 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 -
          109
          1
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A 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 -
          109
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A 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
          • Apple
        • A
          security
          F
          license
          A
          quality
          A 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 -
          3
          7

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/GongRzhe/JSON-MCP-Server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server