DexScreener集成
STDIO跨链访问DEX交易对数据的MCP服务器
跨链访问DEX交易对数据的MCP服务器
An MCP server implementation for accessing the DexScreener API, providing real-time access to DEX pair data, token information, and market statistics across multiple blockchains.
One-line install (automatically adds to Claude Desktop):
curl -L https://raw.githubusercontent.com/opensvm/dexscreener-mcp-server/main/install.sh | bash
Manual installation:
npm install npm run build npm run setup
npm test
get_latest_token_profiles
const result = await mcpClient.callTool('dexscreener', 'get_latest_token_profiles');
get_latest_boosted_tokens
const result = await mcpClient.callTool('dexscreener', 'get_latest_boosted_tokens');
get_top_boosted_tokens
const result = await mcpClient.callTool('dexscreener', 'get_top_boosted_tokens');
get_token_orders
const result = await mcpClient.callTool('dexscreener', 'get_token_orders', { chainId: 'solana', tokenAddress: 'So11111111111111111111111111111111111111112' });
get_pairs_by_chain_and_address
const result = await mcpClient.callTool('dexscreener', 'get_pairs_by_chain_and_address', { chainId: 'solana', pairId: 'HxFLKUAmAMLz1jtT3hbvCMELwH5H9tpM2QugP8sKyfhc' });
get_pairs_by_token_addresses
const result = await mcpClient.callTool('dexscreener', 'get_pairs_by_token_addresses', { tokenAddresses: 'So11111111111111111111111111111111111111112' });
search_pairs
const result = await mcpClient.callTool('dexscreener', 'search_pairs', { query: 'SOL' });
The server implements rate limiting to comply with DexScreener's API limits:
The server handles various error scenarios:
Errors are returned in a standardized format with appropriate error codes and messages.
For detailed API documentation, see docs/api-reference.md.
.
├── src/
│ ├── types/ # TypeScript interfaces and types
│ ├── services/ # API service implementations
│ ├── tests/ # Integration tests
│ └── index.ts # Main server implementation
├── scripts/ # Setup and utility scripts
├── docs/ # Documentation
└── README.md # This file
src/types/
src/services/
src/index.ts
MIT