Purpose
eterna-mcp-agent-starter is designed to help developers build AI trading agents on the Eterna hybrid exchange within 30 minutes. The project itself is an MCP server, and it also comes with tutorials, setup guides, and example strategies.
Key Capabilities
- Local MCP server: provides tools such as fee estimation and trading venue comparison, and can be started without credentials.
- Bridge mode: by setting ETERNA_ACCESS_TOKEN or logging in with the official CLI, the tools exposed by the official Eterna MCP endpoint can be displayed alongside local tools.
- Supports multiple clients: Claude Desktop, Claude Code, Cursor, Windsurf, Glama, and more.
- Provides a Claude connector setup guide, CLI reference, and fee documentation.
- Example TypeScript strategies: first-session.ts (reads balances, positions, and market data, without placing orders), account-snapshot.ts (account and market report).
- Protected agent prompts are located in the prompts/ directory.
Usage
Path 0: Run the local MCP server (stdio), no credentials required. Path 1: Add a custom connector in Claude, with the server URL being https://mcp.eterna.exchange/mcp,登录并授权。建议初期保持“需要批准”模式。 Path 2: Use the official CLI; credentials are stored in ~/.eterna/credentials.json and refreshed automatically. Path 3: Run TypeScript strategies in the Eterna-managed Deno sandbox, with the eterna.* SDK injected, so there is no need to build your own API client or store keys in code.
Environment variables: ETERNA_ACCESS_TOKEN (optional), ETERNA_CONFIG_DIR (default ~/.eterna), ETERNA_MCP_URL (default https://mcp.eterna.exchange/mcp)、ETERNA_AUTH_ISSUER(默认 https://ai-auth.eterna.exchange)。
Use Cases
Suitable for developers who want to quickly experiment with AI trading agents on the Eterna exchange, especially users of MCP clients such as Claude.
Limitations and Security Model
- MCP/CLI agents operate on isolated sub-accounts, which can trade but cannot withdraw; the main account retains custody.
- It is recommended to fund sub-accounts only with the funds required by the strategy.
- Perpetual contracts involve leverage and can lead to rapid losses; the project content does not constitute financial advice.
- The project is a community project and is not affiliated with or endorsed by the Eterna hybrid exchange. SDK method names and commands may change with the official documentation; before trading real funds, verify using npx @eterna-hybrid-exchange/cli sdk.
- Eterna links in the repository use referral code Steve; the registration fee remains unchanged.
Not Yet Provided
The project does not provide specific details on fees, pricing, or platform support.