No-Code & Workflow Automation

n8n AI Agent Workflow for Crypto Trading via Eterna MCP

Not every trader wants to host a custom Python or Node.js daemon. n8n gives you visual triggers (cron, TradingView webhooks, Discord/Telegram messages), retries, and logging while Eterna MCP handles market data, indicators, and execution.

Updated: By Eterna Engineering (MCP & Agent Infrastructure Team)Read as Markdown
Quick Answer

Add an n8n `AI Agent` node with an `MCP Client Tool` sub-node configured for Streamable HTTP at `https://mcp.eterna.exchange/mcp`. Trigger the workflow on a schedule, TradingView webhook, or Telegram message to run technical analysis and execute risk-bounded orders on Eterna.

n8n NodeMCP Client ToolStreamable HTTP transport
TriggersCron / Webhook / TGTradingView alerts, schedule, chat
Indicators6 built-in on EternaRSI, MACD, EMA, SMA, BB, VWAP
Hosting Cost$0 Eterna MCP feePay only 0.014%/0.035% trade fees
https://mcp.eterna.exchange/mcp

1. Build a Scheduled Scanner & Alert Workflow in n8n

Start in read-only alert mode before enabling live order placement.

  1. 01Add a Schedule or Webhook trigger

    Use a 15-minute or 1-hour Schedule Trigger for indicator scans, or a Webhook Trigger for incoming TradingView alerts.

  2. 02Attach AI Agent + MCP Client Tool

    Connect Claude or GPT as the Chat Model, then add the `MCP Client Tool` pointing at `https://mcp.eterna.exchange/mcp` with your OAuth Bearer header.

  3. 03Prompt for structured JSON output

    Instruct the agent to run one `execute_code` call checking tickers, RSI, EMA, and current positions, then output `{ action, symbol, reason, riskNote }`.

  4. 04Route to Telegram / Slack or Approval Gate

    Send the proposed setup to Telegram with an Approve/Reject button before calling a second execution workflow.

2. Webhook Safety Rules for Automated Workflows

Webhooks can fire duplicates or get spoofed. Protect capital with simple n8n checks.

  • Validate a shared secret token on every incoming TradingView webhook payload before invoking the AI Agent node.
  • Deduplicate alerts per `(symbol, timeframe, candleTimestamp)` so duplicate webhook retries never double-enter a position.
  • Inside `execute_code`, always check `eterna.getPositions()` first and skip if an open position already exists on that symbol.
  • Keep only your active trading budget inside the Eterna agent sub-account.
FAQ

Frequently asked questions

Can n8n turn TradingView alerts into AI-vetted trades?
Yes. TradingView sends a webhook to n8n, n8n passes the alert to the AI Agent connected to Eterna MCP, and the agent verifies live orderbook liquidity, RSI/EMA confluence, and open exposure before deciding whether to execute.
Does n8n work with Eterna's free MCP server?
Yes. Eterna charges $0/month for MCP and Deno sandbox compute. You pay only standard trading fees (0.014% maker / 0.035% taker on perpetuals).
Primary Sources

References & verification links

Start Trading via MCP

Connect your AI agent in 30 seconds

One remote MCP URL. 800+ USDT perpetuals, 380+ spot pairs, 0.014% maker / 0.035% taker, no KYC.

View on GitHub