DexScreener Pairs
搜索与获取by catwhisperingninja
在 DexScreener 上发现各支持链的加密交易对,可按链和地址获取最新详情,或列出某代币的全部交易对,加速价格、流动性与机会研究。
什么是 DexScreener Pairs?
在 DexScreener 上发现各支持链的加密交易对,可按链和地址获取最新详情,或列出某代币的全部交易对,加速价格、流动性与机会研究。
核心功能 (7 个工具)
get_latest_token_profilesGet the latest token profiles
get_latest_boosted_tokensGet the latest boosted tokens
get_top_boosted_tokensGet tokens with most active boosts
get_token_ordersCheck orders paid for a specific token
get_pairs_by_chain_and_addressGet one or multiple pairs by chain and pair address
get_pairs_by_token_addressesGet one or multiple pairs by token address (max 30)
search_pairsSearch for pairs matching query
README
DexScreener MCP Server
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
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:
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):
- Using
.envfile:
echo "SMITHERY_API_KEY=your_api_key" > .env
Ensure your service has:
services:
dexscreener-mcp:
env_file:
- .env
environment:
NODE_ENV: production
- Or via inline environment variables:
services:
dexscreener-mcp:
environment:
SMITHERY_API_KEY: ${SMITHERY_API_KEY}
NODE_ENV: production
Kubernetes:
- Store the key in a Secret:
kubectl create secret generic smithery-api --from-literal=SMITHERY_API_KEY=your_api_key
- Reference it in your Deployment:
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
npm test
Usage
Available Tools
-
get_latest_token_profiles- Get the latest token profiles
- No parameters required
typescriptconst result = await mcpClient.callTool( "dexscreener", "get_latest_token_profiles" ); -
get_latest_boosted_tokens- Get the latest boosted tokens
- No parameters required
typescriptconst result = await mcpClient.callTool( "dexscreener", "get_latest_boosted_tokens" ); -
get_top_boosted_tokens- Get tokens with most active boosts
- No parameters required
typescriptconst result = await mcpClient.callTool( "dexscreener", "get_top_boosted_tokens" ); -
get_token_orders- Check orders paid for a specific token
typescriptconst result = await mcpClient.callTool("dexscreener", "get_token_orders", { chainId: "solana", tokenAddress: "So11111111111111111111111111111111111111112", }); -
get_pairs_by_chain_and_address- Get one or multiple pairs by chain and pair address
typescriptconst result = await mcpClient.callTool( "dexscreener", "get_pairs_by_chain_and_address", { chainId: "solana", pairId: "HxFLKUAmAMLz1jtT3hbvCMELwH5H9tpM2QugP8sKyfhc", } ); -
get_pairs_by_token_addresses- Get one or multiple pairs by token address (max 30)
typescriptconst result = await mcpClient.callTool( "dexscreener", "get_pairs_by_token_addresses", { tokenAddresses: "So11111111111111111111111111111111111111112", } ); -
search_pairs- Search for pairs matching query
typescriptconst 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
.
├── 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
- Define types in
src/types/ - Implement service methods in
src/services/ - Add tool handlers in
src/index.ts - Update documentation
- 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.
SEO Audit Skill
by amdf01-debug
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.
相关 MCP Server
Puppeteer 浏览器控制
编辑精选by Anthropic
Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。
✎ 这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。
网页抓取
编辑精选by Anthropic
Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。
✎ 这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。
Brave 搜索
编辑精选by Anthropic
Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。
✎ 如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。