JSON-MCP服务器添加福利群:解决AI开发者的「MCP实战痛点」一个用于查询和操作 JSON 数据的 JSON 模型上下文协议 (MCP) 服务器实现。该服务器通过一组标准化工具使 LLMs 能够与 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

query
url (字符串): JSON 数据源的 URLjsonPath (字符串): 带有可选操作的 JSONPath 表达式filter
url (字符串): JSON 数据源的 URLjsonPath (字符串): 基础 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_config.json 中:
{
"json": {
"command": "npx",
"args": [
"@gongrzhe/server-json-mcp@1.0.3"
]
}
}

或者,如果您已安装该包,可以直接使用 node 命令:
{
"json": {
"command": "node",
"args": [
"path/to/build/index.js"
]
}
}

npm install
npm run build
$ 开头,表示根对象MIT