DexScreener Pairs

搜索与获取

by catwhisperingninja

在 DexScreener 上发现各支持链的加密交易对,可按链和地址获取最新详情,或列出某代币的全部交易对,加速价格、流动性与机会研究。

什么是 DexScreener Pairs

在 DexScreener 上发现各支持链的加密交易对,可按链和地址获取最新详情,或列出某代币的全部交易对,加速价格、流动性与机会研究。

核心功能 (7 个工具)

get_latest_token_profiles

Get the latest token profiles

get_latest_boosted_tokens

Get the latest boosted tokens

get_top_boosted_tokens

Get tokens with most active boosts

get_token_orders

Check orders paid for a specific token

get_pairs_by_chain_and_address

Get one or multiple pairs by chain and pair address

get_pairs_by_token_addresses

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

search_pairs

Search for pairs matching query

README

DexScreener MCP Server

smithery badge

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):

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

Features

  • Rate-limited API access (respects DexScreener's rate limits)
  • Comprehensive error handling
  • Type-safe interfaces
  • Support for all DexScreener API endpoints
  • Integration tests

Installation

Manual installation:

bash
npm install
npm run build
npm run setup

Runtime configuration

Provide SMITHERY_API_KEY at runtime. Do not bake it into the image.

Docker Compose (recommended):

  1. Using .env file:
bash
echo "SMITHERY_API_KEY=your_api_key" > .env

Ensure your service has:

yaml
services:
  dexscreener-mcp:
    env_file:
      - .env
    environment:
      NODE_ENV: production
  1. Or via inline environment variables:
yaml
services:
  dexscreener-mcp:
    environment:
      SMITHERY_API_KEY: ${SMITHERY_API_KEY}
      NODE_ENV: production

Kubernetes:

  • Store the key in a Secret:
bash
kubectl create secret generic smithery-api --from-literal=SMITHERY_API_KEY=your_api_key
  • Reference it in your Deployment:
yaml
env:
  - name: SMITHERY_API_KEY
    valueFrom:
      secretKeyRef:
        name: smithery-api
        key: SMITHERY_API_KEY

Note: If a default is required, set it in the orchestrator (Compose/Kubernetes), not in the Dockerfile.

Testing

bash
npm test

Usage

Available Tools

  1. get_latest_token_profiles

    • Get the latest token profiles
    • No parameters required
    typescript
    const result = await mcpClient.callTool(
    	"dexscreener",
    	"get_latest_token_profiles"
    );
    
  2. get_latest_boosted_tokens

    • Get the latest boosted tokens
    • No parameters required
    typescript
    const result = await mcpClient.callTool(
    	"dexscreener",
    	"get_latest_boosted_tokens"
    );
    
  3. get_top_boosted_tokens

    • Get tokens with most active boosts
    • No parameters required
    typescript
    const result = await mcpClient.callTool(
    	"dexscreener",
    	"get_top_boosted_tokens"
    );
    
  4. get_token_orders

    • Check orders paid for a specific token
    typescript
    const result = await mcpClient.callTool("dexscreener", "get_token_orders", {
    	chainId: "solana",
    	tokenAddress: "So11111111111111111111111111111111111111112",
    });
    
  5. get_pairs_by_chain_and_address

    • Get one or multiple pairs by chain and pair address
    typescript
    const result = await mcpClient.callTool(
    	"dexscreener",
    	"get_pairs_by_chain_and_address",
    	{
    		chainId: "solana",
    		pairId: "HxFLKUAmAMLz1jtT3hbvCMELwH5H9tpM2QugP8sKyfhc",
    	}
    );
    
  6. get_pairs_by_token_addresses

    • Get one or multiple pairs by token address (max 30)
    typescript
    const result = await mcpClient.callTool(
    	"dexscreener",
    	"get_pairs_by_token_addresses",
    	{
    		tokenAddresses: "So11111111111111111111111111111111111111112",
    	}
    );
    
  7. search_pairs

    • Search for pairs matching query
    typescript
    const result = await mcpClient.callTool("dexscreener", "search_pairs", {
    	query: "SOL",
    });
    

Rate Limits

The server implements rate limiting to comply with DexScreener's API limits:

  • Token Profile/Boost endpoints: 60 requests per minute
  • DEX/Pairs endpoints: 300 requests per minute

Error Handling

The server handles various error scenarios:

  • Rate limit exceeded
  • Invalid parameters
  • Network errors
  • API errors

Errors are returned in a standardized format with appropriate error codes and messages.

API Documentation

For detailed API documentation, see docs/api-reference.md.

Development

Project Structure

code
.
├── 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

Adding New Features

  1. Define types in src/types/
  2. Implement service methods in src/services/
  3. Add tool handlers in src/index.ts
  4. Update documentation
  5. Add tests

License

MIT

常见问题

DexScreener Pairs 是什么?

在 DexScreener 上发现各支持链的加密交易对,可按链和地址获取最新详情,或列出某代币的全部交易对,加速价格、流动性与机会研究。

DexScreener Pairs 提供哪些工具?

提供 7 个工具,包括 get_latest_token_profiles、get_latest_boosted_tokens、get_top_boosted_tokens

相关 Skills

Morning Brief

by amadeus9169

This skill pulls the latest headlines from a reliable international RSS feed and presents a concise list of news titles. It is ideal for a quick, up-to-date snapshot of global events at the start of your day.

搜索与获取
未扫描3.9k

SEO Audit Skill

by amdf01-debug

热门

搜索与获取
未扫描3.9k

agent-browser

by chulla-ceja

热门

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

搜索与获取
未扫描3.9k

相关 MCP Server

by Anthropic

热门

Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。

这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。

搜索与获取
83.1k

网页抓取

编辑精选

by Anthropic

热门

Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。

这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。

搜索与获取
83.1k

Brave 搜索

编辑精选

by Anthropic

热门

Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。

如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。

搜索与获取
83.1k

评论