Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
explain_self_integration

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

generate_verification_code

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

debug_verification_error

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

check_self_status

Check Self protocol deployment status and contract addresses

generate_verification_config

Generate a complete verification configuration based on requirements

explain_sdk_setup

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

generate_eu_id_verification

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

fetch_self_docs

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

list_docs_topics

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.

search_docs

Search through Self protocol documentation for specific terms.

This tool searches across all documentation files to find relevant information about your query.

generate_scope_hash

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

generate_config_id

Generate a configuration ID for Self protocol verification.

This replicates the generateConfigId function from the smart contract.

read_hub_config

Read configuration from Self protocol Hub contract with full decoding.

guide_to_tools

Guide users to appropriate tools.self.xyz features for write operations.

list_country_codes

List available country codes for exclusion in Self protocol.

Returns ISO 3166-1 alpha-3 country codes with their names.

Prompts

Interactive templates invoked by user choice

NameDescription
design-verification-flowHelp design a custom Self verification flow
troubleshoot-integrationInteractive troubleshooting for Self integration issues

Resources

Contextual data attached and managed by the client

NameDescription
get_contract_addressesGet deployed Self protocol contract addresses
get_best_practicesGet Self protocol integration best practices

Latest Blog Posts

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/selfxyz/self-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server