Skip to main content
Glama

MPC Tally API Server

import { GraphQLClient } from 'graphql-request'; import { GET_ADDRESS_SAFES_QUERY } from './addresses.queries.js'; import { AddressSafesInput, AddressSafesResponse } from './addresses.types.js'; export async function getAddressSafes( client: GraphQLClient, input: AddressSafesInput ): Promise<AddressSafesResponse> { if (!input.address) { throw new Error('Address is required'); } try { const accountId = `eip155:1:${input.address.toLowerCase()}`; const response = await client.request<{ account: Record<string, any> }>(GET_ADDRESS_SAFES_QUERY, { accountId }); if (!response || !response.account) { throw new Error('Failed to fetch address safes'); } if (response.account.safes === null) { response.account.safes = []; } return response as AddressSafesResponse; } catch (error) { throw new Error(`Failed to fetch address safes: ${(error as Error).message}`); } }

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/crazyrabbitLTC/mpc-tally-api-server'

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