Skip to main content
Glama
jun85664396

Pump Fun Data MCP Server

by jun85664396

get_coin_info

Retrieve detailed coin information by providing its mint ID, enabling users to access essential data for analysis and decision-making.

Instructions

Get information about a coin

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mintIdYesThe mint id of the coin(coin address)

Implementation Reference

  • The switch case within handleToolCall that executes the get_coin_info tool. It constructs the API URL using the mintId from arguments and fetches the coin information from the pump.fun API, returning the JSON data.
    case "get_coin_info": url = PUMP_FUN_API_URL+'/coins/'+args.mintId; return { content: [{ type: "text", text: JSON.stringify((await fetchPumpFunData(url, {}))) }], isError: false, };
  • The input schema definition for the get_coin_info tool, specifying the required 'mintId' parameter.
    inputSchema: { type: "object", properties: { mintId: { type: "string", description: "The mint id of the coin(coin address)" }, }, required: ["mintId"], },
  • index.ts:43-53 (registration)
    The tool registration in the TOOLS array, defining name, description, and input schema for get_coin_info.
    { name: "get_coin_info", description: "Get information about a coin", inputSchema: { type: "object", properties: { mintId: { type: "string", description: "The mint id of the coin(coin address)" }, }, required: ["mintId"], }, }
  • index.ts:148-150 (registration)
    Registers the ListToolsRequestHandler which returns the TOOLS list including get_coin_info.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));
  • index.ts:152-154 (registration)
    Registers the CallToolRequestHandler which dispatches to handleToolCall based on tool name.
    server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name, request.params.arguments ?? {}) );

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/jun85664396/pump-fun-data-mcp'

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