AI Agents & Digital Identity: How MCP and OIDC4VP Empower Agents to Use the EUDI Wallet

published on 17 April 2025

As AI agents become more capable of acting autonomously, they are being used in increasingly sensitive domains: finance, healthcare, education, legal compliance, and public services. In these contexts, identity matters.

However, current AI agents lack native access to verified information about who they are interacting with. This limits trust, prevents automation, and raises security and compliance risks.

This is where Self-Sovereign Identity (SSI) and digital wallets - particularly the upcoming EUDI Wallet in Europe - can play a transformative role. And two technologies make it all work: MCP and OIDC4VP.

Imagine your AI assistant could:

  • Confirm that a user is a real person, not a bot ;
  • Receive a verified identity claim (e.g., full name, age, nationality, employment status) ;
  • Check whether a user has a legal right to act on behalf of a company ;
  • Trigger trusted workflows (onboarding, KYC, service access) without asking users to fill forms ;

All this becomes possible when AI agents can initiate and verify digital credentials directly with a wallet, using open identity standards and structured APIs.

MCP (Model Context Protocol) is an open specification that allows AI agents to discover, describe, and call external services (“tools”) in a structured way.

  • Each tool has a name, description, and input schema (JSON)
  • Tools are advertised via a .well-known/mcp/tools endpoint
  • AI agents can query that endpoint, understand available tools, and call them dynamically

Think of MCP as a “contract” between the external world and the language model.

It lets AI move beyond text → action, by using verified, structured capabilities in real-time.

OIDC4VP (OpenID for Verifiable Presentations) is the protocol that enables a verifier (like a website or agent) to request credentials from a user’s wallet.

It is used in the EUDI Wallet standard across Europe and enables:

  • QR code-based presentations
  • Selective disclosure of identity attributes
  • Cryptographic security via SD-JWT and JWT
  • Privacy-preserving user experience
  • Secure session management via nonce and state

This live tool is hosted and available at: https://verifier.wallet-provider.com/.well-known/mcp/tools

It exposes two REST-based MCP tools that any agent platform (like GPTs, Claude, Cline, Windsurf) can call directly.

Starts a PID credential request via OIDC4VP. Returns:

  1. session_id
  2. presentation_url (can be opened by the wallet)
  3. qr_code_base64 (to display in a chat UI)

The agent shows the QR code to the user, who scans it with their wallet.

Polls the status of a given session_idReturns:

  1. {"status": "pending"} if waiting
  2. {"status": "verified", "verified_credential": {...}} if successful
  3. {"status": "error"} in case of failure or timeout

You don’t need any SDK or special code. If your AI stack supports:

  • Fetching from .well-known/mcp/tools
  • Calling POST endpoints with JSON
  • Reading JSON responses

…then you’re ready to go.

Call:

GET https://verifier.wallet-provider.com/.well-known/mcp/tools

Parse the tools: initiate_pid_requestcheck_pid_result

POST /tools/initiate_pid_request

Display qr_code_base64 to the user

POST /tools/check_pid_result { "session_id": "..." }

Handle response accordingly.

✅ KYC Automation

Triggers PID request, validates identity for onboarding

🛂 Travel Assistant

Confirms nationality/residency before suggesting visa-free options

🔞 Age Verification

Accepts only users with verified age >= 18 from the wallet

🧾 Mandate Confirmation

Verifies power of attorney or company representation via mandate VC

🧑‍⚕️ Healthcare Triage

Confirms insurance, region, or eligibility before scheduling with doctor

🛍️ Ecommerce Access

Unlocks premium services only for users with VIP or verified attributes

The tool is live, public, and agent-ready.

🌐 MCP tool endpoint:
https://verifier.wallet-provider.com/.well-known/mcp/tools

You can integrate it in:

  • Any GPT with Action tools
  • Claude (via API orchestration)
  • Custom-built agents or RAG flows
  • REST/JSON tools compliant with MCP spec
  • QR code-based OIDC4VP flow (Draft 13)
  • Secure, privacy-preserving SD-JWT verification
  • Hosted on a secure infrastructure
  • Redis-based session control
  • Extensible to other credentials (email, residence, diploma, etc.)

AI agents will soon be embedded in every service — as guides, as assistants, as validators, even as co-signers.

But trust is the missing link.

MCP and OIDC4VP give agents the language of verified identity.
They create a trusted connection between the agent’s logic and the user’s wallet — with no friction, no central control, and no guessing.

This tool is live today.
It’s EUDI-ready.
It’s AI-native.

Try it. Build with it. Shape the future.

✉️ Questions? [email protected]
🔗 Tool URL: https://verifier.wallet-provider.com/.well-known/mcp/tools

Read more

English 🇺🇸🇬🇧