关于 Currencyformat
Currencyformat 是用于格式化数字和货币的 MCP 服务,适合需要本地化数值输出的应用与工具。它支持按区域设置货币格式,以及常规、百分比和紧凑数字格式。
主要功能
- 01按区域设置格式化货币
- 02支持 ISO 4217 货币代码
- 03格式化常规数字、百分比和紧凑数值
适用场景
- 01按德语区域格式显示欧元金额
- 02将数值转换为百分比或紧凑表示
MCP 相关
向 MCP 客户端提供货币和数字格式化工具,可通过 Pipeworx 网关或本地 stdio MCP 服务调用。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/currencyformat/mcpclaude mcp add --transport http pipeworx-io-currencyformat https://gateway.pipeworx.io/currencyformat/mcp{"mcpServers":{"pipeworx-io-currencyformat":{"type":"http","url":"https://gateway.pipeworx.io/currencyformat/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-currencyformat":{"type":"http","url":"https://gateway.pipeworx.io/currencyformat/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-currencyformat":{"type":"http","url":"https://gateway.pipeworx.io/currencyformat/mcp"}}}{"mcpServers":{"pipeworx-io-currencyformat":{"serverUrl":"https://gateway.pipeworx.io/currencyformat/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-currencyformat
数字与货币格式化 MCP。
属于 Pipeworx — 一个将 AI Agent 连接到 1679+ 个实时数据源的 MCP 网关。
工具
| 工具 | 描述 |
|---|---|
format_currency | 将数字格式化为本地化货币(无需密钥,离线运行)。例如,金额 1234.5、货币 "EUR"、区域设置 "de-DE" -> "1.234,50 €"。currency 是 ISO 4217 代码。 |
format_number | 使用分组、固定小数位数、百分比或紧凑记数法格式化数字(无需密钥,离线运行)。style = "decimal"(默认)、"percent" 或 "compact"。 |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"currencyformat": {
"url": "https://gateway.pipeworx.io/currencyformat/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/currencyformat/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 的共享元工具——ask_pipeworx、
discover_tools、search_within、remember/recall,以及网关范围内的其他工具。因此,你看到的工具数量会多于此表:目前,单个工具包端点除了该工具包自有工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明其确切范围,也是判断特定日期实际范围的权威依据。
这是有意为之,并非意外复用。元工具使受限连接能够通过 ask_pipeworx 跨整个目录进行路由,从而回答此工具包未涵盖的问题,而无需添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构定义占用的上下文超过路由带来的价值,请改为连接一次完整网关,而不是连接多个工具包端点。
也可以连接完整的 Pipeworx 网关,直接列出每个工具包的工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都会连接到同一个网关和同一批 1679+ 个数据源。唯一的区别是直接列出哪个工具包的工具;无论连接哪一个,ask_pipeworx 都能访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/format_currency \
-H 'Content-Type: application/json' \
-d '{"amount":1234.5,"currency":"EUR","locale":"de-DE"}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/format_currency。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需经过网关往返:
{
"mcpServers": {
"currencyformat": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-currencyformat"]
}
}
}
或者直接运行以确认它能启动:
npx -y @pipeworx/mcp-currencyformat
它通过 stdin/stdout 进行 MCP 通信,并为仅此工具包的工具响应 initialize/tools/list/tools/call——不包含上述网关连接额外提供的任何共享元工具。来源相同,工具相同,不提供 ask_pipeworx 路由。
使用 ask_pipeworx
你也可以用通俗英语提问,而不是直接调用工具——这既适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Currencyformat data" })
网关会选择合适的工具并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。