QuantPlay MCP Server
Provides access to the QuantPlay trading API for managing broker accounts, tracking positions, and analyzing holdings. It enables users to interact with their trading data through MCP-compatible clients like Claude Desktop.
README
QuantPlay MCP Server
An MCP (Model Context Protocol) server for the QuantPlay trading API, providing access to account data, positions, and holdings through AI assistants.
Features
- Account Management: Retrieve all broker accounts
- Position Tracking: Get positions by account nickname
- Holdings Analysis: Access holdings data by account nickname
- MCP Integration: Works with Claude Desktop and other MCP-compatible clients
Installation
Install from PyPI:
pip install quantplay-mcp
Or install from source:
git clone https://github.com/your-username/quantplay-mcp.git
cd quantplay-mcp
pip install -e .
Setup
1. Get Your QuantPlay API Key
- Visit QuantPlay and sign up for an account
- Navigate to your API settings to generate an API key
- Copy your API key for the next step
2. Environment Configuration
Create a .env file in your project directory:
QUANTPLAY_API_KEY=your_api_key_here
3. MCP Client Configuration
For Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"Quantplay": {
"command": "python",
"args": [
"-m",
"quantplay_mcp"
],
"env": {
"QUANTPLAY_API_KEY": "your_api_key_here"
}
}
}
}
Example with conda/miniconda:
{
"mcpServers": {
"Quantplay": {
"command": "/Users/YOUR_USERNAME/miniconda3/bin/python",
"args": [
"/Users/YOUR_USERNAME/miniconda3/lib/python3.12/site-packages/quantplay_mcp/server.py"
],
"env": {
"QUANTPLAY_API_KEY": "your_api_key_here"
}
}
}
}
For Other MCP Clients
Run the server directly:
quantplay-mcp
Or use Python module execution:
python -m quantplay_mcp
Available Tools
The MCP server provides three tools:
get_accounts()
- Description: Get all broker accounts for the user
- Parameters: None
- Returns: List of account dictionaries with account details
get_positions(nickname: str)
- Description: Get positions for a specific account
- Parameters:
nickname: The account nickname to query
- Returns: List of position dictionaries
get_holdings(nickname: str)
- Description: Get holdings for a specific account
- Parameters:
nickname: The account nickname to query
- Returns: List of holdings dictionaries
Usage Examples
Once configured, you can use these tools through your MCP client:
# Get all accounts
"Show me all my trading accounts"
# Get positions for a specific account
"What are my positions in my main account?"
# Get holdings for a specific account
"Show me the holdings in my retirement account"
Development
Requirements
- Python 3.11+
- QuantPlay API key
Local Development
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set up your
.envfile with your API key - Run the server:
python -m quantplay_mcp
Version
Current version: 0.1.21
Support
For issues and questions:
- Check the Issues page
- Visit QuantPlay Documentation for API details
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.