eToro is the first major brokerage to ship an MCP server. Your AI code editor can query live data, inspect endpoints, and generate working code — without leaving the IDE.
# Install the MCP server in your editor
$ npx @etoro/mcp-server
→ Connected to eToro API
→ Authenticated as dev@company.com
→ Available tools:
get_portfolio - Fetch current portfolio
create_trade - Open a new position
get_market_data - Search instruments & prices
get_social_feed - Read social posts
get_pi_data - Popular Investor stats
create_agent_portfolio - Create AI-managed portfolio
manage_user_tokens - Delegate user access
# Now ask your AI assistant:
> "Open a $1000 demo position in TSLA"
→ Calling: create_trade({
instrument: "TSLA",
amount: 1000,
direction: "BUY",
account: "demo"
})
→ Position opened: pos_8k3m... (demo)
→ Current PnL: $0.00Create and manage AI-driven portfolios with delegated user tokens — the dedicated API surface for autonomous trading agents.
Master eToro API authentication — API key management, secure storage, token refresh patterns, and troubleshooting common auth errors.
Learn how to get your API keys, make your first request, and understand eToro API response formats.