Code402

io.github.89rat由 GitHub 账号 89rat 发布v1.0.1更新于 Oct 24, 2026

Discover machine-payable APIs, probe x402 payment terms, and run seller operations. Non-custodial.

已验证Streamable HTTP可网页运行网页搜索与抓取金融安全与监控

概览

AI 生成的概览

远程 MCP 服务器,在 Base 上提供确定性的加密、外汇与贸易单据校验,结果附带签名回执,并支持 x402 支付发现。

可以做什么
Code402 提供 24 个工具:Base 链查询(区块信息、ETH 与 ERC-20 余额、nonce 活动、代币合约事实)、带缓存的加密现货价格、静态外汇汇率表,以及 IBAN、LEI、SWIFT/BIC、比利时 VAT、印度 GSTIN、PAN、UPI VPA 和 IFSC 的结构校验。还包括批量校验、供应商入驻包、放款前防护、EVM 地址制裁筛查、Markdown 网页抓取、JSON Schema 校验和文本摘要。多数结果附带签名回执,receipt_verify 可校验任意 x402 服务的回执。
适用场景
当助手需要对加密地址、代币合约或贸易标识做低成本、可重复的检查,或需要确认工具结果已被签名时使用。适合仅需结构校验、无需注册表或身份查询的采购与支付流程。
运行要求
远程 streamable HTTP 端点;未声明任何软件包、账户、API 密钥或环境变量。需要能访问该端点的网络。部分工具需要先前的回执哈希,check_price 会为付费工具返回报价与结算地址。
安装前请注意
多个工具通过 x402 结算收费,依据报价操作可能产生支出;check_price 本身免费。各校验器仅做结构检查,明确不证明所有权、注册状态、银行存在或不存在欺诈,制裁筛查返回 null 状态且不筛查名称。抓取工具会访问任意公开网址,外汇表为静态而非实时。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.89rat%2Fcode402/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "code402": {
      "type": "http",
      "url": "https://rail.hcrb.in/mcp"
    }
  }
}

README

该仓库没有 README。

工具

24

crypto_ticker

Crypto ticker

Spot USD price for a crypto ticker or CoinGecko id from public price feeds, cached 60 s. Result carries a signed receipt.

输入参数symbol必填

erc20_balance

ERC-20 Token Balance Snapshot

Raw and formatted ERC-20 balanceOf for an address on Base, with decimals read from the token. Result carries a signed receipt.

输入参数address必填decimalstoken_address必填

fx_spot_price_oracle

FX spot price oracle

Reference fiat and stablecoin conversion rate from a static table, not a live feed. Returns rate and inverse; result carries a signed receipt.

输入参数base必填quote必填

block_info

Base Block Header Info

Base block header: number, timestamp, transaction count and base fee for the latest or a given block. Result carries a signed receipt.

输入参数block

tx_activity

Tx Activity & Contract Detection

Outbound transaction count (nonce) and contract-or-EOA check for an address on Base. Result carries a signed receipt.

输入参数address必填

token_contract_risk

Token contract facts (Base)

Deterministic Base contract facts: ERC-20 metadata, proxy slots, owner(), privileged-function selectors and flags. Not a safety verdict. Result carries a signed receipt.

输入参数chainaddress必填

clean_markdown_scraper

Clean markdown scraper

Fetch a public web page by URL (or take your HTML) and return Markdown plus headings. No JavaScript rendering. Result carries a signed receipt.

输入参数urlhtml

context_distill

Context distill

Deterministic text digest: word count, top-5 most frequent meaningful words (stop words excluded), first sentence, and a keccak-256 content hash. Pure function — no external calls, no ML.

输入参数text必填

instant_json_schema_verifier

Instant JSON schema verifier

Validate JSON data payloads against schema definitions. Preflighted for agent tool call pipelines.

输入参数data必填schema必填

balance_check

Base Account Balance Snapshot

Native ETH and one ERC-20 balance (default USDC) for an address on Base, raw and formatted. Result carries a signed receipt.

