Mossgate Mcp

dev.mossgate由 mossgate.dev 发布v0.1.1更新于 Oct 24, 2026

mcp stdio server exposing mossgate trust and rue render apis with x402 usdc payment

概览

AI 生成的概览

向 MCP 智能体开放付费的 Mossgate 信任与 Rue 渲染 API,每次工具调用以 Base 上的 USDC 结算。

可以做什么
这是一个本地 stdio MCP 服务器,封装了两个付费 HTTP API。它提供 token_verdict、wallet_profile 和 token_report 用于代币与钱包风险检查,以及 render,可将 URL 或 HTML 渲染为 PDF、PNG 或 JPEG 并以 base64 返回。支付通过 x402 v2 以 Base 上的 USDC 按次完成,由已充值钱包无 gas 签名。
适用场景
当助手需要按需进行代币或钱包风险检查,或需要把网页、HTML 渲染成文档和图片,并且你愿意为一个按次付费的钱包充值时可使用。适合可以接受付费 API 访问的智能体工作流。
运行要求
需要 Node.js 18 或更高版本,由 MCP 客户端通过 stdio 在本地运行(npm 包 mossgate-mcp,或使用 npx)。必须通过环境变量 MOSSGATE_BUYER_PK 提供已充值的 EVM 钱包私钥,其中需持有 Base 上的 USDC;无需 ETH 支付 gas。可选覆盖项:MOSSGATE_RPC、MOSSGATE_TRUST_URL、MOSSGATE_RENDER_URL。需要能访问 Mossgate API 的网络。
安装前请注意
MOSSGATE_BUYER_PK 是持有真实资金的钱包私钥,任何获得它的人都能花掉余额,因此不要提交到版本库,并应使用专用的低余额钱包。每次工具调用都会自动花费 USDC,费用会在没有逐次确认的情况下累积。请求会把所查询的地址、URL 或 HTML 发送到第三方 Mossgate 端点。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mossgate Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mossgate-mcp

a model context protocol (mcp) stdio server that exposes two live paid apis to any mcp-enabled agent:

  • mossgate trust (https://api.mossgate.dev) token and wallet risk checks
  • rue render (https://rue.mossgate.dev) url/html to pdf/png/jpeg

payment is x402 v2, usdc on base. the operator who runs this server funds a wallet, and every tool call spends a little usdc from it. the wallet signs an eip-3009 authorization gaslessly, so it needs only usdc, no eth for gas.

tools

  • token_verdict(address, chain=base) quick risk verdict for a token contract
  • wallet_profile(address, chain=base) behavioural risk profile for a wallet
  • token_report(address, chain=base) full token report
  • render(url|html, format=pdf|png|jpeg) render a page, returns a base64 file

install

sh
cd mcp-servernpm install

node 18+ is required.

fund the wallet

  1. create or reuse an evm wallet (any tool that gives a 0x private key).
  2. send it usdc on base (contract 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913). a few dollars covers many calls. no eth is needed, gas is sponsored by the facilitator.
  3. export the private key as an env var (never commit it):
sh
export MOSSGATE_BUYER_PK=0xyourprivatekey

optional overrides: MOSSGATE_RPC (base rpc url), MOSSGATE_TRUST_URL, MOSSGATE_RENDER_URL.

run standalone

sh
MOSSGATE_BUYER_PK=0x... node index.js

the server speaks mcp over stdio. it is meant to be launched by an mcp client, not used by hand.

claude desktop / mcp client config

add this to your mcp client config (for claude desktop: ~/.config/Claude/claude_desktop_config.json on linux, or ~/Library/Application Support/Claude/claude_desktop_config.json on macos):

json
{    "mcpServers": {        "mossgate": {            "command": "node",            "args": ["/absolute/path/to/products/mcp-server/index.js"],            "env": {                "MOSSGATE_BUYER_PK": "0xyourprivatekey"            }        }    }}

restart the client. the four tools appear and each call is paid automatically from the funded wallet.

verify it starts (no paid calls)

this lists the tools over stdio without touching the apis or spending anything:

sh
printf '%s\n' \'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"probe","version":"0"}}}' \'{"jsonrpc":"2.0","method":"notifications/initialized"}' \'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \| node index.js

run without cloning

this package is on npm, so agents and clients can run it via npx with no clone or install. set the command to npx and args to ["-y", "mossgate-mcp"] in the client config:

json
{    "mcpServers": {        "mossgate": {            "command": "npx",            "args": ["-y", "mossgate-mcp"],            "env": {                "MOSSGATE_BUYER_PK": "0xyourprivatekey"            }        }    }}

来源:README.md,提交 92b12fe

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。