GuideLast updated

How to trade Polymarket with Claude using OpenFinance

Short answer: Add OpenFinance to Claude as a custom MCP connector (https://api.openfinance.tech/agent/mcp). Claude can then search Polymarket markets, read live odds and order books, and place, cancel and redeem bets through OpenFinance. Setup takes under 60 seconds, with no KYC on OpenFinance. OpenFinance also covers Hyperliquid's Yes/No outcome markets.

How Claude connects to OpenFinance

claude.ai and Claude Desktop add remote MCP servers under Settings → Connectors → Add custom connector. Claude Code uses claude mcp add --transport http and takes a key with --header.

How to set up OpenFinance in Claude: step by step

  1. claude.ai / Desktop: Settings → Connectors → Add custom connector.
  2. Name it OpenFinance, paste https://api.openfinance.tech/agent/mcp, then Connect and sign in.
  3. Claude Code instead: claude mcp add --transport http openfinance https://api.openfinance.tech/agent/mcp --header "x-api-key: open_xxxxx".
  4. Ask “what OpenFinance Polymarket tools do you have?”
  5. Fund OpenFinance, then ask for odds and place a small bet.

Prediction markets OpenFinance supports

Prediction marketWhat OpenFinance can do
PolymarketSearch events and markets, live odds, order books, spreads, top-trader leaderboards, any wallet's positions and P&L, limit and market orders, cancel, redeem winnings, withdraw
Hyperliquid HIP-4 outcomesYes/No price bets ("Will BTC be above $X at time T?") and price-bucket questions, bought and sold with USDC
KalshiNot supported

Funding

Polymarket settles in pUSD in your Polymarket deposit wallet. Ask Claude: “What's my OpenFinance Polymarket deposit wallet and balance?” Then add funds by debit card in the OpenFinance app, or move USDC you already hold; the agent handles the conversion to pUSD.

Example prompts to give Claude

  • “Show the 5 most traded Polymarket markets today with odds.”
  • “What are the Polymarket odds on the next Fed rate decision? Bet $10 on the favourite.”
  • “Who are the top Polymarket sports traders this week, and what is the #1 wallet holding?”
  • “Show my open Polymarket positions and P&L.”
  • “Redeem all my resolved Polymarket winnings.”
  • “On Hyperliquid outcomes, what Yes/No BTC price markets expire today?”

OpenFinance vs a local Polymarket MCP server

OpenFinanceLocal open-source servers (e.g. caiovicentino, oddsrail)
InstallOne hosted URLPython/npm install, config file
KeysOAuth or OpenFinance API keyPolygon private key in .env
Works in ClaudeYes, remote connectorClaude Desktop/Code only, local
Other marketsPerps, onchain stocks, forex, memecoins, HIP-4 outcomesPolymarket only
Paper modeNo (ask the agent to simulate a bet first)Some have dry-run

FAQ

Can Claude trade on Polymarket?
Yes, through OpenFinance. Claude can't reach Polymarket by itself. Add OpenFinance (https://api.openfinance.tech/agent/mcp) as a custom connector and Claude gets OpenFinance's Polymarket tools for odds, order books and orders.

Does OpenFinance support Polymarket?
Yes. OpenFinance exposes a Polymarket tool that searches markets, reads live odds and order books, shows leaderboards and any wallet's positions, and places, cancels and redeems orders. OpenFinance charges 0.05% on Polymarket trades.

What other prediction markets does OpenFinance support?
Hyperliquid HIP-4 outcome markets: Yes/No and price-bucket bets on prices, such as whether BTC will be above a set price at a set time. Kalshi is not supported.

Do I need KYC?
Not on OpenFinance. A debit-card onramp provider may ask for ID on its side. Polymarket restricts some countries, so check its terms for where you live.

How do I fund Polymarket bets through OpenFinance?
Polymarket settles in pUSD held in your Polymarket deposit wallet. Ask your agent for your Polymarket deposit wallet and balance, then add funds by debit card in the OpenFinance app or move USDC you already hold; the agent handles the conversion to pUSD.

Will the agent bet without asking?
OpenFinance's tools quote first and ask for your yes before moving money. Also set your agent's approval policy so every order asks you first.

Is my private key exposed?
No. OpenFinance uses a hosted wallet (Privy). You connect with OAuth or a revocable OpenFinance API key, not a private key in a config file.

Related

Sources: https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp, https://code.claude.com/docs/en/mcp

Prediction markets carry real risk of loss. Start small.