MCP Tendly-区块链取证分析服务器
模型上下文协议(MCP)服务器,通过Tenderly的平台为AI助手提供区块链取证分析功能。
快速开始
先决条件
- Node.js 18+
- API招标密钥
安装
git clone
cd mcp-tenderly
npm install
npm run build配置
创建一个 .env 文件:
TENDERLY_API_KEY=your_api_key_here
TENDERLY_ACCOUNT_SLUG=your_account_slug
TENDERLY_PROJECT_SLUG=your_project_slug使用Claude代码
安装MCP服务器
claude mcp add mcp-tenderly --local stdio node dist/index.js设置环境变量
claude mcp env mcp-tenderly TENDERLY_API_KEY=your_api_key_here
claude mcp env mcp-tenderly TENDERLY_ACCOUNT_SLUG=your_account_slug
claude mcp env mcp-tenderly TENDERLY_PROJECT_SLUG=your_project_slug验证安装
claude mcp list与Claude Desktop一起使用
添加到您的Claude Desktop MCP配置文件(claude_desktop_config.json):
{
"mcpServers": {
"mcp-tenderly": {
"command": "node",
"args": ["/path/to/mcp-tenderly/dist/index.js"],
"env": {
"TENDERLY_API_KEY": "your_api_key_here",
"TENDERLY_ACCOUNT_SLUG": "your_account_slug",
"TENDERLY_PROJECT_SLUG": "your_project_slug"
}
}
}
}可用工具
交易分析
trace_transaction-获取详细的交易执行跟踪analyze_trace-分析交易跟踪以获取见解debug_transaction-使用内存/存储进行逐步调试find_errors-检测并解释交易错误
模拟与回放
simulate_transaction-执行前测试事务simulate_batch-批量交易模拟replay_transaction-回放历史交易记录
法医分析
get_wallet_transactions-检索钱包交易历史记录get_transaction_details-详细交易信息get_address_info-全面的地址分析
合同分析
get_contract_verification-合同验证状态search_contracts-在项目中搜索合同
报告
generate_report-创建法医分析报告export_report-导出报告(markdown、HTML、JSON)
公用事业
cache_clear-清除分析缓存cache_optimize-优化缓存性能
示例用法
一旦配置了Claude Code或Claude Desktop,您就可以使用自然语言:
"Analyze this transaction: 0x123... and explain what went wrong"
"Simulate sending 1 ETH from 0x456... to 0x789..."
"Generate a forensic report for wallet 0xabc..."
"Debug the failed transaction 0xdef... step by step"支持的网络
- 以太坊主网
- 多边形
- 仲裁
- 乐观主义
- 基础
- Sepolia(测试网)
- Goerli(测试网)
文档
许可证
麻省理工学院
