Repository navigation
Bundle Settings
⚠️ Unofficial and educational. This project is not affiliated with, and not endorsed by, Capital.com. Nothing here is financial advice, and trading carries risk of loss — always start on a demo account.
This page is for you if you installed the Claude Desktop bundle (the
.mcpb file), typed your credentials into its form, and want to know what each
field does, or why a trade was refused. If you installed from the command
line instead, see Configuration Reference; the CAP_* name next to each
field below is the matching command-line setting.
-
uvmust be installed on your computer. Claude Desktop does not install it for you. Install it from the official page: https://docs.astral.sh/uv/getting-started/installation/. Then quit and reopen Claude Desktop. If the extension will not start, see Troubleshooting FAQ. -
The bundle uses only what you type in its form. No
.envfile and no other environment setting on your machine can change it. -
It keeps its own state (the daily order counter, trade previews, the
login session) in
~/.config/capital-mcp/bundle-state.json. This is a separate file from the one the command-line tool uses, so the two never share a counter. If~/.config/capital-mcpis a symbolic link, the bundle refuses it (see A problem in the form). - Each install has its own daily order budget. The bundle and a command-line install count their orders separately, so together they can place up to twice the daily limit. After an upgrade the bundle's counter starts again at 0. On a live account this is real money: keep that in mind if you use both.
- Previews and the daily counter survive a restart. A preview you made before a restart (or before you changed the form) can still be executed while it is valid, but the allowed markets, the daily limit and the size limit are checked again when it is executed, against the settings in force then.
In Claude Desktop, open Settings → Extensions, pick the Capital.com extension, and use its settings (Configure). Change a value, save, and restart the extension if Claude Desktop asks you to.
| Field | What it does | Default | Command-line setting |
|---|---|---|---|
| API key | Your Capital.com API key (Capital.com: Settings > API integrations). | required | CAP_API_KEY |
| Identifier | The email address you log in to Capital.com with. | required | CAP_IDENTIFIER |
| API key password | The custom password you chose when you created the API key. It is not your login password. | required | CAP_API_PASSWORD |
| Environment |
demo (practice account) or live (real money). Type exactly one of those two words. Start with demo. |
demo |
CAP_ENV |
| Allow trading | Off by default. Trading stays off until this is on and Allowed EPICs is set. | off | CAP_ALLOW_TRADING |
| Allowed EPICs | The markets trading may touch: a comma-separated list of EPICs (for example EURUSD,GOLD), or ALL. Empty means none. |
empty | CAP_ALLOWED_EPICS |
| Live streaming | Streams live prices and candles, watches price alerts and the portfolio (cap_stream_portfolio). Read-only. On by default; turn it off if you only want request-and-answer data. |
on | CAP_WS_ENABLED |
| Max orders per day | (advanced) The most orders this install may place per day. | see below | CAP_MAX_ORDERS_PER_DAY |
| Max order size | (advanced) The largest size of a single order. It sets the limit for positions and for working orders. | see below |
CAP_MAX_POSITION_SIZE and CAP_MAX_WORKING_ORDER_SIZE
|
| Max open positions | (advanced) The most positions you may hold open at once. | see below | CAP_MAX_OPEN_POSITIONS |
| Default account ID | (advanced) The Capital.com account to use when a tool is not given one. Empty keeps whichever account is currently active (emptying it does not switch back). | empty | CAP_DEFAULT_ACCOUNT_ID |
If you turn on Allow trading and leave Allowed EPICs empty, the extension starts with trading off, and every tool answers with the problem (see below). Fill in Allowed EPICs (or turn Allow trading off), save, and restart the extension.
The four advanced fields are safety limits. Leave them empty to get the default for your environment. If you type a value, your value always wins.
| Limit | Demo default | Live default |
|---|---|---|
| Orders per day | 200 | 20 |
| Open positions | 10 | 3 |
| Order size | 100000 | 1.0 |
⚠️ On a live account these limits protect real money. Raising one raises your real-money risk. Raise a live limit only if you understand what a larger size, or more orders, can cost you.
Good to know:
-
Sizes depend on the market. FX sizes are in units: for example the
EURUSD minimum is 100. Crypto and gold sizes are fractions (for example
0.01). - The daily counter resets at 00:00 UTC, not at your local midnight.
- Working orders do not count toward the open-position limit. Only open positions do.
- Limits are checked twice: when the preview is made, and again when it is executed. A preview that passed earlier is refused at execute if the daily limit has been reached since, or if you have narrowed the allowed markets or the size limit.
If a form value cannot be used, the extension still starts, but in a safe setup: trading off, no markets, streaming off, no limits read from the form. Every tool then answers with the problem, for example:
CONFIG_INVALID: Bundle setting "Max orders per day" must be a positive whole number. Change it in the extension's settings, then restart the extension.
The resources (cap://status, cap://risk-policy, cap://allowed-epics,
cap://market-cache/…) return {"error": "CONFIG_INVALID", "message": …}
instead of their data. Nothing is sent to Capital.com in this mode. The same
text is also written to the extension's log, which Claude Desktop keeps with
its other MCP server logs. The problems are:
Bundle setting "<Title>" must be a positive whole number.
A limit field holds something that is not a number, or is zero or negative.
The title in quotes names the field. Max orders per day and Max open
positions need a whole number such as 5. Max order size says
must be a positive number instead, because it may be a decimal such as 0.5.
Fix the value, or empty the field to get the default. The value you typed is
never repeated in the message.
"Allow trading" is on but "Allowed EPICs" is empty. Add the markets you want to trade, or ALL.
Allow trading is on, but no markets are allowed. Set Allowed EPICs, or turn
Allow trading off.
The bundle state directory … is a symbolic link; refusing it. /
Cannot create the bundle state directory …
~/.config/capital-mcp is a symbolic link, or cannot be created. Make it a
normal folder that you own.
These are the messages you can meet while trading. Numbers and the market name
change from case to case. Inside the bundle a message that names a setting
ends with a sentence naming the form field to change; on a live account, a
message about a limit, Allow trading or Allowed EPICs also ends with
This is a real-money account.
Daily order limit reached (20/20 today, resets at 00:00 UTC). The limit is set by CAP_MAX_ORDERS_PER_DAY.
You have placed as many orders today as the limit allows (here 20 of 20). In a
preview this is the check daily_order_limit; at execute it comes as
RISK_LIMIT. Wait until 00:00 UTC, or raise Max orders per day. The
bundle adds:
In the Claude Desktop extension, change "Max orders per day" in the extension's settings.
Size 100.0 exceeds the limit of 1.0 set by CAP_MAX_POSITION_SIZE.
The order is bigger than the largest size allowed. In a preview the check is
max_position_size (for a position) or max_working_order_size (for a
working order, then the message names CAP_MAX_WORKING_ORDER_SIZE); at
execute it comes as RISK_LIMIT. Send a smaller size, or raise Max order
size; the bundle adds
In the Claude Desktop extension, change "Max order size" in the extension's settings.
On live, the default of 1.0 is deliberately small. If the broker's minimum size
for the market is above your limit, the message adds that the market cannot be
traded under this limit.
RISK_LIMIT: Open position limit reached (3/3). Close a position or raise CAP_MAX_OPEN_POSITIONS.
You already hold as many open positions as allowed (here 3 of 3). Close one,
or raise Max open positions; the bundle adds
In the Claude Desktop extension, change "Max open positions" in the extension's settings.
TRADING_DISABLED: Trading is disabled. Set CAP_ALLOW_TRADING=true to enable.
(In a preview: the check trading_enabled, Trading is disabled (CAP_ALLOW_TRADING=false).)
Trading is off. Turn on Allow trading (and set Allowed EPICs); the
bundle adds
In the Claude Desktop extension, change "Allow trading" in the extension's settings.
Epic 'ETHUSD' not in allowlist (preview check epic_allowed) /
EPIC_NOT_ALLOWED: ETHUSD is not in the allowed markets (CAP_ALLOWED_EPICS). Create a new preview after changing the setting. (at execute)
The market is not in Allowed EPICs. Add it (or ALL); the bundle adds
In the Claude Desktop extension, change "Allowed EPICs" in the extension's settings.
EPICs are compared in upper case: btcusd is read as BTCUSD.
Market GOLD is not open for trading (status: CLOSED). (preview check market_open)
The market is closed now, so a market order cannot be placed. Try again when
it opens. A working order on a closed market passes this check
(…a working order can still be placed.).
PREVIEW_CHECKS_FAILED: Preview … did not pass its checks and cannot be executed: … Fix the cause and create a new preview.
You tried to execute a preview that failed one of its checks; the failed checks
are listed. Fix the cause and make a new preview.
PREVIEW_ACCOUNT_MISMATCH: Preview … was created on account A, but the active account is B. …
The preview was made on another account. Switch back to that account, or make
a new preview on this one.
INVALID_REQUEST: this server is pinned to account … by CAP_DEFAULT_ACCOUNT_ID; …
Default account ID is set, so switching to another account is refused (the
pin would undo it on the next call). Change or empty Default account ID;
the bundle adds
In the Claude Desktop extension, change "Default account ID" in the extension's settings.
WebSocket streaming is disabled. Set CAP_WS_ENABLED=true to enable.
A streaming tool was used while streaming is off. Turn on Live streaming
in the form; the bundle adds
In the Claude Desktop extension, change "Live streaming" in the extension's settings.
(Command line: CAP_WS_ENABLED=true.) In the bundle you never set
CAP_WS_ENABLED yourself.
For the full list of error codes see Error Reference; for how trading is gated, see Safety Model.
Unofficial · not affiliated with Capital.com · not financial advice · demo-first. See Safety Model.
Getting Started
Reference
- Tools Reference
- Resources Reference
- Prompts Reference
- Configuration Reference
- Error Reference
- API Stability
Guides
Contributing