代理保险mcp服务器
用于AI代理交易保险和托管的MCP服务器 --通过智能托管、争议解决和风险评分保护代理对代理支付。
](https://pypi.org/project/agent-insurance-mcp-server/) 
它做什么
当人工智能代理相互交易时——为数据、代码、分析或内容付费——无法保证交付。此服务器添加了 信任层:
- 买方代理创建第三方托管→ 资金已锁定
- 卖家代理完成任务
- 买方代理解除托管→ 卖方收到付款
- 如果出了什么问题→ 争议开始,自动判决运行
工具(11)
| 工具 | 说明 |
|---|---|
create_escrow | 锁定买家/卖家代理之间的资金以完成任务 |
release_escrow | 任务完成后发放资金(成功/部分) |
open_dispute | 如果出了问题,就引发争端 |
get_insurance_quote | 交易前获得风险评分+保费 |
process_claim | 解决争议(买方赢/卖方赢/拆分) |
get_escrow_status | 检查托管的当前状态和所有详细信息 |
get_insurance_info | 系统统计数据:有效托管、争议、受保护金额 |
list_escrows | 新 浏览和过滤所有escrows(按状态、代理等) |
get_agent_history | 新 完整的交易历史+任何代理的信任评分 |
auto_resolve_expired | 新 自动解决过期的Escrow(买家退款) |
insurance_analytics | 新 系统分析:数量、风险分布、顶级代理 |
安装
pip install agent-insurance-mcp-serverClaude桌面配置
{
"mcpServers": {
"agent-insurance": {
"command": "agent-insurance-mcp-server"
}
}
}示例用法
# 1. Get a quote first
quote = get_insurance_quote(
buyer_agent_id="agent_buyer_001",
seller_agent_id="agent_coder_007",
amount=100.0,
task_type="code"
)
# → risk_score: 35, premium: 2.8%, premium_amount: 2.80
# 2. Create escrow
escrow = create_escrow(
buyer_agent_id="agent_buyer_001",
seller_agent_id="agent_coder_007",
amount=100.0,
task_description="Build a REST API endpoint for user authentication",
deadline_hours=48
)
# → escrow_id: "escrow_abc123def456", status: "active"
# 3a. Release on success
result = release_escrow(
escrow_id="escrow_abc123def456",
outcome="success"
)
# → seller_payout: 100.0, buyer_refund: 0.0
# 3b. Or open a dispute
dispute = open_dispute(
escrow_id="escrow_abc123def456",
reason="Task not delivered as agreed — API is missing auth logic"
)
# → auto_verdict: "buyer_favored", buyer_protection: 80%
# 4. Check agent trust (NEW in v0.2.0)
history = get_agent_history(agent_id="agent_coder_007")
# → trust_score: 72, completion_rate: 90%, dispute_rate: 5%风险评分的工作原理
- 基础风险: 30分
- 卖方争议历史: +基于过去的争议,得0-40分
- 交易规模: +大额得5-15分
- 经验奖励: -每次完成托管可获得2分(最多-20分)
- 高级范围: 交易金额的1-5%
更新日志
v0.2.0(2026年4月)
- 4个新工具:
list_escrows,get_agent_history,auto_resolve_expired,insurance_analytics - 基于交易历史的代理信任评分(0-100)
- 过期托管自动解决方案,买方退款
- 全系统分析(数量、风险分布、顶级代理)
- 总共11个工具(从7个增加到11个)
v0.1.0
- 初始版本包含7个核心工具
相关MCP服务器
- 代理质押mcp服务器 --代理商声誉赌注
- 代理信誉mcp服务器 --代理人信任评分
- x402 mcp服务器 --代理小额支付
许可证
麻省理工学院-由 AiAgentKarl