输入参数address必填token_address

calculate_fx_savings

Calculate cross-border FX savings

Arithmetic comparison of a USDC settlement against comparator percentages YOU supply (bank_fee_pct, custodial_fee_pct) across 14 global fiat currencies. The comparators are assumptions, not measurements of any bank or provider; no protocol fee is deducted on this rail.

输入参数amountcurrencyamount_usdamount_usdc

iban_check

IBAN Structure and Checksum Check

Validate IBAN structure and MOD-97 checksum. Does not establish account ownership, beneficiary identity or absence of fraud.

输入参数iban必填

lei_check

LEI Structure and Checksum Check

Validate a 20-character LEI and MOD-97 check digits. No registry lookup, active-registration check or legal-entity identity verification.

输入参数lei必填

vat_mod97_check

Belgian VAT MOD-97 Check

Check the supported Belgian VAT format and MOD-97 checksum. BE only; not VIES, other EU VAT formats, registration status or tax compliance.

输入参数vat_number必填

swift_bic_check

SWIFT/BIC Structure Check

Check SWIFT/BIC structure and country code. Does not establish bank existence, active routing or beneficiary identity.

输入参数bic必填

batch_validate

Batch Identifier Checks (up to 50 items)

Run up to 50 supported {tool, value} checks in one request. Each result states its scope. Compare the current batch quote with individual quotes; savings depend on batch size.

输入参数items必填

vendor_onboarding_pack

Vendor Identifier Check Pack

Check supplied IBAN, LEI, Belgian VAT and UK company-number fields in one result. Structural checks only; no ownership, registry or fraud clearance.

输入参数leiibanvat_numbercompany_number

india_supplier_check

India Supplier Verification Pack

One call, one receipt: GSTIN + PAN + UPI VPA + IFSC for an Indian counterparty. Four deterministic structural checks, each stating its own scope. Built for cross-border procurement where the buyer is an agent that cannot open an INR account.

输入参数panvpaifscgstin

pre_disbursement_guard

Counterparty Risk Indicators

Evaluate supplied identifiers, domain-age evidence and mismatch signals. Requires a preceding receipt hash. An advisory result is not verified identity, fraud clearance or authorization to release funds.

输入参数leivat_numbervendor_domaincompany_numberrecipient_ibandeclared_countryphysical_addressprev_receipt_hashinvoice_amount_usd

gstin_check

GSTIN check (India)

Validate an Indian GSTIN by structure (2-digit state code + PAN + entity code + 'Z') and its mod-36 cross-sum checksum.

输入参数gstin必填

ifsc_check

IFSC Format Check

Check the 11-character Indian IFSC format, including its fifth-character zero. No bank-branch registry lookup or account verification.

输入参数ifsc必填

sanctions_address_screen

Address Snapshot & Operator Policy Comparison

Exact EVM-address comparison against the identified address snapshot and existing operator block policy. Current legal status is unknown; is_sanctioned is null. valid=false preserves a local block; valid=null never authorizes a transaction. Names are not screened. Missing, stale or incomplete evidence is explicit; no UN/EU coverage or sanctions clearance is provided.

输入参数subject必填

check_price

Zero-cost price index and gasless x402 quote generator

Instant zero-cost pricing hook for code402 tools. Returns the live price, an opaque quote_id, TTL, and the settlement URL. Free forever — feeds the price index into an agent planner's context without creating any financial obligation. If the planner acts on the quote, it hits the settlement_url with an EIP-3009 signed voucher.

输入参数tool必填amount

receipt_verify

Verify any XDR-1 receipt — free, stateless, any issuer

Verifies a signed XDR-1 receipt from ANY x402 service: recomputes the canonical digest and recovers the signer, then compares it to the declared signer. Free forever — no account, no quota, no storage (stateless). A valid receipt proves the signer signed that tool call at that timestamp; it does NOT prove funds moved or any business claim.

输入参数receipt必填

版本历史

2
  1. v1.0.1最新Sep 25, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 75%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

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