Ultrabitch/mcp-dexscreener
If you are the rightful owner of mcp-dexscreener and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The DexScreener MCP Server provides access to the DexScreener API with Telegram-optimized formatting and automatic chain detection.
š DexScreener MCP Server
A Model Context Protocol (MCP) server that provides access to the DexScreener API with Telegram-optimized formatting and automatic chain detection.
⨠Features
- š Auto-detect blockchain from token address format
- š± Telegram-optimized formatting with market cap prioritization
- š³ Docker-ready for headless deployment
- ā” High-performance with negligible address detection overhead
- š Multi-chain support (Solana, Ethereum, BSC, Polygon, Arbitrum, Base)
- š Real-time market data from DexScreener API
š Quick Start
Option 1: Docker (Recommended for Production)
# Clone and run
git clone <your-repo-url>
cd mcp-dexscreener
docker-compose up -d
# Server available at http://localhost:3001
Option 2: Local Development
# Install dependencies
npm install
# Run STDIO version (for Claude Desktop)
npm start
# Run SSE version (for remote agents)
node index-sse.js
š” API Endpoints
Endpoint | Description |
---|---|
GET / | Server info and available endpoints |
GET /health | Health check |
GET /sse | MCP SSE connection endpoint |
POST /messages | MCP messages endpoint |
š ļø Available Tools
š getTokenInfo (Auto-Detection)
Get token information with automatic chain detection:
getTokenInfo({
tokenAddress: "DtR4D9FtVoTX2569gaL837ZgrB6wNjj6tkmnX9Rdk9B2"
})
// Automatically detects Solana and returns formatted data
Traditional Tools (Require Chain ID)
getPairsByToken
- Get pairs by token addresssearchPairs
- Search pairs by querygetPairByChainAndAddress
- Get specific pair datagetTokenPools
- Get token poolsgetLatestTokenProfiles
- Latest token profilescheckTokenOrders
- Check token orders
š± Telegram Format Example
š **LAUNCHCOIN** [+15.77%]
š Solana @ Raydium
**MC: $225.9M**
USD: $0.2258
**FDV:** $225.9M | **Liq:** $1.9M
**Vol 24h:** $16.5M | **Txns:** 62.6K
CA: `Ey59PH7Z4BFU4HjyKnyMdWt5GGN76KazTAwQihoUXRnk`
š [Chart](link) | š [Website](link) | š¦ [Twitter](link)
š Chain Detection
The server automatically detects blockchain from address format:
Chain | Format | Example |
---|---|---|
Solana | 43-44 chars, Base58 | DtR4D9FtVoTX2569gaL837ZgrB6wNjj6tkmnX9Rdk9B2 |
Ethereum | 42 chars, starts with 0x | 0x1234567890123456789012345678901234567890 |
BSC/Polygon | Same as Ethereum | Auto-fallback for EVM chains |
Tron | 34 chars, starts with T | TXyz123... |
š³ Docker Deployment
Production Setup
# Build and run
docker-compose up -d
# Test container health (optional)
node test-docker.js
# View logs
docker-compose logs -f
# Stop
docker-compose down
Configuration
The Docker setup includes:
- ā Production-optimized Node.js Alpine image
- ā Simplified deployment (no non-root user complications)
- ā Health checks and auto-restart
- ā Resource limits (512MB RAM, 0.5 CPU)
- ā Structured logging with rotation
- ā Comprehensive test suite for container health
š„ļø Agent Integration
For Remote Agents/Orchestrators
const mcpClient = new MCPClient({
sseUrl: "http://your-server:3001/sse",
messagesUrl: "http://your-server:3001/messages"
});
// Use the auto-detection tool
const result = await mcpClient.callTool("getTokenInfo", {
tokenAddress: "DtR4D9FtVoTX2569gaL837ZgrB6wNjj6tkmnX9Rdk9B2"
});
For Claude Desktop
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"dexscreener": {
"command": "node",
"args": ["/absolute/path/to/index.js"]
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
ā” Performance
- Address Detection: ~0.001ms (single regex match)
- EVM Fallback: ~200-500ms max (only on API failure)
- Rate Limits: 60/min for profiles, 300/min for pairs/search
š§ Development
Project Structure
mcp-dexscreener/
āāā index.js # STDIO transport (Claude Desktop)
āāā index-sse.js # HTTP/SSE transport (remote agents)
āāā package.json # Dependencies and scripts
āāā Dockerfile # Production container
āāā docker-compose.yml # Orchestration
āāā test-docker.js # Container health test suite
āāā CLAUDE.md # Development notes (gitignored)
Testing
The project includes a comprehensive test suite for Docker deployments:
# Run container health tests
node test-docker.js
Tests verify:
- ā Health endpoint functionality
- ā API information endpoint
- ā SSE connection handling
- ā MCP endpoint protection
- ā Proper error responses
Environment Variables
PORT
- Server port (default: 3001)NODE_ENV
- Environment (production/development)
š API Reference
Based on DexScreener API Documentation
Rate limits:
- Token profiles/boosts: 60 requests/minute
- Pairs/search: 300 requests/minute
š¤ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test with Docker:
docker-compose up --build
- Submit a pull request
š License
MIT License - see LICENSE file for details
š Support
- š MCP Documentation
- š DexScreener API Docs
- š Report Issues
Built with ā¤ļø for the crypto community