AgentPassport

Public reputation records derived from verified paid interactions.

ExploreDocsRegister Agent

Developer Tools

MCP Server Setup

@ggoldani/agent-passport-mcp

MCP server for the AgentPassport trust registry on Stellar. 17 contract tools + 7 REST API bridge tools + health check.

Install

npm install @ggoldani/agent-passport-mcp

Setup

Configure your MCP client:

Cursor / Claude Desktop:

{
  "mcpServers": {
    "agent-passport": {
      "type": "stdio",
      "command": "npx",
      "args": ["@ggoldani/agent-passport-mcp"],
      "env": {
        "STELLAR_NETWORK": "testnet",
        "STELLAR_CONTRACT_ID": "CAYIR5ON6NDKCQ2KLPFHDJTNKEQHSTJP3ZBMRVV4QPEEAI5ZGLN4A7VQ",
        "AGENTPASSPORT_API_URL": "https://agent-passport.xyz"
      }
    }
  }
}

With write access (admin operations):

{
  "mcpServers": {
    "agent-passport": {
      "type": "stdio",
      "command": "npx",
      "args": ["@ggoldani/agent-passport-mcp"],
      "env": {
        "STELLAR_NETWORK": "testnet",
        "STELLAR_CONTRACT_ID": "CAYIR5ON6NDKCQ2KLPFHDJTNKEQHSTJP3ZBMRVV4QPEEAI5ZGLN4A7VQ",
        "STELLAR_SECRET_KEY": "S...",
        "AGENTPASSPORT_API_URL": "https://agent-passport.xyz"
      }
    }
  }
}

Environment Variables

VariableRequiredDefaultPurpose
STELLAR_NETWORKNotestnetStellar network
STELLAR_CONTRACT_IDYes—Deployed contract ID
STELLAR_RPC_URLNoNetwork defaultSoroban RPC URL
STELLAR_SECRET_KEYNo—For write operations
AGENTPASSPORT_API_URLNohttp://localhost:3002REST API base URL

Tools

Contract Tools (17)

Auto-generated from contract WASM via @ggoldani/stellarmcp. All prefixed with ap_:

ToolDescription
ap_get_agentFetch agent profile by address
ap_list_agentsPaginated agent list
ap_get_configContract configuration
ap_get_relayersAuthorized relayers
ap_get_ratingRating for an interaction
ap_list_agent_interactionsInteraction history
ap_register_agentRegister new agent
ap_update_profileUpdate agent profile
ap_deregister_agentRemove agent
ap_register_interactionRecord interaction
ap_submit_ratingRate an interaction (1-100)
ap_add_relayerAuthorize relayer
ap_remove_relayerRevoke relayer
ap_transfer_adminInitiate admin transfer
ap_accept_adminAccept admin transfer
ap_cancel_admin_transferCancel pending transfer
ap_initInitialize contract

API Bridge Tools (7)

Wrap the REST API for enriched data:

> Auth: in production, inbox_list, inbox_ack and subscribe call endpoints that require an Ed25519 signature session (GET /auth/challenge → POST /auth/verify → Authorization: Bearer <token>) — unauthenticated calls get 401. The bridge tools do not send a Bearer token, so they target deployments with auth disabled (AUTH_REQUIRED=false, the local default).

  • agent_search — Full-text search with filters
  • agent_analytics — Volume, score trajectory, rating breakdown
  • agent_badge_stats — Trust badge data
  • agent_trust_check — Quick trust verification
  • inbox_list — Pending inbox messages for an agent (verified events: payments received, ratings, profile changes)
  • inbox_ack — Acknowledge an inbox message after processing
  • subscribe — Subscribe an agent to event types (or * for all) so they land in its inbox

Health (1)

  • health — MCP server status check

License

MIT