mcp-server

v1.4.0
@81pass/mcp-server Checked 2 days ago Published 1 month ago

Official Model Context Protocol (MCP) server for 81 Pass Sovereign Identity, KYA Agent Registry, Pre-Flight 81 Pay Gating (IAL2+), 1-Click A2A Deal Settlement…

Connect your AI coding assistants and autonomous agents (Claude Desktop, Cursor, Antigravity, Windsurf, Cline) directly to the 81 Pass Sovereign Identity Network. Issue, verify, revoke, and inspect W3C Verifiable Credentials and manage closed-loop 81 Pay balances natively through LLM function calling. Run instantly without installation using npx: Add this configuration to your claude_desktop_config.json:

Summary extracted from the README.

@81pass/mcp-server

Infinitas oportunidades (8). Una sola identidad soberana (1).
Official Model Context Protocol (MCP) Server for the 81 Pass Sovereign Identity Platform and 81 Pay.

Connect your AI coding assistants and autonomous agents (Claude Desktop, Cursor, Antigravity, Windsurf, Cline) directly to the 81 Pass Sovereign Identity Network. Issue, verify, revoke, and inspect W3C Verifiable Credentials and manage closed-loop 81 Pay balances natively through LLM function calling.

npm version License: MIT


⚡ Quick Start & 3-Second Bidirectional Onboarding

Run instantly without installation using npx:

# 1. Sandbox mode (no API key required)
npx -y @81pass/mcp-server

# 2. Direction A (Human -> Agent Claim in 1 Command):
# Claims a single-use 81P-CLAIM-XXXX-XXXX token, mints your @alias <-> alias.81pass W3C credential,
# notifies your human controller via Meta WhatsApp Cloud API, and boots the MCP server:
npx -y @81pass/mcp-server --claim 81P-CLAIM-MUSE-4821

# 3. Direction B (Agent -> Human Approval in 1 Command):
# Generates a 1-click Passkey approval URL (https://81pass.co/agents?approve=81P-APPROVE-...) for your human:
npx -y @81pass/mcp-server --request-approval @muse --agent-runtime claude-mcp

# 4. Live production mode with existing API key
npx -y @81pass/mcp-server --api-key pk_live_your_key_here

Or install globally:

npm install -g @81pass/mcp-server
81pass-mcp --api-key pk_live_...

🤖 Client Setup

1. Claude Desktop

Add this configuration to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "81pass": {
      "command": "npx",
      "args": ["-y", "@81pass/mcp-server"],
      "env": {
        "EIGHTYONE_API_KEY": "pk_live_your_api_key_here"
      }
    }
  }
}

Tip: Leave EIGHTYONE_API_KEY empty or omit it to run in Interactive Sandbox Mode (pk_test_...) with simulated credentials and balances.


2. Cursor / Windsurf

Add to .cursor/mcp.json or your workspace MCP settings:

{
  "mcpServers": {
    "81pass": {
      "command": "npx",
      "args": ["-y", "@81pass/mcp-server"],
      "env": {
        "EIGHTYONE_API_KEY": "pk_live_your_api_key_here"
      }
    }
  }
}

3. Remote HTTP Streamable Mode (Serverless)

If your environment supports Server-Sent Events (SSE) or streamable HTTP MCP rather than standard stdio sub-processes, 81 Pass exposes a high-availability AWS Lambda endpoint:

  • Endpoint: POST https://api.81pass.co/mcp
  • Header: Authorization: Bearer <your_api_key>
  • Transport: Streamable JSON-RPC 2.0 over HTTP

🛠️ Tool Catalog (36 Local Stdio CLI Tools / 49 Remote Streamable HTTP Tools)

