Crypto Powerdata Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Crypto Powerdata Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A comprehensive MCP (Model Context Protocol) service for cryptocurrency data acquisition with advanced technical analysis capabilities
No installation required! Run directly with uvx:
# Run MCP server for Claude Desktop/MCP Studio
uvx crypto-powerdata-mcp
# Run HTTP server for web access
uvx crypto-powerdata-mcp --http
# Run with OKX API credentials
uvx crypto-powerdata-mcp --env OKX_API_KEY=your_key --env OKX_SECRET_KEY=your_secretClaude Desktop Configuration:
{
"mcpServers": {
"crypto-powerdata": {
"command": "uvx",
"args": ["crypto-powerdata-mcp"],
"env": {
"OKX_PROJECT_ID": "your_okx_project_id",
"OKX_API_KEY": "your_okx_api_key",
"OKX_SECRET_KEY": "your_okx_secret_key",
"OKX_PASSPHRASE": "your_okx_passphrase"
}
}
}
}📖 [See QUICK_START.md for complete uvx usage guide](QUICK_START.md)
The Crypto PowerData MCP Service is an advanced cryptocurrency data acquisition service that provides:
🔄 Dual Transport Protocols
📊 Data Sources
🧮 Technical Analysis
{'ema': [{'timeperiod': 12}, {'timeperiod': 26}]}ema_12, ema_26, macd_12_26_9ema_12, macd_12_26_9)graph TB
A[MCP Client] --> B{Transport Layer}
B -->|stdio| C[FastMCP Server]
B -->|HTTP/SSE| D[Dual Transport Server]
C --> E[MCP Bridge]
D --> E
E --> F[Tool Functions]
F --> G[Data Provider]
F --> H[Enhanced Indicators]
G --> I[CCXT - CEX Data]
G --> J[OKX DEX API]
H --> K[TA-Lib Registry]
I --> L[100+ Exchanges]
J --> M[DEX Markets]
K --> N[158 Indicators]# Clone the repository
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp
# Install dependencies using UV
uv sync
# Verify installation
uv run python -c "import src.main; print('✅ Installation successful!')"#### Option A: stdio Transport (Default)
# Start the MCP service
uv run python -m src.main
# Test with the provided test script
uv run python test_mcp_functionality.py#### Option B: HTTP/SSE Transport
# Start HTTP server
uv run python -m src.main --http
# Access endpoints:
# - API: http://localhost:8000/mcp
# - Health: http://localhost:8000/health
# - Documentation: http://localhost:8000/#### Option C: Auto-Detection Mode
# Let the server choose the best transport
uv run python -m src.dual_transport_server --mode autoimport asyncio
import json
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def test_basic_functionality():
server_params = StdioServerParameters(
command="uv",
args=["run", "python", "-m", "src.main"],
cwd=".",
env={"PYTHONPATH": "."}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# Get available indicators
result = await session.call_tool("get_available_indicators", {})
print(f"Available indicators: {len(json.loads(result.content[0].text))}")
if __name__ == "__main__":
asyncio.run(test_basic_functionality())The service automatically installs the following key dependencies:
mcp>=1.0.0 - Model Context Protocol implementationccxt>=4.0.0 - Cryptocurrency exchange trading libraryta-lib>=0.4.25 - Technical analysis libraryfastapi>=0.104.0 - Modern web framework for HTTP transportpandas>=2.0.0 - Data manipulation and analysisnumpy>=1.24.0 - Numerical computing#### Method 1: Direct Usage with uvx (Recommended) ⭐
No installation required! Run directly without cloning:
# Run MCP server (stdio mode for Claude Desktop)
uvx crypto-powerdata-mcp
# Run HTTP server for web access
uvx crypto-powerdata-mcp --http
# Run with environment variables
uvx crypto-powerdata-mcp --env OKX_API_KEY=your_key --env OKX_SECRET_KEY=your_secretAdvantages:
#### Method 2: Local Development Installation
# Install UV if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp
uv sync#### Method 3: Using pip
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp
pip install -e .#### Method 4: Development Installation with Testing
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp
uv sync --dev # Includes development dependenciesTA-Lib requires additional system-level installation:
#### Windows
# Using conda (recommended)
conda install -c conda-forge ta-lib
# Or download pre-compiled wheels
pip install TA-Lib#### macOS
brew install ta-lib
pip install TA-Lib#### Linux (Ubuntu/Debian)
sudo apt-get install libta-lib-dev
pip install TA-LibCreate a .env file in the project root for configuration:
# OKX DEX API Configuration (Required for DEX features)
OKX_API_KEY=your_api_key_here
OKX_SECRET_KEY=your_secret_key_here
OKX_API_PASSPHRASE=your_passphrase_here
OKX_PROJECT_ID=your_project_id_here
# Optional Performance Settings
RATE_LIMIT_REQUESTS_PER_SECOND=10
TIMEOUT_SECONDS=30
LOG_LEVEL=INFO
# Optional Transport Settings
DEFAULT_TRANSPORT=stdio
HTTP_HOST=127.0.0.1
HTTP_PORT=8000#### Claude Desktop Configuration
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"crypto-powerdata-mcp": {
"command": "uv",
"args": ["run", "python", "-m", "src.main"],
"cwd": "/absolute/path/to/crypto-powerdata-mcp",
"env": {
"PYTHONPATH": ".",
"OKX_API_KEY": "your_api_key",
"OKX_SECRET_KEY": "your_secret_key",
"OKX_API_PASSPHRASE": "your_passphrase",
"OKX_PROJECT_ID": "your_project_id"
}
}
}
}#### MCP Studio Configuration
{
"name": "Crypto PowerData MCP",
"command": ["uv", "run", "python", "-m", "src.main"],
"env": {
"PYTHONPATH": "/path/to/crypto-powerdata-mcp"
}
}#### 1. Get Real-time Token Price
# Get current USDC price on Ethereum
result = await session.call_tool("get_dex_token_price", {
"chain_index": "1", # Ethereum
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" # USDC
})#### 2. Fetch CEX Data with Indicators
# Get BTC/USDT data from Binance with technical indicators
result = await session.call_tool("get_cex_data_with_indicators", {
"exchange": "binance",
"symbol": "BTC/USDT",
"timeframe": "1h",
"limit": 100,
"indicators_config": '{"ema": [{"timeperiod": 12}, {"timeperiod": 26}], "rsi": [{"timeperiod": 14}]}'
})#### 3. Advanced Multi-Indicator Analysis
# Complex indicator configuration
indicators_config = {
"ema": [{"timeperiod": 12}, {"timeperiod": 26}, {"timeperiod": 50}],
"macd": [{"fastperiod": 12, "slowperiod": 26, "signalperiod": 9}],
"rsi": [{"timeperiod": 14}, {"timeperiod": 21}],
"bbands": [{"timeperiod": 20, "nbdevup": 2, "nbdevdn": 2}],
"stoch": [{"fastkperiod": 5, "slowkperiod": 3, "slowdperiod": 3}]
}
result = await session.call_tool("get_enhanced_dex_data_with_indicators", {
"chain_index": "1",
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"timeframe": "1h",
"limit": 200,
"indicators_config": json.dumps(indicators_config)
})#### Pattern Recognition Analysis
# Candlestick pattern recognition
pattern_config = {
"cdldoji": [{}],
"cdlhammer": [{}],
"cdlengulfing": [{}],
"cdl3blackcrows": [{}],
"cdlmorningstar": [{}]
}
result = await session.call_tool("get_enhanced_dex_data_with_indicators", {
"chain_index": "1",
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"timeframe": "4h",
"limit": 100,
"indicators_config": json.dumps(pattern_config)
})#### Multi-Timeframe Analysis
# Analyze same asset across different timeframes
timeframes = ["1h", "4h", "1d"]
results = {}
for tf in timeframes:
result = await session.call_tool("get_enhanced_dex_data_with_indicators", {
"chain_index": "1",
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"timeframe": tf,
"limit": 50,
"indicators_config": '{"ema": [{"timeperiod": 20}], "rsi": [{"timeperiod": 14}]}'
})
results[tf] = result| Tool Name | Description | Transport Support |
|---|---|---|
get_enhanced_dex_data_with_indicators | Advanced DEX data with flexible indicators | stdio, HTTP/SSE |
get_available_indicators | Complete indicator registry | stdio, HTTP/SSE |
get_cex_data_with_indicators | CEX data with enhanced indicators | stdio, HTTP/SSE |
get_dex_data_with_indicators | DEX data with indicators (legacy) | stdio, HTTP/SSE |
get_dex_token_price | Current DEX token price | stdio, HTTP/SSE |
get_cex_price | Current CEX price | stdio, HTTP/SSE |
#### get_enhanced_dex_data_with_indicators
Purpose: Fetch DEX candlestick data with comprehensive technical indicators
Parameters:
chain_index (string, required): Blockchain identifier ("1" for Ethereum, "56" for BSC, etc.)token_address (string, required): Token contract address (42-character hex string)timeframe (string, optional): Time interval ("1m", "5m", "15m", "1h", "4h", "1d", "1w")limit (integer, optional): Number of candles to fetch (default: 100, max: 1000)indicators_config (string, required): JSON string with indicator configurationsExample Request:
{
"chain_index": "1",
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"timeframe": "1h",
"limit": 100,
"indicators_config": "{\"ema\": [{\"timeperiod\": 12}, {\"timeperiod\": 26}], \"rsi\": [{\"timeperiod\": 14}]}"
}Response Format:
{
"success": true,
"data": {
"candles": [...],
"indicators": {
"ema_12": [...],
"ema_26": [...],
"rsi_14": [...]
},
"metadata": {
"symbol": "USDC",
"timeframe": "1h",
"count": 100
}
}
}| Category | Count | Examples |
|---|---|---|
| Momentum Indicators | 30 | RSI, MACD, Stochastic, ADX, CCI, Williams %R, ROC |
| Overlap Studies | 17 | SMA, EMA, Bollinger Bands, KAMA, T3, TEMA |
| Pattern Recognition | 61 | Doji, Hammer, Engulfing, Three Black Crows, Morning Star |
| Volume Indicators | 3 | OBV, A/D Line, Chaikin A/D Oscillator |
| Volatility Indicators | 3 | ATR, NATR, True Range |
| Price Transform | 4 | Average Price, Median Price, Typical Price, Weighted Close |
| Cycle Indicators | 5 | Hilbert Transform Dominant Cycle Period, Trend Mode |
| Statistic Functions | 9 | Beta, Correlation, Linear Regression, Standard Deviation |
| Math Transform | 15 | ACOS, ASIN, ATAN, COS, SIN, TAN, SQRT, LN, LOG10 |
| Math Operators | 11 | ADD, SUB, MULT, DIV, MIN, MAX, SUM |
#### Basic Indicators
{
"sma": [{"timeperiod": 20}],
"ema": [{"timeperiod": 12}, {"timeperiod": 26}],
"rsi": [{"timeperiod": 14}]
}#### Advanced Indicators
{
"macd": [{"fastperiod": 12, "slowperiod": 26, "signalperiod": 9}],
"bbands": [{"timeperiod": 20, "nbdevup": 2, "nbdevdn": 2}],
"stoch": [{"fastkperiod": 5, "slowkperiod": 3, "slowdperiod": 3}]
}#### Pattern Recognition
{
"cdldoji": [{}],
"cdlhammer": [{}],
"cdlengulfing": [{}]
}The service automatically generates descriptive column names based on parameters:
indicator_value (e.g., rsi_14, sma_20)indicator_param1_param2_... (e.g., macd_12_26_9)indicator_params_output (e.g., bbands_2_2_20_upperband)#### Trend Following Strategy
{
"ema": [{"timeperiod": 12}, {"timeperiod": 26}, {"timeperiod": 50}],
"macd": [{"fastperiod": 12, "slowperiod": 26, "signalperiod": 9}],
"adx": [{"timeperiod": 14}]
}#### Mean Reversion Strategy
{
"rsi": [{"timeperiod": 14}],
"bbands": [{"timeperiod": 20, "nbdevup": 2, "nbdevdn": 2}],
"stoch": [{"fastkperiod": 5, "slowkperiod": 3, "slowdperiod": 3}]
}#### Momentum Analysis
{
"rsi": [{"timeperiod": 14}, {"timeperiod": 21}],
"cci": [{"timeperiod": 14}],
"willr": [{"timeperiod": 14}],
"roc": [{"timeperiod": 10}]
}Supported via CCXT Library (100+ exchanges):
#### Major Exchanges
#### Regional Exchanges
Supported via OKX DEX API:
#### Supported Blockchains
| Chain | Chain Index | Native Token | Popular DEXs |
|---|---|---|---|
| Ethereum | 1 | ETH | Uniswap, SushiSwap, 1inch |
| BSC | 56 | BNB | PancakeSwap, Venus |
| Polygon | 137 | MATIC | QuickSwap, SushiSwap |
| Avalanche | 43114 | AVAX | Trader Joe, Pangolin |
| Arbitrum | 42161 | ETH | Uniswap V3, SushiSwap |
| Optimism | 10 | ETH | Uniswap V3, Synthetix |
#### Popular Token Addresses
Ethereum (chain_index: "1"):
USDC: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
USDT: 0xdac17f958d2ee523a2206206994597c13d831ec7
WETH: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
DAI: 0x6b175474e89094c44da98b954eedeac495271d0fBSC (chain_index: "56"):
WBNB: 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
BUSD: 0xe9e7cea3dedca5984780bafc599bd69add087d56
CAKE: 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82crypto-powerdata-mcp/
├── src/
│ ├── main.py # Main MCP server entry point
│ ├── data_provider.py # Data fetching and processing
│ ├── enhanced_indicators.py # Advanced technical analysis
│ ├── talib_registry.py # TA-Lib indicator registry
│ ├── mcp_bridge.py # Transport protocol bridge
│ └── dual_transport_server.py # HTTP/SSE server
├── tests/
│ ├── test_enhanced_mcp.py # Comprehensive test suite
│ ├── test_mcp_functionality.py # Basic functionality tests
│ └── comprehensive_mcp_test.py # Advanced testing
├── docs/
│ ├── API_DOCUMENTATION.md # Detailed API reference
│ ├── CONFIGURATION.md # Configuration guide
│ └── TESTING_REPORT.md # Testing documentation
├── config_examples.py # Configuration examples
├── pyproject.toml # Project dependencies
├── README.md # This file
└── LICENSE # MIT license# Clone repository
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp
# Install development dependencies
uv sync --dev
# Install pre-commit hooks
pre-commit install
# Run tests
pytest
# Run linting
black src/ tests/
isort src/ tests/
flake8 src/ tests/
mypy src/src/talib_registry.py):def register_custom_indicator(self):
self.indicators["custom_indicator"] = IndicatorDefinition(
name="custom_indicator",
category=IndicatorCategory.MOMENTUM,
description="Custom indicator description",
# ... other parameters
)src/enhanced_indicators.py):def calculate_custom_indicator(self, data, params):
# Implementation here
return resulttests/test_enhanced_mcp.py):def test_custom_indicator():
# Test implementation
passThe project includes comprehensive testing to ensure reliability and functionality:
#### Available Test Files
#### Quick Test
# Run basic functionality test
uv run python test_mcp_functionality.py#### Comprehensive Testing
# Run all tests with pytest
pytest tests/ -v
# Run specific test file
pytest test_enhanced_mcp.py -v
# Run with coverage
pytest --cov=src --cov-report=html#### Manual Testing
# Test enhanced indicators system
uv run python -c "
import asyncio
from src.enhanced_indicators import EnhancedTechnicalAnalysis
import pandas as pd
import numpy as np
async def test():
ta = EnhancedTechnicalAnalysis()
# Create sample data
dates = pd.date_range('2024-01-01', periods=100, freq='1H')
data = pd.DataFrame({
'open': np.random.uniform(50000, 51000, 100),
'high': np.random.uniform(50500, 51500, 100),
'low': np.random.uniform(49500, 50500, 100),
'close': np.random.uniform(50000, 51000, 100),
'volume': np.random.uniform(100, 1000, 100)
}, index=dates)
# Test indicators
config = {
'ema': [{'timeperiod': 12}, {'timeperiod': 26}],
'rsi': [{'timeperiod': 14}],
'macd': [{'fastperiod': 12, 'slowperiod': 26, 'signalperiod': 9}]
}
result = ta.calculate_indicators(data, config)
print(f'✅ Calculated {len(result.columns)} columns')
print(f'📊 Indicators: {[col for col in result.columns if col not in data.columns]}')
asyncio.run(test())
"# Test HTTP transport performance
curl -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "initialize",
"params": {"protocolVersion": "2024-11-05"},
"id": 1
}'#### Common Issues
# Solution: Set PYTHONPATH
export PYTHONPATH=/path/to/crypto-powerdata-mcp # Windows
conda install -c conda-forge ta-lib
# macOS
brew install ta-lib
pip install ta-lib
# Linux
sudo apt-get install libta-lib-dev
pip install ta-lib # Solution: Reduce request rate
export RATE_LIMIT_REQUESTS_PER_SECOND=5 # Solution: Use smaller datasets
# Reduce limit parameter in API calls# Enable detailed logging
export LOG_LEVEL=DEBUG
uv run python -m src.mainWe welcome contributions to the Crypto PowerData MCP service! Here's how you can help:
git clone https://github.com/veithly/crypto-powerdata-mcp.git
cd crypto-powerdata-mcp git checkout -b feature/your-feature-name uv sync --dev
pre-commit install pytest tests/ -v
black src/ tests/
isort src/ tests/
flake8 src/ tests/
mypy src/ git add .
git commit -m "feat: add your feature description"
git push origin feature/your-feature-name#### Adding Exchange Support
data_provider.py with new exchange integrationmain.py#### Adding New Indicators
talib_registry.pyenhanced_indicators.pyWhen reporting bugs, please include:
For feature requests, please provide:
This project is licensed under the MIT License - see the LICENSE file for details.
This project uses several open-source libraries:
Special thanks to the following projects and communities:
Made with ❤️ for the cryptocurrency and AI communities
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.