本项目是一个用于访问 DexScreener API 的 MCP 服务器实现,能够提供实时 DEX 对数数据、代币信息和市场统计信息的访问权限,并且支持多条区块链。
你可以通过一键安装的方式,将本项目自动添加到 Claude Desktop:
curl -L https://raw.githubusercontent.com/opensvm/dexscreener-mcp-server/main/install.sh | bash
若你选择手动安装,可按以下步骤操作:
npm install
npm run build
npm run setup
本项目提供了多个可用工具,以下是各工具的使用示例:
get_latest_token_profiles此工具用于获取最新的代币资料,无需传入参数。
const result = await mcpClient.callTool('dexscreener', 'get_latest_token_profiles');
get_latest_boosted_tokens该工具可获取最新的 Boosted 代币,无需参数。
const result = await mcpClient.callTool('dexscreener', 'get_latest_boosted_tokens');
get_top_boosted_tokens使用此工具能获取拥有最多活跃 Boost 的代币,无需参数。
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: 'So1111111111111111111111111111111'
});
你可以使用以下命令对项目进行测试:
npm test