Skip to content
VS Code

Capital.com MCP Server for VS Code

io.github.simontarara62/capitalcom-mcp-server

Unofficial community MCP for the Capital.com Open API. Guarded two-phase trades; demo-first.

client:VS Code transport:stdio runtime:pypi

Install Capital.com MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cap-env-file",
      "description": "CAP_ENV_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-api-key",
      "description": "CAP_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-identifier",
      "description": "CAP_IDENTIFIER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-api-password",
      "description": "CAP_API_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-env",
      "description": "CAP_ENV",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-allow-trading",
      "description": "CAP_ALLOW_TRADING",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cap-allowed-epics",
      "description": "CAP_ALLOWED_EPICS",
      "password": true
    }
  ],
  "servers": {
    "capitalcom-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "capitalcom-mcp"
      ],
      "env": {
        "CAP_ENV_FILE": "${input:cap-env-file}",
        "CAP_API_KEY": "${input:cap-api-key}",
        "CAP_IDENTIFIER": "${input:cap-identifier}",
        "CAP_API_PASSWORD": "${input:cap-api-password}",
        "CAP_ENV": "${input:cap-env}",
        "CAP_ALLOW_TRADING": "${input:cap-allow-trading}",
        "CAP_ALLOWED_EPICS": "${input:cap-allowed-epics}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Capital.com MCP Server in other clients