Skip to main content
Glama

JSON Query MCP

by mgraczyk

JSON 查询 MCP

用于查询大型 JSON 文件的模型上下文协议 (MCP) 服务器。该服务器提供处理大型 JSON 数据的工具,可供实现模型上下文协议的LLM 模型使用。

特征

  • 使用 JSONPath 表达式查询 JSON 文件
  • 搜索与查询字符串相似的键
  • 搜索与查询字符串相似的值

例子

下面是一个 Cursor Agent 使用工具读取一个非常大(>1M 个字符)的 JSON Swagger 定义,并提取一小部分来编写 typescript 接口的示例。

例子

用法

npx json-query-mcp

在 Cursor 中安装

将以下内容添加到您的游标 mcp json 中(在 macOS 上这是/Users/$USER/.cursor/mcp.json

{ "mcpServers": { ... other mcp servers "json-query": { "command": "npx", "args": [<local path to this repo>], }, } }

发展

# Run in development mode npm run dev # Run tests npm test # Format code npm run format # Lint code npm run lint # Fix lints npm run fix

执照

麻省理工学院

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

使用 JSONPath 表达式查询大型 JSON 文件的模型上下文协议服务器,使 LLM 能够高效地从大型 JSON 数据中搜索和提取信息。

  1. 特征
    1. 例子
      1. 用法
        1. 在 Cursor 中安装
          1. 发展
            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
                77
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables LLMs to read, search, and analyze code files with advanced caching and real-time file watching capabilities.
                Last updated -
                2
                15
                JavaScript
                MIT License
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server implementation that enables LLMs to query and manipulate JSON data using JSONPath syntax with extended operations for filtering, sorting, transforming, and aggregating data.
                Last updated -
                2
                116
                24
                JavaScript
                MIT License
                • Apple
                • Linux
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.
                Last updated -
                2
                Python
                • Apple

              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/mgraczyk/json-query-mcp'

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