
Jmespath Mcp
io.github.MukundaKatta由 GitHub 账号 MukundaKatta 发布v0.1.0更新于 Oct 24, 2026
Run JMESPath queries against JSON. Pure JS, no native binary needed.
概览
一个本地 MCP 服务器,对 JSON 执行 JMESPath 表达式,让助手可靠地筛选、投影和重塑 JSON 数据。
- 可以做什么
- 用单个工具 json_query(expression, data) 对传入的 JSON 数据执行 JMESPath 表达式并返回结果。支持嵌套键访问、数组投影、过滤器、管道以及 length、sort_by、contains、keys 等内置函数。支持通过 to_entries 与 from_entries 进行往返转换。由于是纯 JavaScript 实现,在 macOS、Linux 和 Windows 上表现一致。
- 适用场景
- 当助手需要用过滤器、投影或内置函数查询或重塑 JSON,而手写路径容易出错时适用,可交由真正的 JMESPath 引擎求值表达式。
- 运行要求
- 作为本地进程通过 stdio 运行,使用 npx 从 npm 包 @mukundakatta/jmespath-mcp 安装,因此需要 Node.js 以及下载该包的网络访问。未声明任何认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Jmespath Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@mukundakatta/jmespath-mcp
MCP server for JMESPath JSON queries. One tool: json_query(expression, data). Pure JavaScript implementation, no jq binary needed (works the same on macOS / Linux / Windows).
Why this exists
LLMs handle shallow JSON paths well (foo.bar.baz) but reliably mess up:
- Array projections (
people[*].name) - Filters (
locations[?state == 'WA']) - Pipes and built-in functions (
length,sort_by,contains,keys) - Round-trips through
to_entries/from_entries
JMESPath is the AWS-standardized query language for JSON. This server runs your expression through the real JMESPath engine and returns the result.
Why JMESPath instead of jq?
node-jq requires a postinstall step that downloads the jq binary, which fails reliably on Windows. JMESPath is pure JavaScript with no native dependencies. The query language is similar enough for most LLM use-cases (deep paths, filters, projections, built-ins).
Install — Claude Desktop
Same shape for Cursor / Cline / Windsurf / Zed.
Tutorial
See https://jmespath.org/tutorial.html for the language. Common patterns:
foo.bar— nested key accesspeople[*].name— pluck from each itempeople[?age > \30`].name` — filter then projectsort_by(people, &age)[*].name— sort + projectkeys(@),values(@),length(@)— basic functions
License
MIT OR Apache-2.0.
来源:packages/jmespath-mcp/README.md,提交 6fad5bb
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分