Repository avatar
Other Tools
v1.0.1
active

eterna-mcp

io.github.EternaHybridExchange/eterna-mcp

Free Eterna MCP: TypeScript trading SDK, isolated sub-account. Fees only on a filled order.

Documentation

Eterna MCP Gateway

The fastest way to give your AI agent real trading capabilities.

No KYC. Sandboxed TypeScript SDK. Isolated sub-accounts. Connecting is free. Perpetual fees are 0.034% maker / 0.055% taker, only when an order fills.

License: MIT MCP Protocol Tools SDK Eterna MCP connector


30-Second Install

Add to your MCP client and complete OAuth when prompted:

{
  "mcpServers": {
    "eterna": {
      "type": "streamable-http",
      "url": "https://mcp.eterna.exchange/mcp"
    }
  }
}

Your agent is auto-provisioned on first sign-in. There is no register_agent tool.

See QUICKSTART.md for Claude, Cursor, and Openclaw walkthroughs.

Product site: ai.eterna.exchange


How it works

Eterna is not a one-MCP-tool-per-exchange-endpoint server.

  1. Agent calls search_sdk to find the right eterna.* method.
  2. Agent calls execute_code with TypeScript that uses the full SDK in one round-trip.
  3. Code runs in a sandboxed Deno runtime. Result is returned as JSON.

That model uses ~90% fewer tokens than wrapping every Bybit call as a separate MCP tool.


MCP tools

ToolDescription
execute_codeRun TypeScript in a Deno sandbox with the eterna.* trading SDK
search_sdkSearch SDK docs (list / summary / full / params / keywords)
search_examplesSemantic search over curated trading examples

Prompts

PromptDescription
getting_startedHow to use execute_code, deposit flow, sandbox rules
sdk_referenceFull eterna.* method signatures and response shapes
error_handlingError categories and recovery
technical_analysisRSI, MACD, EMA, SMA, Bollinger, VWAP
strategy_momentum_scalpingOptional strategy template
strategy_mean_reversionOptional strategy template
strategy_funding_rate_arbitrageOptional strategy template

Resources

URIDescription
eterna://docs/sdkComplete SDK reference
eterna://docs/errorsError reference
eterna://docs/examplesExample snippets

Full parameter docs: docs/tools-reference.md


SDK methods (via execute_code)

30 methods on the eterna object inside the sandbox (linear perps default; USDT spot via market: "spot" and sellSpotBalance):

CategoryMethods
Market datagetTickers, getOrderbook, getInstruments (optional market: linear or spot)
Technical analysisgetRsi, getMacd, getEma, getSma, getBollingerBands, getVwap
TradingplaceOrder, sellSpotBalance, closePosition, cancelOrder, cancelAllOrders, setLeverage, setTradingStop
AccountgetBalance, getAccountInfo, getAllCoinsBalance, getPositions, getOrders
FundinggetDepositAddress, getDepositRecords, getAllowedDepositCoins, transferToTrading, swapToUsdt, getCoinInfo, getWithdrawableAmount, submitWithdrawal, getWithdrawalStatus

Example:

const balance = await eterna.getBalance();
const ticker = await eterna.getTickers("BTCUSDT");
return { equity: balance.totalEquity, last: ticker.list?.[0]?.lastPrice };

Why Eterna?

Eterna (managed)Self-hosted MCP serversDirect API wrappers
Setup time~30 seconds15-30 minHours
AuthOAuth (or legacy API key)You create & rotate keysYou create & rotate keys
Agent isolationDedicated sub-account per agentShared accountShared account
Execution modelSandboxed TypeScript SDKUsually one tool per endpointCustom code
TransportStreamable HTTP (remote)Often stdio (local only)HTTP
MaintenanceZero — we handle updatesYou manageYou manage
Futures fees0.034% maker / 0.055% taker, only on a fill. Connect is $0.Retail unless you negotiate VIPRetail unless you negotiate VIP

What you don't have to build

  • Sub-account provisioning
  • Rate limiting and request validation
  • Deposit address management and fund routing
  • Error handling for exchange API changes
  • A Deno sandbox + typed trading SDK

Works with your stack

Claude (claude.ai)

Add a custom connector with URL https://mcp.eterna.exchange/mcp, complete OAuth, Approve.

Claude Code / Cursor

Use the JSON config above (Claude Code: .mcp.json, Cursor: .cursor/mcp.json). Complete OAuth when prompted.

Openclaw

openclaw plugins install @eterna-hybrid-exchange/openclaw-plugin
npm install -g @eterna-hybrid-exchange/cli
eterna login

Any Streamable HTTP MCP client

Point the client at https://mcp.eterna.exchange/mcp and authenticate with OAuth (mcp:full) or a legacy Bearer API key. Polished guides for LangChain / CrewAI / AutoGen / ChatGPT are expanding.


Authentication

Preferred: OAuth via https://ai-auth.eterna.exchange with scope mcp:full.

Legacy: long-lived agent API keys as Authorization: Bearer … (Argon2 hashed at rest).

Details: docs/authentication.md


Markets

  • USDT-margined perpetual futures (800+ pairs, default market: "linear")
  • USDT spot via placeOrder({ …, market: "spot" }), sellSpotBalance(symbol), and spot-aware market data / order methods

See docs/tools-reference.md.


Roadmap

See ROADMAP.md.

Shipped: code execution sandbox, OAuth agent provisioning, 30 SDK methods (perps + USDT spot), technical analysis, funding/withdrawal flows.

Next: broader SDK coverage, cron strategy runtime, backtesting.


Skills

Claude Code skills for trading knowledge:

Or grab the latest bundle: https://ai.eterna.exchange/claude-skills


Documentation

Machine-readable product facts: https://ai.eterna.exchange/llms.txt


Marketplace plugin (Cursor and Grok Bot)

This repository is a free plugin. Installing it and connecting to the MCP server costs $0. There is no subscription, no seat fee, and no charge for calling the server.

When an order is filled, the exchange charges its published trading fees. Regular-tier USDT perpetual fees are 0.034% maker and 0.055% taker (pricing). Those are execution fees on the venue, not a fee for the plugin. A reviewer can connect, read a ticker, and read a zero balance without depositing and without placing an order.

How to test without a deposit:

  1. Install the plugin from this repo, or add https://mcp.eterna.exchange/mcp as a Streamable HTTP server. The plugin manifest is .cursor-plugin/plugin.json and the server entry is mcp.json. No API key is baked in.
  2. Complete OAuth when the client receives HTTP 401 (mcp:full at https://ai-auth.eterna.exchange). The first sign-in creates an isolated sub-account. No KYC and no deposit.
  3. Call search_sdk for getTickers, then execute_code with return await eterna.getTickers("BTCUSDT").
  4. eterna.getBalance() may be 0. Do not place an order.

Terms and privacy: https://eterna.exchange/terms-privacy

Eterna does not use plugin or marketplace user content to train AI or machine learning models. The published privacy policy says personal information is not shared with third parties.

Support: contact@eterna.exchange

The marketplace bundle is only skills/marketplace and rules/. Claude Code strategy skills under skills/claude-code/ stay in the repo and are not part of the installed plugin. Paste-ready form text is in docs/marketplace-submission.md.

Logo for the listing: assets/logo.png (square mark on a background plate). Public URL after this file is on main: https://raw.githubusercontent.com/EternaHybridExchange/eterna-mcp/main/assets/logo.png


Contact

Questions, partnerships, or support: contact@eterna.exchange


License

MIT — Copyright 2025-2026 Eterna Exchange

No installation packages available.

Remote