Skip to main content
Glama
DexScreener MCP Server

DexScreener MCP Server

by openSVM

DexScreener MCP 服务器

用于访问 DexScreener API 的 MCP 服务器实现,提供跨多个区块链的 DEX 对数据、代币信息和市场统计数据的实时访问。

单行安装(自动添加到 Claude Desktop):

curl -L https://raw.githubusercontent.com/opensvm/dexscreener-mcp-server/main/install.sh | bash

特征

  • 速率受限的 API 访问(遵守 DexScreener 的速率限制)

  • 全面的错误处理

  • 类型安全接口

  • 支持所有 DexScreener API 端点

  • 集成测试

Related MCP server: dex-kline-mcp

安装

手动安装:

npm install
npm run build
npm run setup

测试

npm test

用法

可用工具

  1. get_latest_token_profiles

    • 获取最新的代币配置文件

    • 无需参数 GXP4

  2. get_latest_boosted_tokens

    • 获取最新提升的代币

    • 无需参数 GXP5

  3. get_top_boosted_tokens

    • 获取最活跃提升的代币

    • 无需参数 GXP6

  4. get_token_orders

    • 检查为特定代币 GXP7 支付的订单

  5. get_pairs_by_chain_and_address

    • 通过链和配对地址获取一个或多个配对 GXP8

  6. get_pairs_by_token_addresses

    • 通过代币地址获取一个或多个交易对(最多 30 个)GXP9

  7. search_pairs

    • 搜索与查询 GXP10 匹配的对

速率限制

服务器实施速率限制以符合 DexScreener 的 API 限制:

  • 令牌配置文件/Boost 端点:每分钟 60 个请求

  • DEX/Pairs 端点:每分钟 300 个请求

错误处理

服务器处理各种错误情况:

  • 超出速率限制

  • 参数无效

  • 网络错误

  • API 错误

错误以标准格式返回,并带有适当的错误代码和消息。

API 文档

有关详细的 API 文档,请参阅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

添加新功能

  1. 在src/types/中定义类型

  2. 在src/services/中实现服务方法

  3. 在src/index.ts中添加工具处理程序

  4. 更新文档

  5. 添加测试

执照

麻省理工学院

Available Tools

7 tools
get_latest_boosted_tokensC

Get the latest boosted tokens

Inputs: no named parameters.

get_latest_token_profilesC

Get the latest token profiles

Inputs: no named parameters.

get_pairs_by_chain_and_addressC

Get one or multiple pairs by chain and pair address

Inputs: chainId (required), pairId (required).

get_pairs_by_token_addressesC

Get one or multiple pairs by token address (max 30)

Inputs: tokenAddresses (required).

get_token_ordersC

Check orders paid for a specific token

Inputs: chainId (required), tokenAddress (required).

get_top_boosted_tokensB

Get tokens with most active boosts

Inputs: no named parameters.

search_pairsC

Search for pairs matching query

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools have distinct purposes, with clear separation between boosted tokens, token profiles, pairs retrieval, token orders, and pair search. However, get_latest_boosted_tokens and get_top_boosted_tokens could potentially cause some confusion regarding whether they serve overlapping or complementary functions, as both relate to boosted tokens with slightly different focuses.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores, using descriptive and predictable naming conventions. The structure is uniform across all seven tools, making it easy for agents to understand and predict tool purposes based on their names.

    Tool Count5/5

    With 7 tools, the server is well-scoped for its purpose of providing DexScreener data access. Each tool appears to serve a specific and necessary function without redundancy, covering key operations like retrieving tokens, pairs, orders, and searches in a focused manner.

    Completeness4/5

    The tool set covers essential operations for accessing DexScreener data, including token and pair retrieval, orders, and search. A minor gap exists in the lack of update or management tools, but this is reasonable for a read-only data access server, and agents can work effectively with the provided query-focused tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers