Skip to main content

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)

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capital_com_mcp_server-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capital_com_mcp_server-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file capital_com_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: capital_com_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for capital_com_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7373d16e94ac6e3e66de1992f424a6703306630448544436a87fbb3683239c1
MD5 6e61b674572ddb57393124165501f0c5
BLAKE2b-256 c8bc0a97d3d4451d5cb958a3f8a1baf373e40bf4d9cdb0f42f35c290b03eb73a

See more details on using hashes here.

Provenance

The following attestation bundles were made for capital_com_mcp_server-0.1.0.tar.gz:

Publisher: python-publish.yml on syedair/mcp-servers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file capital_com_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for capital_com_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42ef5aa0bd5728e00933253f59fffe1298cbe7d98ac788cdaf2a028ae734ccb6
MD5 4f14128689e976305fc8b1744c372a2a
BLAKE2b-256 48e41f6f217ceb6d9405452d87c8e682b8e22755abd737b7991bec1d5d9a86ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for capital_com_mcp_server-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on syedair/mcp-servers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page