Blockchain payment MCP server

Blockchain payment MCP server

blockchain-payment-mcp•bylogos-42

An MCP server that offers blockchain payment capabilities such as balance queries, token transfers, transaction tracking, gas estimation, and wallet management across multiple networks.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Queries ETH and token balances for any address on a chosen network.
  • •Sends ETH and ERC20 token transfer transactions with optional token and network parameters.
  • •Tracks transaction status and confirmation details by transaction hash.
  • •Estimates gas fees and manages wallets, including creating wallets, validating addresses, listing and switching wallets.

BEST FOR

  • •Checking token or ETH balances for an address from an AI conversation.
  • •Sending small ETH transfers to a recipient address.
  • •Looking up the status of a blockchain transaction by its hash.

ABOUT BLOCKCHAIN-PAYMENT-MCP

Blockchain payment MCP server is cataloged as an MCP server attributed to logos-42. An MCP server that offers blockchain payment capabilities such as balance queries, token transfers, transaction tracking, gas estimation, and wallet management across multiple networks. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Blockchain payment MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which networks does the server support?

It supports Base Sepolia, Base Mainnet, Ethereum Sepolia, Ethereum Mainnet, BSC, Polygon, Avalanche, and Solana networks.

Are there transaction amount safety limits?

Yes, the server has a built-in maximum transaction value limit, defaulting to 10 ETH.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3aaabc8fb1d6 · 采集于 2026-11-13 11:23:36 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

区块链支付MCP服务器

基于Base网络的区块链支付MCP(Model Context Protocol)服务器,提供完整的区块链支付功能。

🌟 功能特性

  • 多网络支持: 支持多个测试网和主网,包括Base Sepolia、Base Mainnet、Ethereum Sepolia、Ethereum Mainnet等
  • 代币支持: ETH、USDC、USDT、DAI、WETH等主流代币
  • 余额查询: 查询任意地址的ETH和代币余额
  • 安全转账: 支持ETH和ERC20代币转账
  • 交易追踪: 实时查询交易状态和确认数
  • Gas估算: 智能估算交易Gas费用
  • 钱包管理: 创建新钱包、验证地址格式
  • 安全限制: 内置交易金额限制和安全检查

🚀 快速开始

1. 安装MCP包

pip install blockchain-payment-mcp

2. MCP配置文件

项目根目录的 mcp_config.json 文件已经配置好了MCP服务器:

{
  "mcpServers": {
    "blockchain-payment": {
      "command": "blockchain-payment-mcp",
      "args": [],
      "env": {
        "PRIVATE_KEY": "your-private-key-here",
        "DEFAULT_NETWORK": "base_sepolia",
        "DEBUG": "true",
        "MAX_TRANSACTION_VALUE": "10",
        "PYTHONPATH": "."
      }
    }
  }
}

3. 环境变量配置

在 mcp_config.json 中配置以下环境变量:

  • PRIVATE_KEY: 你的私钥(用于发送交易)
  • DEFAULT_NETWORK: 默认网络(base_sepolia, ethereum_mainnet 等)
  • DEBUG: 调试模式(true/false)
  • MAX_TRANSACTION_VALUE: 最大交易金额限制

支持的MCP工具

余额和查询工具

  1. get_balance - 查询指定地址的余额

    • 参数: address (必需), token_symbol (可选), network (可选)
  2. get_network_info - 获取当前网络信息

    • 参数: network (可选)
  3. get_supported_tokens - 获取支持的代币列表

    • 参数: random_string (必需,用于无参数工具)
  4. validate_address - 验证以太坊地址格式

    • 参数: address (必需)

交易工具

  1. send_transaction - 发送代币转账交易

    • 参数: to_address (必需), amount (必需), token_symbol (可选), network (可选)
  2. get_transaction_status - 查询交易状态和详情

    • 参数: tx_hash (必需), network (可选)
  3. estimate_gas_fees - 估算Gas费用

    • 参数: to_address (可选), amount (可选), token_symbol (可选), network (可选)

钱包管理工具

  1. create_wallet - 创建新的钱包地址和私钥

    • 参数: label (可选)
  2. set_user_wallet - 设置用户钱包私钥

    • 参数: private_key (必需), label (可选)
  3. list_wallets - 列出所有已添加的钱包

    • 参数: random_string (必需)
  4. switch_wallet - 切换当前使用的钱包

    • 参数: label (必需)
  5. remove_wallet - 移除指定标签的钱包

    • 参数: label (必需)

支持的网络

  • base_sepolia - Base Sepolia 测试网
  • base_mainnet - Base 主网
  • ethereum_mainnet - 以太坊主网
  • ethereum_sepolia - 以太坊 Sepolia 测试网
  • bsc_mainnet - BSC 主网
  • bsc_testnet - BSC 测试网
  • polygon_mainnet - Polygon 主网
  • polygon_amoy - Polygon Amoy 测试网
  • avalanche_mainnet - Avalanche 主网
  • avalanche_fuji - Avalanche Fuji 测试网
  • solana_mainnet - Solana 主网
  • solana_devnet - Solana 开发网

支持的代币

  • ETH - 以太币
  • USDC - USD Coin
  • USDC_BASE - Base 网络上的 USDC
  • USDC_BSC - BSC 网络上的 USDC
  • USDC_POLYGON - Polygon 网络上的 USDC
  • DAI - Dai 稳定币
  • DAI_BASE - Base 网络上的 DAI
  • DAI_BSC - BSC 网络上的 DAI
  • DAI_POLYGON - Polygon 网络上的 DAI
  • WETH - Wrapped Ether
  • WETH_BASE - Base 网络上的 WETH

本地下载代码

1. 安装依赖

pip install -r requirements.txt

2. 环境配置

