Self MCP Server
Supports server-side verification of Self protocol zero-knowledge proofs in Express.js backend applications.
Supports server-side verification of Self protocol zero-knowledge proofs in Hono backend applications.
Provides integration with Kotlin Multiplatform SDK (@selfxyz/kmp-sdk) for building cross-platform mobile applications with Self identity verification capabilities.
Supports server-side verification of Self protocol zero-knowledge proofs in Next.js applications, including API route integration for proof verification.
Enables integration of Self identity verification into React Native mobile applications via @selfxyz/rn-sdk, supporting passport NFC scanning and ZK proof generation.
Click on "Deploy 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., "@Self MCP Server generate code for age verification in my frontend using TypeScript"
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.
Self Protocol MCP Server
MCP server that provides AI assistants with comprehensive knowledge of the Self Protocol ecosystem — identity verification SDK, smart contracts, ZK circuits, and integration guidance.
What This Does
When connected to an AI assistant (Claude, Cursor, Windsurf, etc.), this MCP server gives it deep context about Self Protocol so it can help developers:
Integrate the Self SDK into React Native, web, and Kotlin apps
Build custom on-chain verifier contracts using
SelfVerificationRootSet up server-side proof verification with
@selfxyz/coreUnderstand the contract architecture, supported documents, and ZK circuits
Query on-chain registry state
Related MCP server: ~Alter
Installation
Claude Code / Cursor / Windsurf
Add to your .mcp.json:
{
"self-protocol": {
"command": "npx",
"args": ["@selfxyz/self-mcp"]
}
}Manual
npm install -g @selfxyz/self-mcp
self-mcpResources
URI | Description |
| Protocol architecture, verification flow, key components |
| Deployed contract addresses (mainnet + testnet), interface signatures |
| How to build custom verifiers with |
|
|
|
|
|
|
|
|
|
|
|
|
| Supported document types, countries, disclosure attributes |
| ZK circuit types, signature algorithms, proof structure |
| When to use the Self Agent ID MCP vs this one; Agent ID quick reference |
Tools
Tool | Description |
| Get deployed contract addresses for mainnet or testnet |
| Check if a merkle root is valid in an identity registry |
| Query registry state (merkle root, OFAC roots) |
Prompts
Prompt | Description |
| Step-by-step SDK integration guide (React Native, web, Kotlin, server) |
| Guide to building and deploying a custom verifier contract |
| Server-side proof verification setup (Express, Hono, Next.js) |
Environment Variables
Variable | Default | Description |
|
| Network: |
| (per network) | Custom Celo RPC URL |
Related
Self Agent ID MCP: MCP server for AI agent identity (ERC-8004 proof-of-human registration, signed requests, verification). Hosted at
https://agent-api.self.xyz/api/mcp, or run the npm stdio package@selfxyz/mcp-serverSelf Protocol — Identity verification using passport NFC + zero-knowledge proofs
Self on Celo — IdentityVerificationHub on mainnet
License
MIT
Available Tools
15 toolscheck_self_statusCheck Self protocol network status and contractsBRead-only
Check Self protocol deployment status and contract addresses
Inputs: network. Returns: result
debug_verification_errorDebug Self verification errors with solutionsBRead-only
Diagnose Self verification errors and provide solutions.
Args: error_message: The error message you're encountering context: Optional hint about the error type
Returns: Detailed explanation of the problem and how to fix it
Inputs: error_message (required), context. Returns: result
explain_sdk_setupExplain Self SDK setup requirements (IConfigStorage, UserIdType, etc.)BRead-only
Explain Self SDK backend setup requirements and configuration.
Args: topic: What to explain - 'config-storage', 'user-id-type', 'attestation-ids', or 'full-setup' ctx: FastMCP context for logging
Returns: Detailed explanation with code examples
Inputs: topic (required). Returns: result
explain_self_integrationUse this first to understand Self protocol integrationARead-only
Explain how to integrate Self for a specific use case with step-by-step guidance.
Args: use_case: The integration scenario - 'airdrop', 'age-verification', or 'humanity-check'
Returns: Detailed explanation with steps and code examples
Inputs: use_case (required). Returns: result
fetch_self_docsFetch latest Self protocol documentation from GitHubARead-only
Fetch latest Self protocol documentation from GitHub.
This tool retrieves up-to-date documentation directly from the Self protocol documentation repository, ensuring you always have the latest information.
Available topics:
quickstart: Getting started guide
backend-sdk: Backend SDK reference
frontend-sdk: Frontend QR code SDK reference
contracts: Smart contract integration
configuration: Verification configuration guide
testing: Mock passport testing
troubleshooting: Common issues and solutions
Inputs: topic (required), section. Returns: result
generate_config_idGenerate a configuration ID for Self protocol verificationBRead-only
Generate a configuration ID for Self protocol verification.
This replicates the generateConfigId function from the smart contract.
Inputs: minimum_age, excluded_countries, ofac_enabled, network. Returns: object
generate_eu_id_verificationGenerate EU ID card verification code (V2 feature)BRead-only
Generate code for EU ID card verification (Self V2 feature).
Args: component: Which part to generate - 'frontend', 'backend', or 'smart-contract' language: Programming language - 'typescript', 'javascript', or 'solidity' ctx: FastMCP context for logging
Returns: Complete code example for EU ID card verification
Inputs: component (required), language. Returns: result
generate_scope_hashGenerate scope hash for Self verification (like tools.self.xyz)ARead-only
Generate a scope hash for Self verification, replicating hashEndpointWithScope.
Args: address_or_url: Either an Ethereum address (0x...) or HTTPS URL scope_seed: Scope identifier (max 20 chars, lowercase ASCII only)
Returns: Dictionary with scope_hash, validation status, and input type
Inputs: address_or_url (required), scope_seed (required). Returns: object
generate_verification_codeGenerate ready-to-use code after understanding the integrationBRead-only
Generate ready-to-use Self verification code for different components.
Args: component: Which part to generate - 'frontend-qr', 'backend-verify', or 'smart-contract' language: Programming language - 'typescript', 'javascript', or 'solidity'
Returns: Complete, working code example with comments
Inputs: component (required), language. Returns: result
generate_verification_configGenerate complete verification configurationCRead-only
Generate a complete verification configuration based on requirements
Inputs: requirements (required). Returns: result
guide_to_toolsGuide users to appropriate tools.self.xyz featuresBRead-only
Guide users to appropriate tools.self.xyz features for write operations.
Inputs: action (required), parameters. Returns: result
list_country_codesList available country codes for Self protocol exclusionsARead-only
List available country codes for exclusion in Self protocol.
Returns ISO 3166-1 alpha-3 country codes with their names.
Inputs: search. Returns: result
list_docs_topicsList all available documentation topicsARead-only
List all available documentation topics and their descriptions.
This tool shows you all the documentation topics you can fetch with the fetch_self_docs tool.
Inputs: no named parameters. Returns: result
read_hub_configRead configuration from Self protocol Hub contractARead-only
Read configuration from Self protocol Hub contract with full decoding.
Inputs: config_id (required), network. Returns: object
search_docsSearch through Self protocol documentationBRead-only
Search through Self protocol documentation for specific terms.
This tool searches across all documentation files to find relevant information about your query.
Inputs: query (required), max_results. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools have distinct purposes, but there is some potential overlap between 'explain_sdk_setup' and 'explain_self_integration' as both provide explanatory guidance, and 'generate_verification_code' and 'generate_eu_id_verification' both generate code examples. However, their specific scopes (general vs. EU ID) and the clear descriptions help differentiate them effectively.
The naming is mostly consistent with a verb_noun pattern (e.g., 'check_self_status', 'fetch_self_docs', 'generate_scope_hash'), but there are minor deviations like 'guide_to_tools' (noun_verb) and 'read_hub_config' (verb_noun_noun). These inconsistencies are slight and do not significantly hinder readability or predictability.
With 15 tools, the count is well-scoped for a server focused on Self protocol integration, documentation, and code generation. Each tool appears to serve a specific, non-redundant purpose within this domain, making the set comprehensive without being overwhelming.
The toolset covers key aspects of Self protocol integration, including status checks, documentation access, configuration generation, and code examples. Minor gaps exist, such as the lack of tools for direct write operations (e.g., deploying contracts or updating configurations), but the 'guide_to_tools' tool helps redirect users appropriately, mitigating this issue.
Maintenance
Related MCP Connectors
One API, all things verified — control, delegation, human approval, anti-impersonation.
Add age and identity (KYC) verification to your app, look up verifications and replay webhooks.
Helps AI coding agents integrate MetaMask Embedded Wallets (Web3Auth) SDKs.
Nigerian phone, bank-account and identity-number validation for AI agents. Pay-per-call in USDC.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceDecentralized KYC identity protocol for AI agents. Proves there's a verified human behind any bot using Zero-Knowledge Proofs. No servers, no PII stored.5-
- AlicenseAqualityBmaintenanceIdentity infrastructure for the agent economy. Mint an agent ~handle in two free calls with no human account, then verify anyone and read inferred traits under the consent the person set in advance.1620 npmApache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform Web3 development operations such as toolchain diagnostics, chain registry queries and live probing, address validation, secret scanning, deployment logging, and standards searches across multiple blockchains.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to integrate stablecoin checkout, payment links, payment status checks, webhook verification, and webhook-based access logic into applications.MIT