The MCP2ANP Bridge Server enables MCP clients to access ANP (Agent Network Protocol) agents as local tools through protocol conversion. It bridges ANP's crawler-style interaction paradigm into MCP tool-based interactions, allowing MCP clients like Claude Desktop and IDEs to interact with ANP agents without modification.
Core Capabilities:
DID Authentication: Configure and manage local DID documents and private keys for secure authentication with ANP services
Fetch ANP Documents: Retrieve and parse ANP documents from URLs (the sole entry point to the ANP ecosystem), extracting content, type information, and discoverable links
Invoke OpenRPC Methods: Execute JSON-RPC 2.0 methods on OpenRPC endpoints exposed by ANP agents for structured remote procedure calls
Key Features:
Operates entirely locally without requiring remote servers
Supports complete multi-step workflows like hotel booking, travel planning, and agent discovery
Provides three core tools:
anp.setAuth,anp.fetchDoc, andanp.invokeOpenRPC
Provides local DID (Decentralized Identifier) authentication management using local DID documents and private keys for secure ANP agent interactions.
MCP2ANP
MCP ↔ ANP 桥接服务,让支持 MCP 的客户端像调用本地工具一样使用 ANP 智能体。
快速开始
第一步:获取 API Key
在使用 MCP2ANP 之前,你需要先获取一个 API Key:
访问 DID-HOST 并登录账户
新建 DID Card,在创建流程中勾选"生成 API Key"
将生成的私钥与 API Key 安全保存(它们仅显示一次,丢失后无法恢复)
验证 API Key(可选):
第二步:使用官方托管(推荐)
在 Claude 中直接使用官方托管端点,无需安装和配置:
将 YOUR_API_KEY 替换为你在第一步中获取的 API Key。
第三步:本地启动服务器(可选)
如果你需要自托管服务器,可以按照以下步骤操作:
3.1 安装依赖
3.2 配置 DID 凭证
方式 1: 使用默认凭证(开发测试)
直接启动,使用项目提供的默认公共 DID 凭证:
方式 2: 通过环境变量配置(推荐生产环境)
方式 3: 在 Claude 中添加本地服务器
第四步:运行官方 Demo
运行官方演示脚本,查看完整的使用示例:
Demo 会演示:
列出可用工具
调用
anp.fetchDoc获取智能体描述文档调用
anp.invokeOpenRPC执行 OpenRPC 方法