Let an AI Agent Place Trades in Webull

Set up Webull local MCP, protect API credentials, verify a sandbox connection, and understand the limits of AI-assisted order tools.

Share
Let an AI Agent Place Trades in Webull
Webull Agentic Trading

Webull offers a local MCP server that makes supported account, market-data, and trading tools available to compatible AI clients. This is a software connection, not a trading strategy. Fact-checked November 2, 2026: the setup below updates the July recording, including approval timing, cloud capabilities, credentials, and testing.

An order tool being present does not mean your AI client permits autonomous real-money transactions. Client policies, account permissions, supported assets, authentication, and broker checks all apply. Do not bypass a client refusal or treat an authorization error as a reason to grant every permission.

Cloud vs. local MCP

The local server runs on your machine and can expose direct order tools. Webull’s cloud connector now also supports trade preparation on supported platforms, but requires separate confirmation in Webull before submission. The old cloud-versus-local table’s blanket “cloud cannot trade” description is outdated. See the current cloud tutorial and Webull’s expansion announcement.

Prerequisites

Use the official local MCP documentation and Webull’s maintained source repository. The documented setup uses Python 3.10 or newer, uvx, a compatible client, and credentials appropriate to the selected environment. Market data may require a separate entitlement.

The original $100 account was a demonstration amount, not a verified universal minimum for API eligibility or all supported trades. Funding, product approval, margin, minimum order sizes, and available buying power are separate checks. Use the test environment to learn the connection without placing a live trade.

Step-by-step setup

1. Apply for the appropriate API access

Webull’s individual application guide directs users through Developer Tools and OpenAPI Management. It currently estimates production review at one to two working days at the earliest, not as a maximum waiting time. Sandbox approval is described separately and typically completes within minutes.

Generate credentials only through Webull’s official account interface after reviewing the terms. Store the app key and secret securely. Do not paste them into AI chats or screenshots. A screenshot of a configuration file can expose credentials even when the question is only about formatting.

2. Install the documented tools

Follow the official uv installation instructions for your operating system. The documented server command uses uvx webull-openapi-mcp serve; the client launches the server. Inspect commands before running them. An AI-generated command is not automatically current or appropriate for your machine.

3. Configure the client and environment explicitly

Use the current example for your client, preserving existing entries in its MCP configuration. For Claude Desktop, Webull documents claude_desktop_config.json; other clients use different files or controls. Avoid duplicate mcpServers keys.

The documented environment values are lowercase uat for sandbox and prod for production. Set the environment explicitly and use matching credentials. Do not assume changing one label turns a live account into a simulator. A sandbox may differ from production in available data, products, fills, and limits.

Keep credentials in the protected configuration mechanism required by the server, not conversation text. If you ask for help with formatting, replace secret values with obvious placeholders before sharing the example. Restart the client when its instructions require it to reload configuration.

4. Authenticate through the documented flow

Webull documents uvx webull-openapi-mcp auth for the one-time authentication needed when two-factor authentication is enabled. Approve only the request you intentionally started. The earlier tutorial’s 15–30-minute delay and “faster alternate command” were anecdotal and are not a reliable troubleshooting procedure.

If authentication fails, read the actual error and the current documentation. Do not disable two-factor authentication or paste secrets into a chat to make a connection work.

5. Verify reads before any execution test

Ask for the account list, then compare the selected account’s balances and positions with the relevant Webull interface. Check the environment, account identifier, product, and data timestamp. A successful balance request verifies that query; it does not prove that every tool works or that an order is safe.

6. Preview and test the order workflow

The original recording used a live single-share trade. A low-priced share is still real capital, and copying that demonstration is not necessary to test basic connectivity.

Start with sandbox checks and supported preview tools. For any later live order, independently review the account, symbol, side, quantity, order type, price, session, and estimated exposure. Follow the AI client’s confirmation requirements. If the client cannot execute the order, review and submit it manually in Webull if you choose to proceed.

An acknowledgment, a pending order, and a completed fill are different states. Check the broker’s order status and execution details. Never retry an uncertain order blindly: first determine whether the original request created an order, to avoid duplicate exposure.

Practical checks

  • Begin with the tools needed for the task, keeping unnecessary trading and publishing actions disabled.
  • Redact credentials, account identifiers, and personal details before sharing diagnostics.
  • Verify market-data entitlements separately from order permissions.
  • Test failure handling, duplicate prevention, and shutdown behavior in a non-live environment.
  • Keep logs that let you reconcile intended actions with broker acknowledgments and fills.

Common mistakes

“Always allow everything” is not a useful test procedure. A quote error may involve data access, instrument mapping, or service availability; enabling order placement does not fix it. Likewise, restarting the client does not resolve every credential or account-permission error.

Prompts such as “never trade more than $100” express an intention. They are not equivalent to a server-enforced limit unless a supported control actually checks and rejects violations.

Troubleshooting

Classify the error before changing settings: installation, configuration parsing, authentication, account eligibility, data entitlement, client policy, or rejected order. Preserve the error message with sensitive fields removed. Check the maintained documentation and contact the appropriate provider when the cause remains unclear. Do not disable controls to bypass a refusal.

Supported safeguards and their limits

Webull documents controls including WEBULL_TOOLSETS, WEBULL_SYMBOL_WHITELIST, WEBULL_MAX_ORDER_NOTIONAL_USD, and WEBULL_MAX_ORDER_QUANTITY. Use the documented names and validate their behavior in the installed version. The original article’s generic “stock-only” configuration rule was not a verified setting.

An order-size ceiling is not a daily-loss ceiling or a total-exposure ceiling: multiple permitted orders can accumulate. A symbol whitelist does not prove appropriate sizing. Disabling trading tools also does not necessarily remove all writes; Webull notes that the market-data toolset includes watchlist and community publishing tools. Review the complete enabled tool list.

Frequently asked questions

Can the local server place orders? Its documented tools include order placement, subject to account, product, environment, and client restrictions.

Is $100 required or sufficient? The tutorial did not establish a universal $100 rule. Check current eligibility and the requirements for the specific product.

Does a backtest or sandbox test prove profitability? No. A backtest is a historical simulation, and a sandbox checks behavior under test conditions. Neither establishes future returns or actual live fill quality.

Can I run it unattended? Only a functioning, supported runtime can perform scheduled work, and client restrictions still apply. Ongoing monitoring and incident handling remain necessary.

What completion means

A useful first milestone is a verified test-environment connection with understood permissions and accurate account queries. Treat any decision to enable live execution as a separate step requiring tested controls and a clear understanding of the exposure.