QuantPlay MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@QuantPlay MCP ServerShow me my current positions in my 'Main' account"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Zerodha MCP Server
Installation
Install from PyPI:
pip install quantplay-mcpOr 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_here3. 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-mcpOr use Python module execution:
python -m quantplay_mcpAvailable 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.txtSet up your
.envfile with your API keyRun 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables trading automation through Zerodha Kite Connect API, allowing users to place buy/sell orders and fetch holdings via MCP tools accessible to Claude Desktop and other MCP-compatible clients.Last updated
- Flicense-qualityDmaintenanceEnables natural language access to Zerodha trading accounts for retrieving portfolio holdings, positions, orders, funds, and real-time market prices. Supports secure authentication for Indian stock market trading operations via Claude, Cursor, and other MCP-compatible AI tools.Last updated1
- Flicense-qualityDmaintenanceProvides secure access to Trading 212 Public API through MCP, enabling Claude Desktop users to manage portfolios, execute trades, and analyze market data using natural language commands.Last updated
- Alicense-qualityAmaintenanceProvides 32 trading analysis tools for AI-powered market analysis, including real-time data, technical indicators, options Greeks, scanners, and Interactive Brokers portfolio management, all accessible via natural language in Claude Desktop.Last updated319MIT
Related MCP Connectors
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/quantplay/quantplay-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server