# @blockrun/alpha
AI-powered crypto trading MCP server with technical analysis, sentiment, and execution tools.
## Installation
```bash
claude mcp add alpha npx @blockrun/alpha
```
## Tools
| Tool | Description |
|------|-------------|
| `alpha_signal` | Technical analysis (RSI, MACD, EMA) via Binance |
| `alpha_dex` | DEX market data via DexScreener |
| `alpha_sentiment` | Social sentiment analysis (requires BlockRun wallet) |
| `alpha_swap` | Token swaps on Base via 0x |
| `alpha_portfolio` | Position tracking and management |
| `alpha_memory` | Vector-based trade memory search |
| `alpha_risk` | Risk management checks |
## Usage Examples
```
> "Get ETH technical signals"
Uses alpha_signal to fetch RSI, MACD, EMA indicators
> "Check PEPE market data"
Uses alpha_dex for DexScreener data
> "Find similar trades to ETH breakout"
Uses alpha_memory for semantic search
> "Check if $500 ETH buy passes risk limits"
Uses alpha_risk to validate against position limits
```
## Data Sources
- **Binance API** - Price data and technical indicators (free)
- **DexScreener** - DEX market data (free)
- **0x API** - Swap execution (free)
- **BlockRun Twitter** - Sentiment analysis (paid, requires wallet)
## Risk Limits (Hardcoded)
| Rule | Value |
|------|-------|
| Max position size | 15% |
| Max total exposure | 50% |
| Daily loss limit | 5% |
| Min cash reserve | 50% |
| Stop loss | 15% |
## Data Storage
Data is stored locally in `~/.blockrun/alpha/alpha.db`:
- Portfolio positions
- Trade history
- Trade memory with vector embeddings
## Requirements
- Node.js 18+
- BlockRun wallet (optional, for sentiment and swaps)
## Related
- [@blockrun/mcp](https://github.com/blockrunai/blockrun-mcp) - AI model access
- [alpha-trader](https://github.com/blockrunai/alpha-trader) - Claude Code trading project
## License
MIT