Can Claude be a crypto trading bot?
Short answer: Claude on its own can't trade. Connected to a trading MCP server such as OpenFinance, it can research markets and place trades you confirm in chat, through a custom connector in claude.ai or Claude Desktop. For an always-on bot, you build one with Claude Code and an OpenFinance API key, and Claude can build you a paper-trading system to test it on live prices first.
MCP URL: https://api.openfinance.tech/agent/mcp · HTTP streamable · OAuth or an x-api-key header · no KYC on OpenFinance itself · setup in under 60 seconds.
What "trading bot" means here
People mean two different things by a Claude trading bot:
| Trading assistant | Automated bot | |
|---|---|---|
| Where it runs | A chat in claude.ai, Claude Desktop or Claude Code | A program on your computer or a server |
| Who starts each trade | You, by asking in chat | The program, when its rules are met |
| Approval | The agent shows a summary of each order and waits for you to reply "confirm" | Your code decides; there is no chat to reply in |
| Auth | OAuth sign-in through the connector | Your OpenFinance API key |
| Good for | Research, one-off trades, learning | A fixed strategy you have already paper-traded |
Start with the assistant, then move a strategy into a bot once it has a track record on paper.
Set up Claude as a trading assistant (claude.ai or Desktop)
- In claude.ai or Claude Desktop go to Customize → Connectors → + Add → Add custom connector.
- Name it OpenFinance and paste
https://api.openfinance.tech/agent/mcp, click Add, then Connect and sign in. - In a chat, click +, open Connectors and turn OpenFinance on.
On Team or Enterprise plans an owner adds it under Organization settings → Connectors. Keep your app's tool approval on.
Set up Claude Code
Run this once in your terminal and sign in when prompted:
claude mcp add --transport http openfinance-tech https://api.openfinance.tech/agent/mcp
For a bot that runs without you, use an API key instead of OAuth. Get it at openfinance.tech (sidebar → External AI) and keep it in an environment variable, never in the chat or in your code.
Run a read-only test
Using OpenFinance, list your tools, then show my wallet addresses, balances
and any open Hyperliquid or Polymarket positions. Do not place any orders.
Claude should name tools such as hyperliquid, polymarket and get_wallet_addresses and show your balances. If it doesn't, check that the connector is on in that chat.
Confirm-to-trade example
Using OpenFinance, buy $20 of SOL with USDC on Solana through Jupiter.
Show me the order and wait for me to reply "confirm".
Claude asks Jupiter for a quote and shows you a summary, such as the amount in, the expected amount out and the price impact. You reply "confirm", Claude places the swap and reports the result. Check it with "Show my Solana holdings."
Build an automated bot safely
An always-on bot is code that you run. Claude Code can write it with you: a small program that connects to the OpenFinance MCP server with your API key in the x-api-key header, checks your rules on a schedule and places orders when they're met. Do it in this order:
- Paper-trade first. OpenFinance has no built-in paper mode, but Claude can build you a paper-trading system on live OpenFinance prices. Run the strategy on paper until you trust it.
- Keep a small balance. OpenFinance has no server-side spend caps yet. Only a slippage cap applies to Solana and Relay quotes. Fund the account with what you are willing to lose.
- Put limits in the code. Write a maximum order size, a maximum number of open positions and a daily stop into the bot itself, and log every order it sends.
- Keep the key secret. One API key per account, and it can trade with your balance. It can't send funds to anyone else's address, but store it in an environment variable or a secrets manager, and never commit it to a repo.
- Know how to stop it. Revoke or rotate the key on the External AI page in OpenFinance. That cuts off every app using it.
There are no read-only or trade-only keys yet, so the same key that reads prices can place orders.
Options people consider
These are the trading MCP servers people often compare for a Claude bot, described from each provider's own docs.
| Option | Where it runs | What it trades | Limits and safeguards |
|---|---|---|---|
| OpenFinance | Hosted MCP at api.openfinance.tech/agent/mcp, OAuth or API key | Hyperliquid perps and spot (including stock and FX perps), Polymarket, Solana tokens through Jupiter, cross-chain swaps through Relay | No server-side spend caps yet; slippage cap on Solana and Relay quotes; an agent or key can't send funds to anyone else's address |
| Coinbase for Agents | Hosted MCP at agents.coinbase.com/mcp, OAuth | Spot, derivatives and US equities on Coinbase; prediction markets "coming soon" | Optional server-side spend limits (Agent Controls); if you set none, orders aren't capped. No withdraw tool |
| Binance agentic MCP | MCP at agent.binance.com/mcp/agentic | Spot, margin, convert and futures on Binance | Runs in an isolated Agentic sub-account; per Binance, the agent asks first; no external withdrawals |
| Alpaca MCP | Runs locally (uvx or Docker) | Stocks, options and crypto; no perps or prediction markets listed | Paper trading by default; live trading needs an Alpaca brokerage account |
| CCXT MCP | Runs locally ("Nothing is hosted") | Exchanges supported by CCXT | Live trading is opt-in per account in config, and you must set a maxOrderValue (a number, or null for no cap) |
Coinbase and Binance offer server-side controls that OpenFinance doesn't have today, and CCXT makes you decide an order-value cap before live trading. If those matter more to you than market breadth, one of them may suit you better. OpenFinance covers Hyperliquid, Polymarket, Solana tokens and cross-chain swaps through one hosted connector.
Frequently asked questions
Can Claude be a crypto trading bot?
Not on its own. Connected to a trading MCP server such as OpenFinance, Claude can research and place trades you confirm in chat. For an always-on bot, build one with Claude Code and an OpenFinance API key.
Does Claude trade automatically once it's connected?
In a chat, no. The agent shows a summary of each order and waits for you to reply "confirm". A bot you build with Claude Code runs on its own rules, so paper-trade it first and keep a small balance.
Can Claude paper trade first?
Yes. OpenFinance has no built-in paper mode, but Claude can build you a paper-trading system that uses live OpenFinance prices, and you can run your strategy there before going live.
Are there spend limits on an OpenFinance bot?
No server-side spend caps yet. Only a slippage cap applies to Solana and Relay quotes. Write limits into your bot's code and keep a small balance.
How do I stop a Claude trading bot?
Stop the program, then revoke or rotate the API key on the External AI page in OpenFinance. That cuts off every app using the key.