Skip to main content
Glama
openSVM

DexScreener MCP Server

by openSVM

get_token_orders

Retrieve order data for a specific cryptocurrency token to analyze trading activity and market behavior on decentralized exchanges.

Instructions

Check orders paid for a specific token

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainIdYesChain ID (e.g., "solana")
tokenAddressYesToken address

Implementation Reference

  • The core handler function in DexScreenerService that fetches token orders from the DexScreener API endpoint /orders/v1/{chainId}/{tokenAddress} with rate limiting.
    async getTokenOrders({ chainId, tokenAddress }: OrderParams): Promise<TokenOrder[]> {
      return this.fetch<TokenOrder[]>(
        `/orders/v1/${chainId}/${tokenAddress}`,
        tokenRateLimiter
      );
    }
  • Input schema and description for the get_token_orders tool as declared in the MCP server capabilities.
    get_token_orders: {
      description: 'Check orders paid for a specific token',
      inputSchema: {
        type: 'object',
        properties: {
          chainId: {
            type: 'string',
            description: 'Chain ID (e.g., "solana")',
          },
          tokenAddress: {
            type: 'string',
            description: 'Token address',
          },
        },
        required: ['chainId', 'tokenAddress'],
      },
    },
  • src/index.ts:319-323 (registration)
    Registration and dispatching logic in the MCP callTool request handler that routes get_token_orders calls to the DexScreenerService method.
    case 'get_token_orders': {
      const args = request.params.arguments as { chainId: string; tokenAddress: string };
      result = await this.dexService.getTokenOrders(args);
      break;
    }

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/openSVM/dexscreener-mcp-server'

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