Skip to content
Back to search

JSON-MCP-Server

JSON handling and processing mcp server

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/gongrzhe--json-mcp-server/badge.svg)](/listings/gongrzhe--json-mcp-server)

HTML

<a href="/listings/gongrzhe--json-mcp-server"><img src="/api/listings/gongrzhe--json-mcp-server/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

# 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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 124 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # JSON MCP Server (@gongrzhe/server-json-mcp@1.0.3)
  2. A JSON Model Context Protocol (MCP) server implementation for querying and manipulating JSON data. This server enables LLMs to interact with JSON data through a set of standardized tools.
  3. <a href="https://glama.ai/mcp/servers/9g137c4b4k">
  4. <img width="380" height="200" src="https://glama.ai/mcp/servers/9g137c4b4k/badge" alt="JSON Server MCP server" />
  5. </a>
  6. ## Installation & Usage
  7. ```bash
  8. # Using npx with specific version (recommended)
  9. npx @gongrzhe/server-json-mcp@1.0.3
  10. # Install specific version globally
  11. npm install -g @gongrzhe/server-json-mcp@1.0.3
  12. # Run after global installation
  13. server-json-mcp
  14. ```
  15. ## Components
  16. ### Tools
  17. - **query**
  18. - Query JSON data using JSONPath syntax with extended operations
  19. - Input:
  20. - `url` (string): URL of the JSON data source
  21. - `jsonPath` (string): JSONPath expression with optional operations
  22. - **filter**
  23. - Filter JSON data using conditions
  24. - Input:
  25. - `url` (string): URL of the JSON data source
  26. - `jsonPath` (string): Base JSONPath expression
  27. - `condition` (string): Filter condition
  28. ### Supported Operations
  29. #### Array Operations
  30. - **Slicing**: `$[0:5]`, `$[-3:]`, `$[1:4]`
  31. - **Sorting**: `$.sort(price)`, `$.sort(-price)`
  32. - **Distinct**: `$.distinct()`
  33. - **Transformations**:
  34. - Map: `$.map(fieldName)`
  35. - Flatten: `$.flatten()`
  36. - Union: `$.union([1,2,3])`
  37. - Intersection: `$.intersection([1,2,3])`
  38. #### String Operations
  39. - **Case**: `$.toLowerCase()`, `$.toUpperCase()`
  40. - **Tests**: `$.startsWith('test')`, `$.endsWith('test')`
  41. - **Search**: `$.contains('test')`, `$.matches('pattern')`
  42. #### Numeric Operations
  43. - **Math**: `$.math(+10)`, `$.pow2()`
  44. - **Rounding**: `$.round()`, `$.floor()`, `$.ceil()`
  45. - **Functions**: `$.abs()`, `$.sqrt()`
  46. #### Date Operations
  47. - **Format**: `$.format('YYYY-MM-DD')`
  48. - **Check**: `$.isToday()`
  49. - **Modify**: `$.add(1, 'days')`
  50. #### Aggregation Operations
  51. - **Group**: `$.groupBy(category)`
  52. - **Stats**: `$.sum(price)`, `$.avg(price)`, `$.min(price)`, `$.max(price)`
  53. ## Configuration
  54. ### Usage with Claude Desktop
  55. To use this server with the Claude Desktop app, add the following configuration to your `claude_desktop_config.json`:
  56. ```json
  57. {
  58. "json": {
  59. "command": "npx",
  60. "args": [
  61. "@gongrzhe/server-json-mcp@1.0.3"
  62. ]
  63. }
  64. }
  65. ```
  66. Alternatively, you can use the node command directly if you have the package installed:
  67. ```json
  68. {
  69. "json": {
  70. "command": "node",
  71. "args": [
  72. "path/to/build/index.js"
  73. ]
  74. }
  75. }
  76. ```
  77. ## Development
  78. ### Building from Source
  79. 1. Clone the repository
  80. 2. Install dependencies:
  81. ```bash
  82. npm install
  83. ```
  84. 3. Build the project:
  85. ```bash
  86. npm run build
  87. ```
  88. ## Notes
  89. 1. All JSONPath expressions start with `$` representing the root object
  90. 2. Array indices are zero-based
  91. 3. String values in operations should be wrapped in quotes
  92. 4. Date operations support 'days', 'months', and 'years' units
  93. 5. Numeric operations support basic arithmetic operators (+, -, *, /)
  94. ## License
  95. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.