Skip to main content

Capital.com MCP Server

This is a Model Context Protocol (MCP) server that exposes the Capital.com trading API as tools that can be used by Amazon Q and other LLMs that support the MCP protocol.

What is MCP?

Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. MCP enables communication between the system and locally running MCP servers that provide additional tools and resources to extend LLM capabilities.

Setup

Using uv (recommended package manager)

  1. Install uv if you don't have it already:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Install the package:
uv pip install capital-com-mcp-server
  1. Configure your environment variables with your Capital.com credentials:
export CAPITAL_BASE_URL=https://demo-api-capital.backend-capital.com
export CAPITAL_API_KEY=your_api_key_here
export CAPITAL_PASSWORD=your_password_here
export CAPITAL_IDENTIFIER=your_email@example.com

Available Tools

The following tools are exposed by the MCP server:

  • authenticate: Authenticate with Capital.com API
  • get_account_info: Get account information
  • search_markets: Search for markets (e.g., EURUSD, AAPL)
  • get_prices: Get prices for a specific instrument
  • get_positions: Get all open positions
  • create_position: Create a new trading position
  • close_position: Close an open position
  • get_watchlists: Get all watchlists

Resources

Metadata

Release files for capital-com-mcp-server 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capital-com-mcp-server 0.1.3
File Size Uploaded
capital_com_mcp_server-0.1.3.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for capital-com-mcp-server 0.1.3
File Interpreter ABI Platform
capital_com_mcp_server-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / capital_com_mcp_server-0.1.3.tar.gz

Download URL capital_com_mcp_server-0.1.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d9cb3e98328e4a5538ef6cc0533604e5e8277f370285e8b1960f7e63943d106
BLAKE2b-256 checksum
How to use checksums
d4867f560f0d256dbfb54425cb496dcc63b247443db994f99f311143ff31dbd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2025.

Transparency log

Release files / capital_com_mcp_server-0.1.3-py3-none-any.whl

Download URL capital_com_mcp_server-0.1.3-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff35476e9be8f6db7799b0c799a8a86e3b51051e23ea76563874990255ebdaa9
BLAKE2b-256 checksum
How to use checksums
d14342c9b81c43fce0e7b6bdb7eaa065d0e09b3cc4b7eff3af9636112ffed206
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2025.

Transparency log

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page