Infura Mcp

Infura Mcp

🚀 infura - mcp 🌱

infura - mcp是一个MCP服务器,可让开发者使用Infura API查询以太坊区块链数据,实现自然语言到以太坊链上数据的即时转换。

GitHub stars PyPI version Build Status

⭐ 如果你觉得infura - mcp有用,请给这个仓库点个!你的支持对我们的发展至关重要,能帮助我们更快地改进。

本项目未得到Infura的任何赞助或支持。

🚀 快速开始

开发环境搭建

  1. 安装依赖
npm install
  1. 启动开发服务器
npm run dev

✨ 主要特性

  • 支持HTTP流式传输
  • 支持Docker容器化

📦 安装指南

使用Claude Desktop

{
"mcpServers": {
"everything": {
"command": "npx",
"args": [
"-y",
"infura-mcp"
],
"env": {
"INFURA_API_KEY": "your-api-key-here",
"WRITE_TOOLS_ENABLED": false
}
}
}
}

使用Docker

Linux平台

docker run --platform linux/amd64 -d \
--name infura-mcp-server \
-p 3000:3000 \
-e INFURA_API_KEY="your-infura-api-key" \
sumiteshn/infura-mcp:latest

非Linux平台

docker run -d \
--name infura-mcp-server \
-p 3000:3000 \
-e INFURA_API_KEY="your-infura-api-key" \
sumiteshn/infura-mcp:latest

💻 使用示例

可用工具说明

注意:

  1. 所有只读工具都以 get 为前缀,其余为写入工具。
  2. 写入工具 默认禁用,但可以通过在环境变量中设置 WRITE_TOOLS_ENABLED=true 来启用。

infura - mcp中提供了以下工具:

  • eth_get_accounts
  • eth_get_balance
  • eth_get_blob_base_fee
  • eth_get_block_by_hash
  • eth_get_block_by_number
  • eth_get_block_number
  • eth_get_block_receipts
  • eth_get_block_transaction_count_by_hash
  • eth_get_block_transaction_count_by_number
  • eth_get_code
  • eth_get_fee_history
  • eth_get_gas_estimate
  • eth_get_gas_price
  • eth_get_logs
  • eth_get_proof
  • eth_get_storage_at
  • eth_get_transaction_by_block_hash_and_index
  • eth_get_transaction_by_block_number_and_index
  • eth_get_transaction_by_hash
  • eth_get_transaction_count
  • eth_get_transaction_receipt
  • eth_get_uncle_by_block_hash_and_index
  • eth_get_uncle_by_block_number_and_index
  • eth_get_uncle_count_by_block_hash
  • eth_get_uncle_count_by_block_number
  • eth_get_work
  • eth_get_hashrate
  • eth_max_priority_fee_per_gas
  • eth_get_mining_status
  • eth_get_protocol_version
  • eth_send_raw_transaction
  • eth_get_simulated_transactions
  • eth_submit_work
  • eth_get_sync_status
  • eth_get_web3_client_version

📄 许可证

请查看仓库中的LICENSE文件获取详细的许可证信息。

  • 0 关注
  • 0 收藏,24 浏览
  • system 提出于 2025-09-22 12:18

相似服务问题

相关AI产品