Skip to main content
Glama
JSON Query MCP

JSON Query MCP

by mgraczyk

JSON 쿼리 MCP

대용량 JSON 파일을 쿼리하기 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버는 모델 컨텍스트 프로토콜을 구현하는 LLM 모델에서 사용할 수 있는 대용량 JSON 데이터 처리 도구를 제공합니다.

특징

  • JSONPath 표현식을 사용하여 JSON 파일 쿼리

  • 쿼리 문자열과 유사한 키 검색

  • 쿼리 문자열과 유사한 값 검색

Related MCP server: JSON MCP Server

예

다음은 커서 에이전트가 도구를 사용하여 매우 큰(1M자 이상) JSON Swagger 정의를 읽고 작은 부분을 추출하여 타입스크립트 인터페이스를 작성하는 예입니다.

예

용법

npx json-query-mcp

커서에 설치

커서 mcp json에 다음을 추가합니다(macOS에서는 /Users/$USER/.cursor/mcp.json 입니다)

지엑스피1

개발

# 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

특허

MIT

Available Tools

3 tools
json_query_jsonpathB

Query a JSON file using JSONPath. Use to get values precisely from large JSON files.

Inputs: file_path (required), jsonpath (required).

json_query_search_keysA

Search for keys in a JSON file. Use when you do not know the path to a key in a large JSON file, but have some idea what the key is.

Inputs: file_path (required), query (required), limit.

json_query_search_valuesA

Search for values in a JSON file. Use when you do not know the path to a value in a large JSON file, but have some idea what the value is.

Inputs: file_path (required), query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: json_query_jsonpath targets precise path-based queries, json_query_search_keys focuses on key discovery, and json_query_search_values handles value discovery. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the query need.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with 'json_query_' as a prefix, followed by specific descriptors (jsonpath, search_keys, search_values). This uniformity enhances readability and predictability across the tool set.

    Tool Count4/5

    With 3 tools, the server is well-scoped for JSON querying, covering path-based queries, key searches, and value searches. However, it might be slightly thin if more advanced operations like filtering or transformation are expected, but it reasonably covers core query needs.

    Completeness4/5

    The tools provide comprehensive coverage for querying JSON files, including precise path queries and exploratory searches for keys and values. A minor gap exists in lacking tools for JSON manipulation (e.g., update or delete), but this is acceptable given the server's focus on querying rather than editing.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers