MCP server that fetches and analyzes trending cryptocurrency pairs from DexScreener on BSC and Solana chains
Single tool with good naming and schema structure, but significant documentation and error handling gaps. The tool name 'get_trending_pairs' follows verb_noun convention and clearly conveys its action. Input schema is well-defined with proper types, enums, and constraints (min/max on limit). However, the tool lacks comprehensive error handling guidance, and the prompt feature is minimally integrated. The implementation includes a commented-out sort operation and uses unsafe VM execution (vm.runInNewContext) to parse page data, which is a security concern not reflected in the tool documentation. Output schema is documented with typed fields, but the server provides no guidance on failure modes or recovery paths for the agent.
Get current trending pairs on BSC or Solana from DexScreener (top N by 24h volume)
No error handling guidance for agents. The tool's description states what it does but not what can fail or how the agent should recover. The fetchDexScreenerData() function throws generic errors like '__SERVER_DATA not found in page' or 'HTTP error', but the tool description provides no recovery path.
Unsafe code execution via vm.runInNewContext() to parse HTML data. The implementation passes untrusted page content through a Node VM without proper sanitization. This is a security risk that should be documented and mitigated (use a proper HTML parser instead).
Tool description under-specifies output structure. While an outputSchema is defined, the description does not explain what each field represents (e.g., 'priceUsd' is a string, not a number; 'volume24h' units are USD). LLMs cannot reliably interpret ambiguous field meanings.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2025-06-18+ | v2 |
Prompt feature is present but minimal. The 'analyze_trending_token' prompt accepts a 'symbol' parameter but does not integrate with the tool's output. The prompt does not reference actual trending pair data from get_trending_pairs and instead asks the LLM to analyze a token by symbol alone, duplicating work.
Commented-out sort operation in tool implementation suggests incomplete feature. The line '//const sorted = allPairs.sort((a, b) => Number(b.volume24h) - Number(a.volume24h));' is commented out, meaning pairs are returned unsorted despite the description claiming 'top N by 24h volume'. This is a correctness bug.