refinex-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@refinex-mcp what's the best spot arbitrage right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
refinex-mcp
MCP server for RefineX — AWS spot price arbitrage signals with deterministic confidence scoring, delivered as MCP tools for Claude Code and Cursor.
pip install refinex-mcpWhat it does
RefineX monitors AWS spot prices across 5 regions and surfaces arbitrage opportunities as structured signals. This MCP server wraps the RefineX REST API so you can query live spot data directly inside Claude Code or any MCP-compatible AI tool.
get_live_signal → buy_spot c6i.xlarge us-west-2b $0.0626 spot vs $0.17 on-demand (63% discount, confidence 0.72)119 signals detected, 118 suppressed. Only the best one fires.
Related MCP server: agentops-mcp
Tools
No API key required
Tool | Description |
| Single best active spot arbitrage signal right now |
| Mix of delivered + suppressed signals — shows what was held back and why |
| API health + last AWS data ingestion timestamp |
Requires REFINEX_API_KEY
Tool | Description |
| Paginated list of active signals with filters (cloud, region, instance type, confidence) |
| Best action for a specific cloud/region/instance — built for autoscalers |
| Aggregate: total opportunities, avg savings %, top instance types by cloud |
Setup
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"refinex": {
"command": "refinex-mcp",
"env": {
"REFINEX_API_KEY": "your-key-here"
}
}
}
}No API key? get_live_signal and get_suppression_log work without one.
Cursor / other MCP clients
{
"mcp": {
"servers": {
"refinex": {
"command": "refinex-mcp",
"env": {
"REFINEX_API_KEY": "your-key-here"
}
}
}
}
}Example responses
get_live_signal (no auth)
{
"action": "buy_spot",
"cloud": "aws",
"region": "us-west-2",
"availability_zone": "us-west-2b",
"instance_type": "c6i.xlarge",
"spot_price_usd": 0.0626,
"on_demand_price_usd": 0.17,
"discount_pct": 63.18,
"confidence": 0.72,
"ttl_minutes": 28,
"suppressed_last_6h": 119,
"signal_id": "e12d4faf-750c-4f4c-933b-260364e47f2f"
}get_suppression_log (no auth)
{
"signals": [...],
"count": 20,
"delivered": 3,
"suppressed": 17,
"suppression_rate": 85.0
}High suppression rate is intentional. RefineX fires fewer, better signals.
get_signal_for_instance (API key required)
{
"action": "buy_spot",
"signal": {
"source": { "cloud": "aws", "region": "us-east-1", "availability_zone": "us-east-1a" },
"asset": { "instance_type": "m6i.large", "current_spot_price": 0.034, "on_demand_price": 0.096 },
"confidence": 0.85,
"ttl": 600
},
"alternatives": [
{ "availability_zone": "us-east-1b", "current_spot_price": 0.038, "confidence": 0.79 }
]
}Environment variables
Variable | Required | Default | Description |
| For authenticated tools | — | Your RefineX API key |
| No |
| Override for self-hosted |
Signal anatomy
confidence: 0.0–1.0, deterministic — computed from price history, volatility, and AZ spread. No LLM scoring.
action:
buy_spot/migrate_spot/wait/use_on_demandttl_minutes: how long the signal is valid. Treat it as stale after expiry.
suppressed_last_6h: signals detected but not delivered. Suppression is a feature, not a gap.
Get an API key
Early Access is free for 90 days: refinex.io
Links
Website: refinex.io
Live signal: refinex-api.onrender.com/v1/signals/now
Suppression log: refinex.io/transparency
API docs: refinex-api.onrender.com/docs
Available Tools
6 toolsget_healthA
Get RefineX API health and last AWS data ingestion timestamp. No API key required.
Returns:
status: "healthy" | "degraded"
version: API version string
timestamp: current server time (UTC ISO-8601)
clouds.aws.status: "active" | "degraded"
clouds.aws.last_ingestion: ISO-8601 timestamp of last AWS price poll
clouds.aws.realtime: true (live AWS data as of 2026-03-26)
Use this to verify real-time data is flowing before making infrastructure decisions. If aws.status is "degraded", last_ingestion is >10 minutes old.
Inputs: no named parameters.
get_live_signalA
Get the single best active AWS spot arbitrage signal right now. No API key required.
Returns the highest-confidence active signal including:
action: "buy_spot" | "migrate_spot" | "wait" | "use_on_demand"
cloud, region, availability_zone, instance_type
spot_price_usd, on_demand_price_usd, discount_pct
confidence (0.0–1.0, deterministic — no LLM scoring)
ttl_minutes: how long this signal is valid
suppressed_last_6h: signals detected but held back in last 6 hours
signal_id: use this to reference a specific signal
If no signal clears the confidence threshold, returns action="use_on_demand" with a rationale. suppressed_last_6h will still be populated.
This is the fastest way to get real AWS spot data — zero credentials needed.
Inputs: no named parameters.
get_signal_for_instanceA
Get the single best spot action for a specific cloud/region/instance type. Optimized for autoscalers that need one clear, deterministic action. Requires REFINEX_API_KEY env var.
Args: cloud: Cloud provider — "aws", "gcp", or "azure" region: AWS region, e.g. "us-east-1", "us-west-2", "eu-west-1" instance_type: EC2 instance type, e.g. "m6i.large", "c7g.xlarge", "t3.medium" fallback: What to return when no signal exists — "on_demand" (default), "wait", or "none"
Returns:
action: "buy_spot" | "migrate_spot" | "wait" | "use_on_demand"
signal{}: full signal detail for the chosen action
alternatives[]: other AZs for the same instance type, with their prices/confidence
Use fallback="on_demand" in CI/CD pipelines so you always get a safe default. Use fallback="wait" in cost-sensitive batch jobs.
Inputs: cloud (required), region (required), instance_type (required), fallback.
get_signals_summaryA
Get aggregate summary of current AWS spot opportunities. Requires REFINEX_API_KEY env var.
Args: cloud: Filter by cloud provider (optional) region: Filter by region (optional) min_savings: Minimum savings % to include in summary (default: 50.0) confidence_min: Minimum confidence score (default: 0.80)
Returns:
summary{total_signals, spot_arbitrage, interruption_risk, avg_savings_percent, avg_confidence}
by_cloud{aws: {signals, avg_savings_percent, top_instance_types[]}}
ttl: cache validity in seconds
next_update: ISO-8601 timestamp when summary refreshes
Use this for dashboards or periodic CI checks: "How many high-confidence deals exist right now, and in which regions?"
Inputs: cloud, region, min_savings, confidence_min.
get_suppression_logA
Get the RefineX suppression log — a mix of delivered and suppressed signals. Shows what RefineX fired vs. what it held back and why. No API key required.
Args: limit: Number of signals to return (1–20, default 20)
Returns:
signals[]: each has region, instance_type, confidence, savings_pct, action, suppressed (bool), suppression_reason
count: total signals returned
delivered: signals that cleared the confidence threshold
suppressed: signals that were detected but held back
suppression_rate: percentage suppressed (e.g. 65.0 means 65% held back)
Suppression reasons: "confidence_below_threshold", "stale_data", "ttl_expired". A high suppression rate is intentional — discipline is the product.
Inputs: limit.
list_signalsA
List active spot arbitrage signals with optional filters. Requires REFINEX_API_KEY env var.
Args: cloud: Cloud provider — "aws", "gcp", or "azure" (default: "aws") region: Filter by region, e.g. "us-east-1", "us-west-2" (optional) instance_type: Filter by EC2 type, e.g. "m6i.large", "c7g.xlarge" (optional) confidence_min: Minimum confidence score 0.0–1.0 (default: 0.0) page: Page number (default: 1) limit: Results per page, max 500 (default: 50)
Returns:
signals[]: each has signal_id, type, source{cloud, region, az}, asset{instance_type, spot_price, on_demand_price}, action, expected_value{savings_percent}, confidence, ttl, expires_at
count: signals on this page
page, total_pages, next: pagination info
Inputs: cloud, region, instance_type, confidence_min, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: health check, best signal, per-instance signal, aggregate summary, suppression log, and paginated list. No overlap in functionality.
All tool names follow a consistent verb_noun pattern using snake_case, e.g., get_health, get_live_signal, list_signals. No deviations.
With 6 tools, the set is well-scoped for a focused API providing spot arbitrage signals. Each tool earns its place without being excessive or insufficient.
The tool surface covers health, best signal, per-instance queries, summaries, suppression logs, and listing. A minor gap is the lack of a direct 'get_signal_by_id' endpoint, but list_signals with filtering can serve that purpose.
Maintenance
Related MCP Connectors
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Hosted BigQuery MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Sportsbook and prediction-market prices in Claude and ChatGPT. Needs BeatVig Premium + MCP Access.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language control of AWS resources (EC2, Security Groups, S3, Bedrock, etc.) directly from Claude Desktop or Claude Code.75 PyPIMIT
- AlicenseAqualityCmaintenanceExposes analytics from Claude Code transcripts as MCP tools, enabling cost, audit, safety, and efficiency queries through natural language.4MIT
- AlicenseNot gradedqualityFmaintenanceEnables Claude Code sessions to query fleet status, focus terminals, and manage sessions programmatically via MCP tools.2MIT
- AlicenseAqualityCmaintenanceEnables search, analytics, and visualization of Claude Code sessions with MCP tools for session management, recovery, and insights.1086 PyPI1MIT