infura - mcp是一个MCP服务器,可让开发者使用Infura API查询以太坊区块链数据,实现自然语言到以太坊链上数据的即时转换。
⭐ 如果你觉得infura - mcp有用,请给这个仓库点个星!你的支持对我们的发展至关重要,能帮助我们更快地改进。
本项目未得到Infura的任何赞助或支持。
npm install
npm run dev
{
"mcpServers": {
"everything": {
"command": "npx",
"args": [
"-y",
"infura-mcp"
],
"env": {
"INFURA_API_KEY": "your-api-key-here",
"WRITE_TOOLS_ENABLED": false
}
}
}
}
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
docker run -d \
--name infura-mcp-server \
-p 3000:3000 \
-e INFURA_API_KEY="your-infura-api-key" \
sumiteshn/infura-mcp:latest
注意:
infura - mcp中提供了以下工具:
eth_get_accountseth_get_balanceeth_get_blob_base_feeeth_get_block_by_hasheth_get_block_by_numbereth_get_block_numbereth_get_block_receiptseth_get_block_transaction_count_by_hasheth_get_block_transaction_count_by_numbereth_get_codeeth_get_fee_historyeth_get_gas_estimateeth_get_gas_priceeth_get_logseth_get_proofeth_get_storage_ateth_get_transaction_by_block_hash_and_indexeth_get_transaction_by_block_number_and_indexeth_get_transaction_by_hasheth_get_transaction_counteth_get_transaction_receipteth_get_uncle_by_block_hash_and_indexeth_get_uncle_by_block_number_and_indexeth_get_uncle_count_by_block_hasheth_get_uncle_count_by_block_numbereth_get_worketh_get_hashrateeth_max_priority_fee_per_gaseth_get_mining_statuseth_get_protocol_versioneth_send_raw_transactioneth_get_simulated_transactionseth_submit_worketh_get_sync_statuseth_get_web3_client_version请查看仓库中的LICENSE文件获取详细的许可证信息。