Capital.com MCP Server for Amazon Q and other LLMs
Project description
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)
- Install uv if you don't have it already:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Install the package:
uv pip install capital-com-mcp-server
- 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 APIget_account_info: Get account informationsearch_markets: Search for markets (e.g., EURUSD, AAPL)get_prices: Get prices for a specific instrumentget_positions: Get all open positionscreate_position: Create a new trading positionclose_position: Close an open positionget_watchlists: Get all watchlists
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capital_com_mcp_server-0.1.2.tar.gz.
File metadata
- Download URL: capital_com_mcp_server-0.1.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b2312a6a8e0168f57a2f92931b3ac25a8baf5982762aaba5ebb02fda7ff254
|
|
| MD5 |
4889f7ce4f4a2a29ec3d98611a09e05e
|
|
| BLAKE2b-256 |
285e8e86585474f394ce7ff3e08a3c2bc58aeeadea14275fff006ffb4f620266
|
Provenance
The following attestation bundles were made for capital_com_mcp_server-0.1.2.tar.gz:
Publisher:
python-publish.yml on syedair/mcp-servers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
capital_com_mcp_server-0.1.2.tar.gz -
Subject digest:
89b2312a6a8e0168f57a2f92931b3ac25a8baf5982762aaba5ebb02fda7ff254 - Sigstore transparency entry: 207272932
- Sigstore integration time:
-
Permalink:
syedair/mcp-servers@3e24290835d312cfdc4670b9176263d49603ebaa -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/syedair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3e24290835d312cfdc4670b9176263d49603ebaa -
Trigger Event:
release
-
Statement type:
File details
Details for the file capital_com_mcp_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: capital_com_mcp_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe532a8cf1a0624b8049a4754542c9b58e6bef7a0b9b8ad5f2fe7d0c765946ab
|
|
| MD5 |
9f90cdfdf0ab3faec7ff0b12da1a0011
|
|
| BLAKE2b-256 |
253c0accc7df14e124b19702b89d47059f85d923050cbbaf9ac081bee11b64da
|
Provenance
The following attestation bundles were made for capital_com_mcp_server-0.1.2-py3-none-any.whl:
Publisher:
python-publish.yml on syedair/mcp-servers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
capital_com_mcp_server-0.1.2-py3-none-any.whl -
Subject digest:
fe532a8cf1a0624b8049a4754542c9b58e6bef7a0b9b8ad5f2fe7d0c765946ab - Sigstore transparency entry: 207272933
- Sigstore integration time:
-
Permalink:
syedair/mcp-servers@3e24290835d312cfdc4670b9176263d49603ebaa -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/syedair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3e24290835d312cfdc4670b9176263d49603ebaa -
Trigger Event:
release
-
Statement type: