Nerve Rpc

io.github.reagost由 GitHub 账号 reagost 发布v1.0.2更新于 Oct 24, 2026

MCP server for Nerve blockchain JSON-RPC & REST API for AI Agents

已验证STDIO仅桌面金融开发者工具

概览

AI 生成的概览

一个本地 MCP 服务器,将 Nerve 区块链的 JSON-RPC 与 REST API 暴露给助手,用于查询余额、地址和支付。

可以做什么
通过以工具形式暴露的 JSON-RPC 与 REST 接口查询 Nerve 区块链数据,例如按资产查询收款金额和账户余额(清单未列出具体工具)。在本地创建并校验 Nerve 地址,密钥为非托管方式。支持直接用地址资产付款,或先通过 NerveSwap 兑换再付款。配合随附的 AI 技能实现 PayBox 多链收款、订单查询和 webhook 签名校验。
适用场景
适用于构建或运行需要在 Nerve 区块链上收款、付款、兑换或查询余额的 AI 代理,或需要接入 PayBox 多链收款的场景。更适合使用 Nerve 代理支付框架的开发者,而非通用区块链查询。
运行要求
以 Node.js 本地进程运行,可从仓库构建或用 npx 启动。README 配置将 NERVE_API_BASE_URL 设为 Nerve API 地址。需要能访问 Nerve API 的网络。PayBox 功能需要注册 Nabox ID、收款地址和回调 URL。
安装前请注意
这是支付与钱包类软件:涉及本地生成的账户和签名,配置不当会使密钥和资金面临风险。工具可发起链上付款和兑换,会转移真实资产;PayBox 收款涉及第三方服务和 webhook 校验。在让助手自主操作前请先审查配置。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Nerve Agent — AI Payment Framework & MCP

Nerve Agent payment framework and Nerve RPC MCP for developers and AI Agents: receive, pay, swap, and query balances. Decentralized protocol, locally generated and managed accounts, no gas fees, fast confirmation.

Also includes PayBox integration: accept payments from Ethereum, BSC, Polygon, TRON, NULS, NERVE — receive USDT on your Nerve address automatically.


Repository Structure

PathDescription
agent-payment-framework/Payment framework docs: receiver / payer / PayBox / local accounts
nerve rpc mcp/Nerve RPC MCP server: exposes Nerve JSON-RPC / REST as MCP tools
nerveswap sdk/NerveSwap JS SDK and Nerve public API reference
.cursor/skills/nerve-agent-payment/AI Skill: Nerve receive, pay, balance, address, NerveSwap
.cursor/skills/paybox-payment/AI Skill: PayBox multi-chain collection via Nerve address

Quick Start

1. Clone the repository

bash
git clone https://github.com/NerveNetwork/nerve-agent.gitcd nerve-agent

2. Build and configure Nerve RPC MCP

bash
cd "nerve rpc mcp"npm installnpm run build

Add to your MCP client config (Cursor, Claude Desktop, etc.) — replace <PATH_TO_NERVE_AGENT>:

json
{  "mcpServers": {    "nerve-rpc": {      "command": "node",      "args": ["<PATH_TO_NERVE_AGENT>/nerve rpc mcp/dist/index.js"],      "env": {        "NERVE_API_BASE_URL": "https://api.nerve.network"      }    }  }}

3. Install AI Skills

Skills are stored in .opencode/skills/ (OpenCode-native) and .cursor/skills/ (Cursor-compatible).

Project level (auto-loaded when you open this repo in OpenCode or Cursor):

bash
git clone https://github.com/NerveNetwork/nerve-agent.git# Skills are detected automatically in .opencode/skills/ and .cursor/skills/

User-wide (available in all your projects):

OpenCode / OpenClaw (native path)
bash
mkdir -p ~/.config/opencode/skills/nerve-agent-paymentcurl -o ~/.config/opencode/skills/nerve-agent-payment/SKILL.md \  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.opencode/skills/nerve-agent-payment/SKILL.md
mkdir -p ~/.config/opencode/skills/paybox-paymentcurl -o ~/.config/opencode/skills/paybox-payment/SKILL.md \  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.opencode/skills/paybox-payment/SKILL.md
Cursor
bash
mkdir -p ~/.cursor/skills/nerve-agent-paymentcurl -o ~/.cursor/skills/nerve-agent-payment/SKILL.md \  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.cursor/skills/nerve-agent-payment/SKILL.md
mkdir -p ~/.cursor/skills/paybox-paymentcurl -o ~/.cursor/skills/paybox-payment/SKILL.md \  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.cursor/skills/paybox-payment/SKILL.md

After installing, restart your AI client. Skills auto-load when relevant tasks are detected.

Also add a npx MCP config (after publishing to npm):

json
{  "mcpServers": {    "nerve-rpc": {      "command": "npx",      "args": ["-y", "nerve-rpc-mcp"]    }  }}

Skills Overview

nerve-agent-payment

AI skill for Nerve blockchain payment integration.

Triggers automatically when: creating Nerve address, checking NVT balance, receiving crypto, paying on-chain, using NerveSwap, building Agent wallets.

Covers:

  • Create / validate Nerve address (nerve-sdk-js, non-custodial)
  • Query received amounts by asset (Nerve RPC MCP)
  • Pay directly with address assets (NerveSwap SDK)
  • Swap then pay (NerveSwap SDK)
  • Local signing for Agent/server use
  • MCP tools quick reference and setup

paybox-payment

AI skill for PayBox multi-chain payment collection.

Triggers automatically when: accepting payments from multiple chains, integrating PayBox, handling cross-chain collection, verifying PayBox webhook callbacks, querying PayBox orders.

Covers:

  • Prerequisites: Nabox ID registration, collection address, callback URL
  • Payment page invocation (testnet + mainnet URLs)
  • Webhook signature verification (ECDSA, Java + TypeScript examples)
  • Query APIs: chains, assets, price, order status
  • Integration checklist
  • TypeScript API client example

Capabilities Overview

  • Receiver (Nerve): Create address locally → share → query received currency and amount via MCP.
  • Payer (Nerve): Query assets via MCP → pay directly or swap via NerveSwap then pay.
  • PayBox Merchant: Register Nabox ID → accept payments from 6+ chains → receive USDT on Nerve.
  • Protocol: Decentralized; accounts generated and managed locally, keys never custodial.
  • Nerve: Fast confirmation (~2s), no gas fees — suited for AI and high-frequency payments.

Links


Pushing to GitHub

bash
git remote add origin https://github.com/NerveNetwork/nerve-agent.gitgit branch -M maingit push -u origin main

Add Topics: nerve, mcp, blockchain, agent, payment, nerveswap, paybox, cross-chain.


License

MIT

来源:README.md,提交 c5696c0

工具

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

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

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