Mcp Growi

io.github.Growi-DeFi由 GitHub 账号 Growi-DeFi 发布v0.2.0更新于 Oct 24, 2026

MCP server for Growi Finance — programmatic interaction with the GrowiHFVault on Arbitrum

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

本地 MCP 服务器,让助手读取 Arbitrum 上 GrowiHFVault 的状态,并用配置的钱包签名白名单内的存款、取款和授权交易。

可以做什么
通过只读工具查询 Arbitrum One 上 GrowiHFVault 与代币状态,包括金库和存款代币信息以及锁定期。准备、签名并广播范围很窄的交易:向金库授权 USDC 和 GWHF,以及金库存款和取款。在运行任何工具前执行合约与函数对白名单、解码后的金额与授权对象校验,以及版本检查。支持本地 keystore 加口令或明文私钥,并可选用自定义 Arbitrum RPC 端点。
适用场景
当你希望 AI 助手查看或操作 Arbitrum 上的 GrowiHFVault 头寸时使用,例如查询余额和锁定期,或进行小额 USDC 存款与取款。它适合专用机器人钱包,而不是主托管钱包。
运行要求
通过 npx 在本地运行,需要 Node.js。需要一个有资金的 Arbitrum 钱包:KEYSTORE_PATH 加 KEYSTORE_PASSPHRASE,或 PRIVATE_KEY。可选 RPC_URL 指定自定义 Arbitrum 端点。需要访问 Arbitrum 和 npm registry 的网络,因为版本检查失败时所有工具都会被阻止。
安装前请注意
该服务器会签名并广播真实交易,由模型决定签名内容;会话中的不可信内容可能通过提示注入盗走资金。不要在可访问浏览工具、文档读取器或其他 MCP 服务器的会话中设置 KEYSTORE_PATH 或 PRIVATE_KEY。使用全新的机器人钱包并只放少量 ETH 作 gas,切勿使用主钱包。防护仅将调用限制在四个白名单函数,并不能保证密钥安全;应视其为热钱包。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-growi

MCP (Model Context Protocol) server for Growi Finance — enables AI agents and autonomous bots to interact programmatically with the GrowiHFVault smart contract on Arbitrum.

Security

Read this before configuring a keystore or private key.

mcp-growi exposes execute_transaction, which signs and broadcasts Arbitrum transactions with the locally configured wallet. Inside any MCP client (Claude Desktop, Claude Code, etc.) the LLM has full authority over what gets signed — every tool call is initiated by the model in response to your prompts and anything else it has access to.

This makes the MCP a "confused deputy": if untrusted content reaches the model — a web page fetched by another tool, a document opened in the session, a sibling MCP server controlled by an attacker — a prompt-injection payload inside that content can instruct the model to drain the configured wallet.

Recommendations

  • Do not configure KEYSTORE_PATH or PRIVATE_KEY in a session that has access to untrusted content. If the same client has browsing tools, document-readers, or any other MCP server, treat the session as compromised by default.
  • Use a dedicated "bot" wallet. Create a fresh Ethereum address solely for mcp-growi and fund it only with the amount you intend to deposit. Never reuse your main custody wallet.
  • Keep ETH for gas low. A few dollars' worth is enough — there is no upside to holding more on the bot wallet than the next operation needs.
  • Run mcp-growi@latest. When a security release is published, the built-in version check blocks all operations until you upgrade. Pinning to an older version defeats this.

What this server does enforce

The server has its own defenses against the most direct drain paths, but they cannot prevent every form of misuse:

  • Allowlist. execute_transaction only signs calls to four (contract, selector) pairs — USDC.approve, GWHF.approve, vault.deposit, vault.withdraw. A prompt-injection payload calling USDC.transfer(attacker, balance) is rejected before signing.
  • Decoded validation. approve calls are accepted only when the spender is the GrowiHFVault address. deposit and withdraw amounts must be greater than zero.
  • Version gate. All read and write tools refuse to operate when the local MCP version cannot be verified against the npm registry, or does not match the latest published version.

These guards close the easy attacks but do not make the keystore safe in arbitrary sessions. Treat it as a hot wallet, not custody.

Contract details

FieldValue
NetworkArbitrum One
Contract0x928ed672e6eabb7a565c5eb9aac15e3cf6a18388
Vault tokenGWHF
Deposit tokenUSDC

The contract is verified on Arbiscan — you can check the source code and ABI at: https://arbiscan.io/address/0x928ed672e6eabb7a565c5eb9aac15e3cf6a18388#code

The ABI is included in this package (src/contract/abi.ts) so no external calls are needed at runtime.

Project structure

src/├── index.ts               # Server entrypoint + npm version check├── contract/              # On-chain interaction layer (viem)│   ├── abi.ts             # GrowiHFVault + ERC20 ABIs│   ├── client.ts          # Arbitrum public client + contract/token/HL addresses│   └── index.ts├── locks/│   └── lock-period.ts     # Arbitrum deposit lock + Hyperliquid 24h withdraw lockup└── tools/                 # MCP tool definitions    ├── read.ts            # Read-only on-chain queries    ├── write.ts           # Transaction prep + signing (keystore/privkey)    └── index.ts

Setup — Claude Desktop / Claude Code

Add the following to your Claude MCP config (claude_desktop_config.json or .mcp.json):

json
{  "mcpServers": {    "growi": {      "command": "npx",      "args": ["-y", "mcp-growi@latest"],      "env": {        "KEYSTORE_PATH": "/path/to/your/wallet.json",        "KEYSTORE_PASSPHRASE": "your_passphrase"      }    }  }}

Important: use mcp-growi@latest (not just mcp-growi) to ensure the MCP auto-updates every time Claude starts. If your version is outdated, or the npm registry is unreachable, all tools (read and write) will be blocked until verification succeeds.

Alternative — plain private key (less secure):

json
"env": { "PRIVATE_KEY": "0x..." }

Optional — custom RPC endpoint:

json
"env": { "RPC_URL": "https://arb-mainnet.g.alchemy.com/v2/YOUR_KEY" }

Restart Claude Desktop/Code after saving. The tools will be available once the version check passes — if calls return a version-block error, see the Security section above.

Setup — development (from source)

bash
npm installnpm run buildnpm start

Tech stack

  • TypeScript + Node.js
  • @modelcontextprotocol/sdk — MCP server implementation
  • viem — Ethereum/Arbitrum RPC interactions

来源:README.md,提交 9a08682

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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