eterna-mcp-agent-starter
This MCP server offers no-credential Eterna fee, setup, safety-prompt, and connection-status tools, and can bridge authenticated official Eterna trading tools when a token is available.
Estimate monthly Eterna fees for a USD volume and maker/taker mix, including EHX Payback credits (
eterna_fee_estimate).Compare the same volume/mix across Eterna, Hyperliquid, Bybit, and Binance with sources (
eterna_compare_fees).Get step-by-step setup guides for Claude, the official CLI, generic MCP clients, or the starter server (
eterna_setup_guide).Retrieve guarded trading-agent prompt templates with risk caps, stop-loss, and approval gates (
eterna_agent_prompt).Check whether the official Eterna MCP bridge is active and how to authenticate (
eterna_connection_status).When authenticated via
ETERNA_ACCESS_TOKENor CLI credentials, expose official Eterna MCP tools alongside the local ones.
Eterna MCP Agent Starter
Build an AI trading agent on Eterna Hybrid Exchange in under 30 minutes — using Claude (MCP), the official CLI, or sandboxed TypeScript strategies. Ships with its own MCP server: fee estimator, venue comparison, setup guides and guarded agent prompts that work without an account, plus an authenticated bridge to the official Eterna MCP endpoint.
Eterna is a no-KYC perpetual futures exchange with flat fees (0.014% maker / 0.035% taker), CEX-grade liquidity routed from Bybit, and native AI-agent tooling: an MCP server, a CLI, and a managed TypeScript sandbox with an injected eterna.* SDK.
Affiliate disclosure: links to Eterna in this repo use referral code
Steve. Signing up through them costs you nothing extra — fees are identical — and supports this project.
Why Eterna for agents
Eterna | Typical setup (direct CEX API) | |
KYC | None — wallet auth | Full KYC |
Taker fee | Flat 0.035% | 0.045%+ before volume tiers |
Maker fee | Flat 0.014% | 0.015%+ |
Agent access | Native MCP server + CLI + sandbox SDK | Roll your own REST/WS client |
Agent safety | Isolated sub-account, no withdrawal rights | API key scoping varies |
Liquidity | $10B+ routed from Bybit order books, <200ms | Depends on venue |
Run your own numbers: Eterna vs Hyperliquid fee calculator · full comparison.
Related MCP server: AgentBroker MCP Server
Path 0 — Run the starter MCP server
A stdio MCP server that any client (Claude Desktop, Claude Code, Cursor, Windsurf, Glama) can launch. It needs no credentials to start.
{
"mcpServers": {
"eterna-starter": {
"command": "npx",
"args": ["-y", "github:stevevstd-oss/eterna-mcp-agent-starter"]
}
}
}Tool | Needs account | What it does |
| No | Monthly fees for a volume and maker/taker mix, plus EHX credited via EHX Payback |
| No | Same volume across Eterna, Hyperliquid, Bybit, Binance — with sources |
| No | Step-by-step for |
| No | Guarded trading-agent prompt (1% risk cap, mandatory SL/TP, approval gate) |
| No | Whether the bridge is active and how to authenticate |
Official Eterna tools | Yes | Bridged from |
Bridge mode. Set ETERNA_ACCESS_TOKEN in the server's env, or run npx @eterna-hybrid-exchange/cli login once — the server reads ~/.eterna/credentials.json (override with ETERNA_CONFIG_DIR) and refreshes it when needed. Every tool exposed by the official endpoint then appears next to the local ones.
# From source
git clone https://github.com/stevevstd-oss/eterna-mcp-agent-starter && cd eterna-mcp-agent-starter
npm install && npm run build && npm test
# Docker
docker build -t eterna-mcp-agent-starter .
docker run -i --rm -e ETERNA_ACCESS_TOKEN eterna-mcp-agent-starterEnvironment variables: ETERNA_ACCESS_TOKEN (optional), ETERNA_CONFIG_DIR (default ~/.eterna), ETERNA_MCP_URL (default https://mcp.eterna.exchange/mcp), ETERNA_AUTH_ISSUER (default https://ai-auth.eterna.exchange).
Path 1 — Claude with MCP (no code)
Sign up at ehx.app (wallet signature, ~2 minutes, no KYC).
In Claude: Customize → Connectors → Add Custom Connector.
Name it
Eterna, set the server URL to:https://mcp.eterna.exchange/mcpClick Add → Connect, sign in, and Authorize.
Keep Needs Approval on at first — approve each trade manually until you trust your prompts.
Works with claude.ai, Claude Desktop, and Claude Code. See docs/claude-setup.md for details and the generic MCP client config.
Path 2 — Official CLI
# Authenticate (browser OAuth, or device code over SSH)
npx @eterna-hybrid-exchange/cli login
# Check auth and endpoint status
npx @eterna-hybrid-exchange/cli status
# Balance and open positions
npx @eterna-hybrid-exchange/cli balance
npx @eterna-hybrid-exchange/cli positions
# Browse the sandbox SDK reference
npx @eterna-hybrid-exchange/cli sdk --search "place order"
npx @eterna-hybrid-exchange/cli sdk --detail fullCredentials are stored in ~/.eterna/credentials.json and auto-refreshed. See docs/cli-setup.md.
Path 3 — TypeScript strategies in the sandbox
Your code runs in Eterna's managed Deno sandbox with the eterna.* SDK injected — no API client to build, no keys in your code.
# Run a strategy file
npx @eterna-hybrid-exchange/cli execute examples/first-session.ts
# Or pipe code directly
echo 'const balance = await eterna.getBalance(); return balance;' \
| npx @eterna-hybrid-exchange/cli execute -Starter strategies in examples/:
first-session.ts— read balance, positions, and a ticker; no orders placed. Run this first.account-snapshot.ts— a compact account + market report your agent can call on a schedule.
Agent prompts to pair with the MCP connector are in prompts/.
Safety model (read this)
The MCP/CLI agent operates an isolated sub-account: it can trade but cannot withdraw funds. Your master account keeps custody.
Start with Needs Approval in Claude; switch to Always Allow only for strategies you have watched run.
Fund the sub-account only with what the strategy needs.
Perpetual futures with leverage can lose money quickly. Nothing in this repo is financial advice. See SECURITY.md.
Docs
docs/claude-setup.md — Claude / MCP client setup
docs/cli-setup.md — CLI reference and auth flows
docs/fees.md — fee schedule and comparison, with sources
src/ — the MCP server (
index.tstools and bridge,fees.tsfee model,auth.tstoken resolution)
Official resources
Eterna AI landing: https://ai.eterna.exchange/
MCP endpoint:
https://mcp.eterna.exchange/mcpOfficial monorepo: https://github.com/EternaHybridExchange/eterna-ai
CLI repo: https://github.com/EternaHybridExchange/eterna-cli
Referral program details: https://eterna.exchange/blog/eterna-referral-program-earn-from-the-volume-you-bring
30-minute agent tutorial: https://eterna.exchange/blog/build-your-ai-trading-agent-with-eterna-mcp-in-less-than-30-minutes
Disclaimer
Community project, not affiliated with or endorsed by Eterna Hybrid Exchange. SDK method names and commands follow the official docs at the time of writing — verify with npx @eterna-hybrid-exchange/cli sdk before trading real funds. Trading perpetual futures involves substantial risk of loss.
MIT © 2026
Available Tools
5 toolseterna_agent_promptA
Return a guarded prompt template for a trading agent on Eterna (risk caps, mandatory stop loss, approval gates). Use it as the system or session prompt once the Eterna tools are connected. No credentials needed.
Inputs: variant.
eterna_compare_feesA
Compare monthly fees for the same volume and maker/taker mix across Eterna, Hyperliquid (base tier), Bybit (non-VIP) and Binance (regular user). Returns a table with sources. No credentials needed.
Inputs: monthly_volume_usd (required), maker_share.
eterna_connection_statusA
Report whether this server is bridging the official Eterna MCP endpoint (token source, endpoint URL, number of remote tools exposed) and how to authenticate if it is not.
Inputs: no named parameters.
eterna_fee_estimateA
Estimate monthly trading fees on Eterna Hybrid Exchange for a given notional volume and maker/taker mix, and the EHX credited back through EHX Payback. Uses the published flat schedule (0.014% maker / 0.035% taker). No credentials needed.
Inputs: monthly_volume_usd (required), maker_share.
eterna_setup_guideA
Step-by-step guide for connecting an AI agent to Eterna: the Claude connector (no code), the official CLI, a generic stdio MCP client via mcp-remote, or this starter server itself. No credentials needed.
Inputs: client (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: connection status, fee estimation, fee comparison, setup guidance, and prompt generation. There is no overlap between them.
All tool names follow a consistent eterna_<purpose> pattern with snake_case. The only minor deviation is that some names are nouns (connection_status, setup_guide) while others are verbs (compare_fees), but the pattern is still predictable.
Five tools is a reasonable count for a starter/onboarding server. It is slightly thin compared to a full trading server, but each tool serves a distinct onboarding or informational purpose.
The server covers the stated purpose of onboarding and fee transparency well: status, setup, fee estimation, comparison, and agent prompt. A minor gap is the lack of a tool for actually executing trades or fetching live market data, but that appears to be out of scope for a starter server.
Maintenance
Related MCP Connectors
Trade Hyperliquid perps, stocks, gold, oil and pre-IPO from AI agents. Hosted; keys can't withdraw.
Non-custodial DeFi tools for AI agents on Solana: swaps, perps, lending, staking, equities.
Trading tools for AI agents: token risk checks, swap quotes, unsigned swaps, holdings on 5 chains.
Perpetual futures trading for AI agents on the user's own exchange accounts, behind one risk gate.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to trade leveraged perpetual futures on Solana's Jupiter Perpetuals while providing tools for market data and technical analysis. It supports portfolio management, fee estimation, and automated position execution for SOL, ETH, and BTC using USDC collateral.132MIT
- FlicenseNot gradedqualityDmaintenanceAI-native cryptocurrency exchange built for autonomous agents. Register, deposit USDC, select a strategy, and trade 8 crypto pairs (BTC, ETH, SOL + more) programmatically — no KYC required. Includes sandbox with 10,000 virtual USDC for testing.-

Purple Flea Tradingofficial
AlicenseNot gradedqualityDmaintenancePerpetual futures trading API for AI agents. Access 275+ markets (crypto, stocks, commodities, forex) via Hyperliquid. Copy trading, leaderboard, up to 50x leverage. No KYC. 20% referral commissions.105 npmMIT
Eterna MCPofficial
AlicenseNot gradedqualityCmaintenancePremium low cost execution layer for AI trading agents, with access to perpetual futures trading across 500+ pairs and $10B+ in aggregated liquidity.12MIT