npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

blockchain-interaction-mcp-server

v1.0.3

Published

区块链交互框架的MCP服务器,与Claude Desktop集成

Readme

@blockchain-interaction/mcp-server

区块链交互框架的MCP服务器,与Claude Desktop应用集成。

简介

这个包提供了一个与Claude Desktop应用集成的Model Context Protocol (MCP) 服务器,允许您通过自然语言与区块链进行交互。通过Claude的对话界面,您可以执行诸如查询余额、发送交易和调用智能合约函数等操作。

安装

此包设计为通过Claude Desktop应用的配置文件自动运行,通常无需手动安装。如果您想手动安装:

npm install @blockchain-interaction/mcp-server

快速开始

最简单的使用方法是通过我们的配置生成器:

  1. 访问 https://dapp-b.onrender.com/config-generator.html
  2. 填写您的区块链RPC URL和API密钥(默认已提供公共RPC)
  3. 点击"生成配置"按钮
  4. 复制生成的JSON配置
  5. 将配置保存到Claude Desktop应用的配置文件中:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json

使用示例

一旦设置完成,您可以在Claude桌面应用中使用自然语言与区块链交互:

查询0x1234567890123456789012345678901234567890在Base网络上的ETH余额
向0x1234567890123456789012345678901234567890发送0.01 ETH
调用0x1234567890123456789012345678901234567890合约的balanceOf函数,参数是0x8349Fc69c48aF23e030A655736375d8942De5347

环境变量

服务器支持以下环境变量:

| 环境变量 | 描述 | 默认值 | |---------|------|-------| | BASE_MAINNET_RPC_URL | Base网络的RPC URL | https://mainnet.base.org | | ETHEREUM_MAINNET_RPC_URL | 以太坊网络的RPC URL | https://eth.llamarpc.com | | SHARED_API_KEY | 与Server-A共享的API密钥 | YOUR_SUPER_SECRET_RANDOM_KEY_12345! | | SERVER_A_URL | 部署的Server-A URL | https://conversational-blockchain-interaction.onrender.com | | *_SCAN_API_KEY | 各区块浏览器API密钥 | - |

支持的区块链网络

默认支持以下网络(可通过配置添加更多):

  • Base Mainnet
  • Ethereum Mainnet
  • Polygon Mainnet
  • Optimism Mainnet
  • Arbitrum Mainnet
  • BSC Mainnet
  • 更多...

功能

  • 查询ETH和ERC20代币余额
  • 发送ETH和ERC20代币交易
  • 调用智能合约函数(读取和写入)
  • 获取合约ABI

安全说明

此工具仅生成交易,最终签名和确认必须通过用户的区块链钱包完成,确保用户对所有交易保持完全控制权。

源代码

完整源代码可在GitHub上找到:https://github.com/zhangzhongnan928/Conversational-Blockchain-Interaction-Framework

作者

Victor Zhang

许可证

MIT