Skip to main content
Back to Blog
MCPAIvibe-codingtutorial

Vibe Coding with the eToro MCP Server

How to use the eToro MCP server with Cursor, Claude, and other AI code editors to build trading apps without writing API calls by hand.

e

eToro Developer Relations

March 18, 20263 min read

You don't need to be an API expert to build on eToro anymore. With the eToro MCP (Model Context Protocol) server, your AI code editor can talk directly to the eToro API — fetching market data, placing trades, and managing portfolios on your behalf.

This is vibe coding for fintech.

What Is MCP?

The Model Context Protocol is an open standard that lets AI assistants (like Claude in Cursor, Windsurf, or VS Code) call external tools. Instead of writing fetch() calls manually, you describe what you want and the AI uses MCP tools to make it happen.

The eToro MCP server exposes tools like:

  • get_instruments — Search and list available instruments
  • get_quotes — Get real-time prices
  • get_portfolio — View your current positions
  • place_order — Execute trades (demo or real)
  • get_social_feed — Fetch community posts and sentiment

Setting Up

1. Install the MCP Server

Add the eToro MCP server to your editor's MCP configuration.

For Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "etoro": {
      "command": "npx",
      "args": ["-y", "@etoro/mcp-server"],
      "env": {
        "ETORO_API_KEY": "your_api_key"
      }
    }
  }
}

2. Get Your API Key

Sign up at api-portal.etoro.com and create an application to get your API key.

3. Start Vibing

Open your editor and start asking. The AI will use the MCP tools automatically.

Example Workflows

"Show me the top 5 gaining stocks today"

Your AI assistant calls get_instruments with a filter, then get_quotes for real-time prices, and formats the results:

Using eToro MCP tools...
→ get_instruments(type: "stock", sort: "daily_change", limit: 5)
→ get_quotes(instruments: ["NVDA", "SMCI", "PLTR", "MSTR", "COIN"])

Top 5 Gainers Today:
1. NVDA  +8.2%  $142.50
2. SMCI  +6.1%  $89.30
3. PLTR  +5.8%  $78.20
4. MSTR  +5.2%  $1,450.00
5. COIN  +4.9%  $265.80

"Build me a portfolio tracker dashboard"

Instead of writing API integration code from scratch, describe what you want:

"Create a React dashboard that shows my eToro portfolio with current P&L, allocation pie chart, and a table of all positions sorted by gain/loss."

The AI uses MCP to:

  1. Call get_portfolio to understand your position structure
  2. Generate the React components with real data types
  3. Add real-time price updates via the WebSocket tool

"Place a demo trade"

"Buy $100 of Apple stock on my demo account"

Using eToro MCP tools...
→ place_order(instrument: "AAPL", direction: "BUY", amount: 100, environment: "demo")

✅ Demo order placed: Bought $100 of AAPL at $198.50
Position ID: demo-abc-123

Tips for Better Results

  1. Be specific — "Get the price of Bitcoin" works better than "show me crypto"
  2. Mention demo — Always specify "demo account" when testing trades
  3. Build incrementally — Start with data fetching, then add trading logic
  4. Check the types — Ask the AI to show you the response schema before building UI

Supported Editors

Editor MCP Support Status
Cursor Native Fully supported
Claude Desktop Native Fully supported
VS Code + Continue Plugin Supported
Windsurf Native Supported
Zed Plugin Beta

Get Started

  1. Visit api-portal.etoro.com/vibe-code/mcp for setup instructions
  2. Get your API key from the API Portal
  3. Start building with your favorite AI editor

The future of fintech development is conversational. Start vibing with eToro today.

We use cookies to improve your experience. By using this site, you agree to our use of cookies. Privacy Policy (opens in new tab)