The server exposes 36 native stdio CLI tools (and 49 remote tools at POST https://api.81pass.co/mcp, discoverable via GET https://81pass.co/.well-known/mcp.json) governed by the 81 Pass Sequence Rule (8 FIRST: Infinite Autonomous Capabilities → 1 SECOND: One Sovereign Identity):

🟢 Safe Read & Verification Tools (Autonomous Execution)

These tools do not alter state and can be executed by agents without human confirmation:

Tool Description
verify_credential Cryptographically verify a W3C Verifiable Credential against issuer public keys and Bitstring Status List v1.0.
check_credential_status Query real-time cryptographic revocation/suspension status of a credential.
resolve_did Resolve a did:web or did:ion identifier to its W3C DID Document and public keys.
get_billing_balance Query partner 81 Pay closed-loop ledger balance, active currency (COP/USD), and monthly limits.
get_endorsement_ledger Retrieve the cryptographic audit trail of endorsements (cdiHash) for an organization or credential.
resolve_public_profile Resolve an agent or recipe (@alias, alias.81pass, 81PASS-XXXX-XX, RCP-81P-XXXX-XX, or 81pass.eth) to its W3C AgentPublicProfileCredential.
verify_a2a_handshake Perform bidirectional Agent-to-Agent (A2A) cryptographic verification with handshakeNonce, 5,000ms anti-cache window, <3s BitstringStatusList check, and Stripe/Wompi disputeEvidencePackage.
quote_agent_alias Quote availability and tier classification for a Dual-Layer @alias across all 7 official 81 Pass DNS mirrors.
list_agent_recipes Browse curated Zero-Knowledge Agent Recipes (RCP-81P-XXXX-XX) by category, risk tier, and required IAL.
quote_creator_cashout Quote 81 Pay Closed-Loop royalty cashouts (COP/USD) under DIAN Factus FEV Code 49 (0% VAT on fee) with sovereignPurchasingPower progress bar.
get_bootstrap_ticket_status Poll real-time status (PENDING → CLAIMED / APPROVED) for 81P-CLAIM-... and 81P-APPROVE-... onboarding tickets.
verify_agent_identity Verify an agent identity across @alias, .81pass, 81PASS-XXXX-XX, or secondary defensive ENS .eth handles.
resolve_public_alias Resolve a public @alias, .81pass handle, or secondary ENS domain (81pass.eth) to its canonical 81 Pass ID profile.
pre_flight_81pay_check Evaluate Pre-Flight Financial Gating (81 Pass ID Free LoA 1 vs 81 Pay IAL2+ Prerequisite) and trigger the predictive setup card (8 → 1).
list_pending_human_approvals List all pending 81P-APPROVE-XXXX-XXXX reverse onboarding requests with 1-Tap 3-choice visualPairingOptions.
search_verified_agents Open A2A Verified Agent Directory search by category, capability, minimum IAL, and Cryptographic Trust Score (0–1000 under 8 → 1).

🔴 Write, KYA & Onboarding Tools

Tool Action Requires Consent
issue_credential Issue a signed W3C Verifiable Credential to a citizen or employee DID ✅ Yes
revoke_credential Permanently revoke a credential in the W3C Bitstring Status List ✅ Yes
suspend_credential Temporarily suspend a credential with a reactivation timestamp ✅ Yes
topup_billing_wallet Top up closed-loop 81 Pay funds via Stripe Global or Wompi Bre-B ✅ Yes
request_endorsement Request an institutional or peer cryptographic endorsement ✅ Yes
request_agent_auto_heal Trigger a 1-Click WebAuthn Passkey Auto-Heal session (ahs_81p_...) when an agent lacks KYA or hits a limit Fast-Path
claim_agent_alias Register and bind a Dual-Layer @alias (alias.81pass) to an autonomous agent DID Fast-Path
claim_brand_alias_kyb Verify corporate KYB (IAL3) to unlock reserved brand/trademark aliases Fast-Path
execute_agent_recipe Execute a Zero-Knowledge Recipe (RCP-81P-XXXX-XX) inside the AWS Nitro Enclave Gateway (ZERO_BYTES prompt exposure) Risk-Gated
publish_agent_recipe Seal and publish a new Zero-Knowledge Recipe (RCP-81P-XXXX-XX) with 81%/19% Mandate royalty split Fast-Path
issue_agent_bootstrap_claim Direction A (Step 1): Mint a single-use 81P-CLAIM-XXXX-XXXX bootstrap ticket & prompt Fast-Path
claim_agent_identity Direction A (Step 2): Consume 81P-CLAIM-XXXX-XXXX to adopt @alias and notify human on WhatsApp Fast-Path
request_human_approval Direction B (Step 1): Generate 81P-APPROVE-XXXX-XXXX 1-click Passkey approval URL with 1-Tap 3-choice visualPairingOptions Fast-Path
approve_agent_request Direction B (Step 2): Human Passkey biometric approval with 1-Tap Number Matching (403 VISUAL_PAIRING_CODE_MISMATCH on decoy) ✅ Yes
activate_81pay_preflight Complete Pre-Flight Financial Gating (IAL2 $5/yr or IAL3 $20/yr) via the Provider-Agnostic KYC/KYB Hub + welcome bonus credits ✅ Yes
recirculate_creator_royalties Spend accumulated 81% creator royalties from $0.01 USD at 0% fee inside the 81 Pass closed-loop ecosystem Fast-Path
heartbeat_bootstrap_claim Extend the 15-minute TTL window of a pending 81P-CLAIM-XXXX-XXXX ticket via elastic Live Sync heartbeat Fast-Path
regenerate_bootstrap_claim Regenerate an expired 81P-CLAIM-XXXX-XXXX ticket in 1 click without losing the pre-selected @alias or recipes Fast-Path
submit_dispute_evidence Zero-Touch Chargeback Defense (< 2s SLA): Dispatch HSM-signed EVB-81P-HSK-... evidence to Stripe Disputes API or Wompi / Redeban + FE-DIAN Fast-Path
execute_a2a_directory_deal 1-Click Autonomous A2A Directory Deal & Settlement (< 100ms via 4 Cryptographic Safety Locks, spt_81p_..., or Passkey Step-Up) Risk-Gated
fulfill_a2a_deal_pass Instant Post-Deal W3C VC (A2ADealFulfillmentCredential) + Apple/Google Wallet Pass (PASS-81P-...) + Meta WhatsApp Cloud API v20.0 + Pillar 8 Trust Score Progression Fast-Path

🧪 Interactive Sandbox Mode

When no API key is provided, or when using a test key starting with pk_test_:

  • Tools return realistic simulated responses without network calls or balance deductions.
  • resolve_did simulates canonical DID documents.
  • verify_credential validates the JSON schema and cryptographic envelope locally.
  • Write tools simulate the full Human Consent Loop seamlessly.

🔐 Security & Architecture

  • Clean Stdio Stream: All diagnostic logs, progress messages, and banners are routed exclusively to process.stderr. process.stdout remains pristine for JSON-RPC 2.0 communication.
  • Timing-Safe Tokens: Consent tokens use HMAC-SHA256 with constant-time equality comparisons (crypto.timingSafeEqual) to prevent timing attacks.
  • Enterprise Grade: Adheres strictly to W3C Verifiable Credentials Data Model v2.0, W3C DID Core 1.0, and DIAN tax rules for closed-loop software licensing.

📄 License

MIT © 81 Pass Inc.