Bot12 MCP Server
Converts your bot12 trading bot into tools for Claude and other AI assistants, providing pre-built trading operations, account management, and reporting features.
README
Bot12 MCP Server
A complete, production-ready MCP (Model Context Protocol) server template that converts your bot12 trading bot into tools that Claude and other AI assistants can use.
Features
✅ 9 Pre-built Trading Tools - Account info, positions, trades, reporting
✅ Production Ready - Error handling, logging, security
✅ Pydantic Validation - Type-safe data structures
✅ Claude Integration - Works with Claude Desktop
✅ Comprehensive Docs - Multiple guides included
✅ MIT Licensed - Free to use and modify
Quick Start
1. Install Dependencies
pip install -r requirements.txt
2. Configure Environment
cp .env.example .env
# Edit .env with your bot12 credentials
3. Customize the Server
Edit bot12_mcp_template.py and replace the 4 TODO helper functions with your actual bot12 code.
4. Run the Server
python bot12_mcp_template.py
5. Test with MCP Inspector
npx @modelcontextprotocol/inspector python bot12_mcp_template.py
6. Add to Claude Desktop
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"bot12": {
"command": "python",
"args": ["/absolute/path/to/bot12_mcp_template.py"]
}
}
}
Tools Available
Account & Positions
get_account_balance()- Get balance and equityget_active_positions()- List open positionsget_market_price(symbol)- Get bid/ask prices
Trading Operations
execute_trade(symbol, quantity, direction, ...)- Place a tradeclose_position(position_id)- Close a position
Reporting
get_trade_history(limit, symbol)- View past tradesgenerate_performance_report(start_date, end_date)- Get statistics
System
get_system_status()- Check bot healthget_bot_logs(limit, level)- View recent logs
Documentation
- QUICK_START.md - 30-minute quick start guide
- BOT12_MCP_SETUP_GUIDE.md - Comprehensive 7-step setup
- INDEX.md - Complete file reference
Repository
- GitHub: https://github.com/mohamadasani494-pixel/bot12-mcp-server
- License: MIT
- Status: Production Ready
Next Steps
- Read QUICK_START.md for fast setup
- Customize bot12_mcp_template.py with your bot12 code
- Test with MCP Inspector
- Integrate with Claude Desktop
- Deploy!
For complete details, see BOT12_MCP_SETUP_GUIDE.md
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.
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.
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.
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.