# 私钥(用于发送交易,可选)
PRIVATE_KEY=your_private_key_here

# 默认网络(默认为base_sepolia)
DEFAULT_NETWORK=base_sepolia

# 最大交易金额限制(默认10 ETH)
MAX_TRANSACTION_VALUE=10

# 调试模式
DEBUG=false

3. 本地代码-配置MCP客户端

在Cursor的mcp.json中添加:

{
  "mcpServers": {
    "blockchain-payment": {
      "command": "python",
      "args": ["-m", "blockchain_payment_mcp.server"],
      "env": {
        "PRIVATE_KEY": "your_private_key_here",
        "DEFAULT_NETWORK": "base_sepolia",
        "DEBUG": "false",
        "MAX_TRANSACTION_VALUE": "10"
      },
      "cwd": "/path/to/blockmcp"
    }
  }
}

4. 测试服务器

## 🛠️ 可用工具

### `get_balance`
查询指定地址的余额

**参数:**
- `address`: 钱包地址(必需)
- `token_symbol`: 代币符号,如"USDC"、"DAI"(可选)
- `network`: 网络名称(可选,默认base_sepolia)

**示例:**
```python
# 查询ETH余额
{"address": "0x742d..."}

# 查询USDC余额
{"address": "0x742d...", "token_symbol": "USDC"}

send_transaction

发送代币转账交易

参数:

  • to_address: 接收方地址(必需)
  • amount: 转账金额(必需)
  • token_symbol: 代币符号(可选,默认"ETH")
  • network: 网络名称(可选)
  • private_key: 发送方私钥(可选,如未提供则使用环境变量)

示例:

# 发送0.01 ETH
{"to_address": "0x...", "amount": "0.01"}

# 发送100 USDC
{"to_address": "0x...", "amount": "100", "token_symbol": "USDC"}

get_transaction_status

查询交易状态

参数:

  • tx_hash: 交易哈希(必需)
  • network: 网络名称(可选)

estimate_gas_fees

估算Gas费用

参数:

  • to_address: 接收方地址(可选)
  • amount: 转账金额(可选)
  • token_symbol: 代币符号(可选)
  • network: 网络名称(可选)

create_wallet

创建新的钱包地址和私钥

参数: 无

get_network_info

获取当前网络信息

参数:

  • network: 网络名称(可选)

get_supported_tokens

获取支持的代币列表

参数: 无

validate_address

验证以太坊地址格式

参数:

  • address: 要验证的地址(必需)

🌐 支持的网络

Base Sepolia (测试网)

Base Mainnet (主网)

Ethereum Sepolia (测试网)

Ethereum Mainnet (主网)

BSC Testnet (测试网)

BSC Mainnet (主网)

Polygon Amoy (测试网)

Polygon Mainnet (主网)

Avalanche Fuji (测试网)

Avalanche Mainnet (主网)

🔒 安全特性

  1. 交易限制: 内置最大交易金额限制(默认10 ETH)
  2. 地址验证: 严格验证所有以太坊地址格式
  3. 私钥保护: 支持环境变量和可选私钥传入
  4. 错误处理: 完善的异常处理和错误信息
  5. 日志记录: 详细的操作日志和调试信息

🧪 测试

运行测试脚本验证功能:

python test_mcp.py

测试包括:

  • 配置加载测试
  • 网络连接测试
  • 钱包功能测试
  • 地址验证测试
  • Gas估算测试

📝 示例用法

在AI对话中使用

请帮我查询地址 0x742d... 的USDC余额
请发送0.001 ETH到地址 0x123456789...
请查询交易 0xabcdef... 的状态

在测试链上进行操作

请在Base Sepolia测试网上查询地址 0x742d35cc6585c5d74b3c9e5c29ae4eeaae27b76d 的ETH余额
请在Ethereum Sepolia测试网上发送0.001 ETH到地址 0x1234567890123456789012345678901234567890

程序化使用

# 直接调用MCP工具
from blockchain_payment_mcp.server import handle_get_balance

result = await handle_get_balance({
    "address": "0x742d35cc6585c5d74b3c9e5c29ae4eeaae27b76d",
    "token_symbol": "USDC",
    "network": "ethereum_sepolia"
})
print(result)

🔧 开发

项目结构

blockmcp/
├── blockchain_payment_mcp/
│   ├── __init__.py
│   ├── server.py          # MCP服务器主文件
│   ├── blockchain.py      # 区块链交互层
│   ├── wallet.py          # 钱包和签名器
│   └── config.py          # 配置管理
├── requirements.txt       # Python依赖
├── pyproject.toml        # 项目配置
├── test_mcp.py           # 测试脚本
└── README.md             # 说明文档

🧪 测试链支持

本系统支持在多个测试链上进行支付操作,包括:

  1. Ethereum Sepolia (ETH)
  2. Base Sepolia (ETH)
  3. BSC Testnet (BNB)
  4. Polygon Amoy (MATIC)
  5. Avalanche Fuji (AVAX)

获取测试代币

要获取测试链上的代币用于测试,请访问相应的水龙头:

  1. Ethereum Sepolia:

  2. Base Sepolia:

  3. BSC Testnet:

  4. Polygon Amoy:

  5. Avalanche Fuji:

测试链注意事项

  1. 测试链上的代币没有实际价值,仅用于开发和测试目的
  2. 测试链的Gas价格通常比主网低得多
  3. 不同测试链可能有不同的区块时间和确认时间
  4. 测试链可能会重置,导致测试资产丢失

🤝 贡献

欢迎提交Issue和Pull Request!

📄 许可证

MIT License

⚠️ 免责声明

本软件仅用于教育和开发目的。使用前请充分测试,作者不承担任何资金损失责任。在主网使用前请确保充分的安全测试。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Blockchain payment MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/blockchain-payment-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics