Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_user_data

Retrieve user data for specific protocols from crypto analytics platforms, enabling analysis of metrics like active users without managing API keys.

Instructions

GET /api/userData/{type}/{protocolId}

Get user data by type and protocol.

Parameters:
    type: data type (e.g., 'activeUsers')
    protocol_id: protocol ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYes
protocol_idYes

Implementation Reference

  • The main handler function for the 'get_user_data' MCP tool. It is registered via the @mcp.tool() decorator and implements the logic to fetch user data from the DefiLlama API endpoint /api/userData/{type}/{protocol_id} using the shared make_request helper.
    @mcp.tool()
    async def get_user_data(type: str, protocol_id: int) -> str:
        """GET /api/userData/{type}/{protocolId}
        
        Get user data by type and protocol.
        
        Parameters:
            type: data type (e.g., 'activeUsers')
            protocol_id: protocol ID
        """
        result = await make_request('GET', f'/api/userData/{type}/{protocol_id}')
        return str(result)

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/0xReisearch/crypto-mcp-beta'

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