KLAIM MCP server
Enables identity verification payments to be settled on the Algorand Testnet using USDC, with confirmed settlement recorded via a real transaction ID and explorer URL.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KLAIM MCP serverVerify that did:identipi:demo-user-001 is over 18"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
KLAIM
Pay-Per-Use Human Verification API for AI Agents
Verify users without exposing their documents.
KLAIM is a privacy-first verification infrastructure that allows applications and AI agents to verify claims about a user β such as Age > 18 β without receiving the user's underlying identity documents or raw PII.
π What is KLAIM?
Modern applications increasingly need to verify that a user is eligible for a service.
For example:
Is this user over 18?
Is this user a resident of a particular country?
Does this user possess a valid credential?
Has this user completed a required verification?
Is this a verified human?
The traditional approach is to collect the actual identity document.
That creates a major privacy problem.
An application may only need to know:
Age > 18 = TRUEbut instead receives:
Name
Date of Birth
Address
Aadhaar/PAN information
Document number
Issuer information
Full documentKLAIM changes this model.
Instead of applications receiving documents, KLAIM exposes a pay-per-use human verification API.
The application or AI agent asks:
"Is this person over 18?"KLAIM performs the verification internally and returns:
{
"verified": true,
"claim": "AGE_OVER_18"
}The underlying credential and personal information remain private.
KLAIM sells verification, not identity data.
Related MCP server: AgentStamp
π Verified Algorand Testnet Transactions
KLAIM uses the x402 payment protocol to enable pay-per-use human verification.
For the MVP, payments are settled in USDC on Algorand Testnet. The following transactions are real on-chain transfers from the payer wallet β provider wallet, each representing a 0.01 USDC verification payment.
These are not simulated transaction IDs. They are real Algorand Testnet transactions and can be independently verified using the AlgoKit Lora explorer.
Live x402 Payment Evidence
# | Amount | Network | Flow | Transaction |
1 | 0.01 USDC | Algorand Testnet | Payer β Provider | |
2 | 0.01 USDC | Algorand Testnet | Payer β Provider | |
3 | 0.01 USDC | Algorand Testnet | Payer β Provider | |
4 | 0.01 USDC | Algorand Testnet | Payer β Provider |
What This Demonstrates
The payment layer is designed around the following flow:
AI Agent
β
β MCP tool call
βΌ
KLAIM Verification API
β
β No payment
βΌ
HTTP 402 Payment Required
β
β x402 payment requirements
βΌ
AI Agent / Payer Wallet
β
β Sign USDC payment
βΌ
GoPlausible Facilitator
β
β Verify + settle
βΌ
Algorand Testnet
β
β Real USDC transaction
βΌ
Provider Wallet
β
β Settlement confirmed
βΌ
KLAIM Verification
β
βΌ
Verified Claim
---
# π― Problem
Digital onboarding and AI-agent workflows have three major problems.
### 1. Over-collection of personal information
Applications collect complete identity documents even when they only need one attribute.
### 2. AI agents cannot easily perform trusted identity verification
AI agents can interact with APIs and tools, but identity verification still requires manual document workflows.
### 3. Verification APIs are not naturally machine-payable
Traditional verification providers usually depend on subscriptions, accounts, billing systems, or manual payment workflows.
KLAIM combines:
* **MCP** for AI-agent interoperability
* **x402** for machine-to-machine payments
* **Algorand** for on-chain settlement
* **DID / VC** for identity
* **Zero-Knowledge Proofs** for privacy-preserving verification
into a single verification infrastructure layer.
---
# π‘ The Core Idea
KLAIM separates identity from verification.
### Traditional Verification
```text
User
β
β Upload document
βΌ
Application
β
βββ Name
βββ DOB
βββ Address
βββ ID Number
βββ Full DocumentKLAIM Archetecture
User
β
β Credential + Consent
βΌ
KLAIM
β
β Verify privately
β
β ZK Proof
βΌ
Application / AI Agent
β
βββ "AGE > 18 = TRUE"The application receives the answer, not the document.
ποΈ Architecture
flowchart TD
H[Human User]
DL[DigiLocker / Credential Issuer]
DID[DID + Verifiable Credential]
H -->|Consent| DL
DL -->|Credential| DID
A[AI Agent<br/>Claude / GPT / Custom Agent]
MCP[KLAIM MCP Server]
X402[x402 Payment Middleware]
FAC[GoPlausible Facilitator]
ALGO[Algorand Testnet]
API[Verification API]
PA[Provider Agent<br/>Strands]
ZK[ZK Proof Engine<br/>Midnight-ready]
RESULT[Verified Claim<br/>No Raw PII]
A -->|MCP Tool Call| MCP
MCP --> API
API --> X402
X402 -->|402 Payment Required| A
A -->|USDC Payment| X402
X402 --> FAC
FAC --> ALGO
ALGO -->|Settlement TX| X402
X402 --> API
API --> PA
PA -->|Check DID| DID
PA -->|Check Credential| DID
PA -->|Check Claim| DID
PA --> ZK
ZK --> RESULT
RESULT --> API
API --> MCP
MCP --> Aπ Complete Verification Flow
1. Human onboarding
The user connects their identity credential source.
For the MVP, DigiLocker is the intended credential source.
Human
β
βΌ
DigiLocker
β
βΌ
Credential
β
βΌ
KLAIM DIDKLAIM stores credential references and derived claims rather than exposing complete identity documents to verification consumers.
2. AI Agent connects through MCP
AI agents connect to KLAIM through the Model Context Protocol (MCP).
Claude / GPT / Custom Agent
β
β MCP
βΌ
KLAIM MCP ServerThe MCP server exposes verification tools such as:
verify_human_ageAn agent can therefore request:
Verify whether DID xyz is over 18.3. Agent authentication
Every verifier receives a unique KLAIM agent credential.
Example:
Agent ID:
agent_xxxxxxxxx
Agent Key:
klm_xxxxxxxxxxxxxxxxxThe key is:
generated by KLAIM
displayed once
hashed before storage
revocable
rotatable
4. Verification Request
The MCP tool calls the protected verification API.
POST /api/v1/verify/ageExample:
{
"did": "did:klaim:demo-user-001"
}5. x402 Payment Boundary
The verification API is protected by x402.
If no valid payment is attached:
HTTP/1.1 402 Payment RequiredThe x402 layer provides the payment requirements required by the client.
The flow becomes:
AI Agent
β
β POST /verify/age
βΌ
KLAIM
β
β HTTP 402
βΌ
AI Agent
β
β Prepare payment
βΌ
x4026. USDC Payment
The verifier agent pays for the verification using USDC on Algorand Testnet.
AI Agent
β
β USDC
βΌ
x402
β
βΌ
GoPlausible Facilitator
β
βΌ
Algorand TestnetThe payment is settled on-chain.
A successful verification contains the settlement transaction ID.
Example:
{
"payment": {
"txId": "REAL_ALGORAND_TX_ID",
"explorerUrl": "https://lora.algokit.io/testnet/transaction/..."
}
}7. Provider Agent
Only after successful payment settlement does the verification pipeline execute.
The KLAIM Provider Agent is designed around the Strands Agents SDK, with a deterministic fallback for the MVP.
The verification pipeline is:
check_did
β
check_credential
β
check_claim
β
generate_zk_proof
β
verify_zk_proofCritical invariant
NO PAYMENT
β
NO VERIFICATIONThe verification business logic does not execute before the payment boundary succeeds.
8. Credential Verification
The Provider Agent checks whether the requested credential exists for the user's DID.
For example:
Requested:
AGE > 18
Available:
DigiLocker Credential
β
βββ DOB availableThe required claim is derived internally.
The actual DOB is never returned to the verifier.
9. Zero-Knowledge Verification
KLAIM follows a simple principle:
Prove the claim without revealing the underlying data.
Instead of exposing:
Date of Birth:
12/03/2002KLAIM aims to produce a proof of:
AGE > 18The verifier only needs:
verified = trueThe architecture contains a ZK abstraction layer designed to connect with a Midnight prover.
Current MVP architecture:
ZK Service
β
βββ Local / deterministic engine
β
βββ Midnight prover integration pointThe system explicitly identifies the proof engine rather than falsely representing a local simulation as production cryptographic ZK.
π Privacy Model
KLAIM follows a minimum-disclosure architecture.
Data that remains private
Name
Date of Birth
Address
Aadhaar
PAN
Document Number
Raw Identity DocumentData returned
Verification Result
Claim
Proof Descriptor
Payment Receipt
Algorand Transaction IDExample:
{
"verified": true,
"claim": "AGE_OVER_18",
"proof": {
"type": "zk",
"notDisclosed": [
"date_of_birth",
"name",
"address",
"document"
]
}
}π€ AI Agent Architecture
KLAIM is designed specifically for machine-to-machine verification.
sequenceDiagram
participant C as Claude / AI Agent
participant M as KLAIM MCP
participant API as Verification API
participant X as x402
participant F as GoPlausible
participant A as Algorand
participant P as Provider Agent
participant Z as ZK Engine
C->>M: verify_human_age(DID)
M->>API: POST /verify/age
API->>X: Check payment
X-->>C: HTTP 402 + requirements
C->>X: Signed USDC payment
X->>F: Verify + settle
F->>A: Algorand Testnet settlement
A-->>F: Transaction ID
F-->>X: Settlement successful
X->>API: Payment verified
API->>P: Start verification
P->>P: Check DID
P->>P: Check credential
P->>P: Evaluate claim
P->>Z: Generate / verify proof
Z-->>P: Proof
P-->>API: Verified claim
API-->>M: Result + TX ID
M-->>C: Verified claimπ§© Why MCP?
Without MCP, every AI agent would require a custom KLAIM integration.
Claude β Custom SDK
GPT β Custom SDK
Agent X β Custom SDK
Agent Y β Custom SDKWith MCP:
Claude
GPT
Custom Agent
β
βΌ
MCP
β
βΌ
KLAIMKLAIM becomes a reusable verification capability that AI agents can discover and invoke.
π° Why x402?
x402 enables HTTP-native machine payments.
The agent does not need:
subscriptions
manual checkout
credit-card forms
human billing intervention
Instead:
Request
β
402
β
Pay
β
Retry
β
VerificationThis creates a natural model for pay-per-verification APIs.
π Why Algorand?
Algorand is used as the settlement network for the MVP because it provides:
fast settlement
low transaction costs
USDC support
accessible testnet infrastructure
independently verifiable transactions
The payment receipt can be inspected on Algorand Testnet.
β USP
KLAIM is not another identity dashboard.
KLAIM is a verification infrastructure layer for AI agents.
Traditional identity verification
Application
β
βΌ
Identity Provider
β
βΌ
Upload Document
β
βΌ
PII Processing
β
βΌ
VerificationKLAIM
AI Agent
β
βΌ
MCP
β
βΌ
x402 Payment
β
βΌ
KLAIM
β
βββ DID / Credential
βββ Provider Agent
βββ ZK Proof
β
βΌ
Boolean VerificationThe key difference
KLAIM sells verification, not identity data.
π₯ Product Roles
Human
The human controls their identity.
Capabilities:
Create / manage DID
Connect credentials
View credentials
Delete credentials
Manage verification permissions
View verification history
The human does not pay for verification.
Verifier
The verifier represents an application or AI agent.
Capabilities:
Create AI agents
Generate MCP credentials
Rotate / revoke agent keys
Connect MCP to Claude
Request verification
Monitor x402 payments
View transaction history
View verification activity
π Agent Authentication
KLAIM generates unique credentials for verifier agents.
Example:
Agent ID
agent_xxxxxxxxx
Agent Key
klm_xxxxxxxxxxxxxxxxxThe raw key is shown once.
KLAIM stores a SHA-256 hash of the key.
Agent Key
β
βΌ
SHA-256
β
βΌ
Stored HashποΈ Project Structure
KLAIM/
β
βββ src/
β βββ routes/
β β βββ api/
β β β βββ public/
β β β β βββ mcp.ts
β β β β
β β β βββ v1/
β β β βββ verify/
β β β β βββ age.ts
β β β βββ agents.ts
β β β βββ credentials.ts
β β β βββ digilocker.ts
β β β βββ integrations.ts
β β β βββ transactions.ts
β β β
β β βββ human.*
β β βββ verifier.*
β β βββ index.tsx
β β
β βββ lib/
β β βββ klaim/
β β βββ server/
β β β βββ mcp.server.ts
β β β βββ x402.server.ts
β β β βββ provider-agent.server.ts
β β β βββ zkp.server.ts
β β β βββ digilocker.server.ts
β β β βββ store.server.ts
β β β βββ env.server.ts
β β β
β β βββ api.ts
β β βββ services.ts
β β βββ types.ts
β β βββ mock-data.ts
β β
β βββ components/
β βββ app/
β βββ ui/
β βββ klaim-landing.tsx
β
βββ scripts/
β βββ provision-agent.ts
β βββ test-x402.ts
β
βββ tests/
β βββ mcp-x402-flow.test.ts
β
βββ .env.example
βββ package.json
βββ README.mdπ οΈ Technology Stack
Layer | Technology |
Frontend | React |
Framework | TanStack Start |
Routing | TanStack Router |
Styling | Tailwind CSS |
UI | shadcn/ui / Radix |
Backend | Nitro / TanStack server routes |
Language | TypeScript |
Runtime | Bun / Node |
AI Agent | Strands Agents SDK |
AI Integration | MCP |
Payment | x402 |
Facilitator | GoPlausible |
Blockchain | Algorand Testnet |
Payment Asset | USDC |
Identity | DID / VC |
Credential Source | DigiLocker |
ZK Layer | Midnight-ready abstraction |
State | Repository-based ephemeral store |
π§ͺ Running Locally
Requirements
Install:
Node.js or Bun
Git
Claude Desktop (optional for MCP testing)
Clone the repository:
git clone <YOUR_GITHUB_REPOSITORY_URL>
cd KLAIMInstall dependencies:
npm installor:
bun installCreate your environment file:
cp .env.example .envStart the development server:
npm run devThe application will be available at:
http://localhost:8080π Testing MCP
The MCP endpoint is:
http://localhost:8080/api/public/mcpThe MCP server supports:
initialize
ping
tools/list
tools/callThe main verification tool is:
verify_human_ageπ€ Connect Claude Desktop
After provisioning a KLAIM verifier agent, configure Claude Desktop with:
{
"mcpServers": {
"klaim": {
"type": "http",
"url": "http://localhost:8080/api/public/mcp",
"headers": {
"X-KLAIM-Agent-Id": "YOUR_AGENT_ID",
"Authorization": "Bearer YOUR_AGENT_KEY"
}
}
}
}Restart Claude Desktop.
Then ask:
Use KLAIM to verify whether did:klaim:demo-user-001 is over 18.Claude should discover and invoke:
verify_human_ageπ³ Testing x402
Configure the required Algorand Testnet wallets.
The complete flow is:
POST /api/v1/verify/age
β
βΌ
HTTP 402
β
βΌ
Payment Requirements
β
βΌ
USDC Payment
β
βΌ
GoPlausible
β
βΌ
Algorand Testnet
β
βΌ
Settlement TX
β
βΌ
Provider Agent
β
βΌ
Verification
β
βΌ
HTTP 200Run the independent x402 test client:
npm run test:x402A successful result should contain a real Algorand Testnet transaction ID.
π Algorand Testnet Transaction
A successful KLAIM x402 transaction can be independently verified using Lora.
Example
Replace the placeholder below with an actual transaction generated by the project:
https://lora.algokit.io/testnet/transaction/YOUR_REAL_TX_IDImportant: The transaction link above must be replaced with a real KLAIM transaction before final submission.
π§ͺ Complete Demo Flow
Run the system in the following order.
Terminal 1 β Start KLAIM
npm run devTerminal 2 β Provision an agent
npx tsx scripts/provision-agent.tsStore the generated:
KLAIM_AGENT_ID
KLAIM_AGENT_KEYin the appropriate environment/configuration.
Terminal 3 β Execute x402 test
npm run test:x402Then connect Claude Desktop to:
/api/public/mcpAsk Claude:
Verify whether the user is over 18 using KLAIM.Expected architecture:
Claude
β
MCP
β
KLAIM
β
HTTP 402
β
USDC Payment
β
GoPlausible
β
Algorand Testnet
β
Provider Agent
β
Credential Verification
β
ZK Proof
β
Verified Claim
β
Claudeπ Security & Privacy
KLAIM is designed around data minimization.
KLAIM does not expose:
β Aadhaar number
β PAN number
β Date of Birth
β Address
β Raw identity document
β Private wallet keys
β Agent private credentialsKLAIM exposes:
β Verification result
β Claim
β Proof metadata
β Payment receipt
β Algorand transaction IDβ οΈ MVP Status
KLAIM is currently an MVP / hackathon implementation.
The architecture intentionally separates production integrations behind service interfaces.
Implemented
Human / Verifier role separation
DID-oriented identity model
Credential management
MCP server
MCP authentication
MCP tool discovery
Verification API
x402 payment boundary
Algorand Testnet settlement flow
GoPlausible facilitator integration
Provider Agent architecture
Strands integration point
ZK abstraction
DigiLocker integration interface
Agent provisioning
Agent key rotation / revocation
Verification history
Transaction history
Integration-dependent
DigiLocker production credentials
β
Official DigiLocker OAuth / issuer integration
Midnight prover
β
MIDNIGHT_PROVER_URL
Strands / Bedrock
β
AWS credentials + model configurationThese integrations can be enabled without changing the core MCP and x402 architecture.
π Roadmap
Phase 1 β MVP
β MCP
β x402
β Algorand Testnet
β USDC settlement
β Agent authentication
β Credential abstraction
β Provider Agent
β Verification API
β ZK abstractionPhase 2 β Production Identity
DigiLocker production integration
β
Verifiable Credentials
β
DID interoperabilityPhase 3 β Production ZK
Midnight prover
β
Cryptographically verifiable claimsPhase 4 β Agent Economy
KLAIM can become a general-purpose verification marketplace for autonomous agents.
Potential APIs:
verify_age
verify_residency
verify_credential
verify_student_status
verify_business_registration
verify_humanEach verification becomes a machine-payable API.
π Use Cases
Age-restricted applications
AI Agent
β
KLAIM
β
AGE > 18No DOB is exposed.
Financial onboarding
AI Agent
β
KLAIM
β
Credential ValidThe application does not need the complete identity document.
Education
AI Agent
β
KLAIM
β
Student Credential = TRUEHuman-only services
AI Agent
β
KLAIM
β
Human Verificationπ Why KLAIM?
Most identity systems ask:
"Who is this person?"
KLAIM asks:
"Can I verify the one thing I need to know without seeing everything else?"
KLAIM combines:
Privacy-Preserving Verification
+
AI Agent Interoperability
+
Pay-Per-Use Payments
+
Zero-Knowledge Architecture
+
On-Chain Settlementinto a single verification API.
π License
MIT
KLAIM
Human Verification Infrastructure for the Agent Economy
Don't send the document.
Prove the claim.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to autonomously request services from other specialized agents and compensate them via x402 micropayments. Demonstrates a Machine-to-Machine economy using A2A protocol for agent communication, MCP for context management, and blockchain-based payments on Base network.331MIT
- AlicenseAqualityDmaintenanceTrust intelligence MCP server for AI agents. 19 tools for identity stamps, reputation scoring (0-100), agent registry, forensic audit trails, ERC-8004 bridge, and A2A passports via x402 USDC micropayments.191Apache 2.0
- AlicenseAqualityCmaintenanceZero-knowledge proof generation MCP server. AI agents can prove identity claims (Coinbase KYC, Country, Google OIDC, Google Workspace, Microsoft 365) without revealing personal data. Runs in AWS Nitro Enclave TEE with x402 USDC payments.6MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to discover, call, and pay for existing HTTP APIs over MCP with x402 paywalls, non-custodial settlement, and no code changes to the backend.
Related MCP Connectors
Agent x402 Paywall MCP β Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Agent Commerce Protocol MCP β bridges Stripe ACP + Google AP2 + Coinbase x402 for agent payments
Evidence-backed x402 web verification for AI agents, with auditable decisions for every condition.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Omicron6/Klaim'
If you have feedback or need assistance with the MCP directory API, please join our Discord server