@fidesbuild/mcp-server

中文文档
0.14.0发布于 2026/11/10MITTypeScriptES Module近 30 天下载 2890

FIDES as tools for Claude and any MCP client: plan and execute actions inside a signed FIDES, gas paid by the hosted relayer.

原始使用文档
文档目录5 节
  1. Set up
  2. Tools
  3. Paid APIs
  4. Other MCP apps
  5. Settings

@fidesbuild/mcp-server

FIDES for Claude, and for any other MCP app. You sign a FIDES once, with a budget, the contracts the agent may call and an expiry. Then you ask Claude in plain words, for example "pay 1 USDG to 0x…". Claude plans the actions through FIDES, shows you what is inside the FIDES and what is blocked, and executes only when you say so. Anything outside the FIDES is never sent.

  • Funds move from your FIDES Account, never from your wallet.
  • The agent key this server makes holds no funds. It can only sign actions inside the FIDES you signed for it.
  • Gas is paid by the hosted FIDES relayer, so the agent key needs no ETH.

Set up

  1. Add FIDES to Claude.

    Claude Desktop: download the FIDES extension, double-click it and click Install.

    Claude Code, in a terminal, on Windows:

    claude mcp add fides -- cmd /c npx -y @fidesbuild/mcp-server@latest
    

    On macOS or Linux:

    claude mcp add fides -- npx -y @fidesbuild/mcp-server@latest
    
  2. In Claude, say "Set up FIDES". Claude gives you a link to the FIDES app with its agent address filled in.

  3. Open the link, set the budget, the contracts and the expiry, sign, then create and fund your FIDES Account.

  4. Ask Claude for what you want. It picks up the signed FIDES by itself; there is nothing to download.

Claude Code and other MCP apps need Node 20.10 or later. Claude Desktop has its own.

Tools

ToolWhat it does
fides_setupA link to the FIDES app with this agent filled in
fides_statusThe FIDES: active or not, budget spent and remaining, FIDES Account balance, allowed contracts, expiry, agent address
fides_planBuilds transfers and contract calls into one plan, checks each against the FIDES, groups them, simulates. Sends nothing. Calls any verified contract by function name and plain values, encoded from its verified source
fides_inspect_contractReads any contract on the chain and lists what an agent could call, with risky functions flagged
fides_read_contractReads a value from any verified contract by function name, such as a market or a balance. Free
fides_check_apiReads a paid API's price without paying, and says whether a FIDES can pay it
fides_swapSwaps on Uniswap inside the trading mandate the owner signed
fides_executeExecutes a plan by its id. Only the actions inside the FIDES are sent
fides_pay_requestBuys from a paid API over x402: checks the price against the service's cap in the FIDES, pays from the FIDES, returns the response
fides_receiptsEvery transaction executed under the FIDES, with explorer links
fides_helpWhat you can do with FIDES, the paid APIs known to work with their prices, and what to try
fides_use_fileLoads a fides.json file, for a FIDES that was not signed in the app

The FIDES used is the newest valid one signed for this agent: from the FIDES API, where the app shares a FIDES when it is signed, or from the copy kept in ~/.fides. Each is verified onchain before it is used.

Paid APIs

Claude can buy from APIs that charge per request over x402, from your FIDES. Each paid service is named in the FIDES with a cap; anything not named, or past its cap, is refused before paying. To try it, ask Claude: "Set up FIDES with the fides-demo paid service, up to 0.1 USDG", sign, then "Buy the chain stats from the FIDES demo" (0.01 USDG for Robinhood Chain's latest block, gas price and USDG supply).

Paid APIs known to work, each bought through FIDES with real payments on mainnet:

Service idURLPrice
fides-demohttps://api.fidesbuilder.xyz/v1/demo/chain-stats0.01 USDG
spraayhttps://gateway.spraay.app/api/v1/models0.001 USDG
madeonsolhttps://madeonsol.com/api/x402/rhc/kol/feed?limit=50.04 USDG

Any API that charges USDG on Robinhood Chain over x402 (exact, EIP-3009) works the same way. The service id is any name you choose when you sign. Ask Claude "What can you do with FIDES?" to get this list in the chat.

Other MCP apps

Add a server with the command npx and the arguments -y @fidesbuild/mcp-server@latest (on Windows, the command cmd and the arguments /c npx -y @fidesbuild/mcp-server@latest). npx -y @fidesbuild/mcp-server setup makes the agent key and prints the setup link from a terminal.

Settings

All optional, set in the environment of the server.

VariableDefault
FIDES_HOME~/.fides, where agent.json and the FIDES in use are kept
FIDES_FILE~/.fides/fides.json
FIDES_RPChttps://rpc.mainnet.chain.robinhood.com
FIDES_APIhttps://api.fidesbuilder.xyz: the relayer that pays gas, and where signed FIDES are looked up
FIDES_APPhttps://fidesbuilder.xyz/app, for the setup link
FIDES_RELAYSet to self to have the agent key pay gas itself (give it a little ETH)
FIDES_LOOKUPSet to off to use only the FIDES kept in FIDES_FILE
FIDES_AGENT_KEYUse this private key instead of ~/.fides/agent.json

The hosted relayer has a daily gas budget shared by everyone. If it runs out, fides_execute says so; use FIDES_RELAY=self or try later.

Docs: fidesbuilder.xyz/docs

版本与发布记录

@fidesbuild/mcp-server 共发布 17 个版本,首次发布于 2026/10/18;过去 12 个月发布了 17 个版本。

版本发布日期距今
0.14.0latest2026/11/105 天前
0.13.12026/11/077 天前
0.13.02026/11/078 天前
0.12.02026/11/0410 天前
0.11.12026/11/0411 天前
0.11.02026/11/0311 天前

关于 @fidesbuild/mcp-server 的常见问题

@fidesbuild/mcp-server 是什么?

FIDES as tools for Claude and any MCP client: plan and execute actions inside a signed FIDES, gas paid by the hosted relayer.

如何安装 @fidesbuild/mcp-server?

在项目目录运行 npm install @fidesbuild/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 fides-mcp,可以用 npx fides-mcp 直接运行。

@fidesbuild/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fidesbuild/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fidesbuild/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.10。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@fidesbuild/mcp-server 可以商用吗?

@fidesbuild/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fidesbuild/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@fidesbuild/mcp-server 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,890 次,日均约 96 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fidesbuild/mcp-server 还在维护吗?

最新版本 0.14.0 发布于 2026/11/10(5 天前);至今共发布 17 个版本,其中过去 12 个月发布了 17 个;首次发布于 2026/10/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。