MCP服务器

一个用于AI代理的本地MCP服务器,提供凭证解析、验证和哈希工具。

  • by bind-protocol
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 bind-protocol/mcp-server

使用说明

              ━━━╸  888888b. 8888888888b    8888888888b.
            ━━━━━╸  888  "88b  888  8888b   888888  "Y88b
          ━━━━━━━╸  888  .88P  888  88888b  888888    888
        ━━━━━━━━━╸  8888888K.  888  888Y88b 888888    888
      ━━━━━━━━━━━╸  888  "Y88b 888  888 Y88b888888    888
    ━━━━━━━━━━━━━╸  888    888 888  888  Y88888888    888
  ━━━━━━━━━━━━━━━╸  888   d88P 888  888   Y8888888  .d88P
━━━━━━━━━━━━━━━━━╸  8888888P"8888888888    Y8888888888P"

                               P R O T O C O L

@绑定协议/mcp服务器

用于绑定协议的本地MCP服务器——用于AI代理的凭证解析、验证和哈希工具。

概述

此MCP(模型上下文协议)服务器使AI代理能够使用绑定协议可验证凭据(VC JWT)。它提供了解码、加密验证和哈希凭据的工具,而无需直接访问密钥或绑定协议API。

工具

工具 说明
bind_parse_credential 将VC-JWT解码为其报头、有效载荷和签名,而无需验证签名。
bind_verify_credential 解析VC-JWT,获取发卡机构的JWKS,验证ES256签名,并检查过期时间。是否 不 检查撤销。
bind_hash_credential 计算VC-JWT的SHA-256哈希值(用于 bind_check_revocation).

安装

npm install @bind-protocol/mcp-server

或者克隆并从源代码构建:

git clone <repo-url>
cd mcp-server
npm install
npm run build

需求

  • Node.js>=18.0.0

配置

将服务器添加到MCP客户端配置中。对于Claude Desktop,编辑 claude_desktop_config.json:

{
  "mcpServers": {
    "bind-protocol": {
      "command": "npx",
      "args": ["@bind-protocol/mcp-server"]
    }
  }
}

或者直接指向已构建的二进制文件:

{
  "mcpServers": {
    "bind-protocol": {
      "command": "bind-mcp-server"
    }
  }
}

环境变量

变量 默认值 描述
BIND_API_URL https://api.bindprotocol.xyz 用于获取颁发者JWKS的绑定协议API端点。
LOG_LEVEL info 日志冗长(fatal, error, warn, info, debug, trace).

发展

npm run dev          # Build in watch mode
npm run build        # Production build
npm run typecheck    # Type-check without emitting
npm run test         # Run tests
npm run test:watch   # Run tests in watch mode

许可证

麻省理工学院

mcp服务器