mcp-market-server
mcp-market-server
MCP-Server (Model Context Protocol), der Live-Kryptomarktdaten und eine Paper-Trading-Engine als standardisierte Tool-Aufrufe bereitstellt – so kann jeder Agent (Claude Code, benutzerdefinierte Multi-Agenten-Systeme) Bybit abfragen und simulierte Trades ausführen.
Entwickelt für die Bewerbung um ein AI/ML-Praktikum bei Tower Research Capital: demonstriert MCP-Integration, Tool-Aufrufe durch Agenten, Risikokontrollen und produktionsorientierten Python.
Architektur
┌─────────────┐ MCP stdio ┌──────────────────┐ REST ┌─────────┐
│ Claude Code │ ◄───────────────► │ FastMCP Server │ ─────────► │ Bybit │
│ / Agent │ │ (tools.py) │ public API │ v5 │
└─────────────┘ └────────┬─────────┘ └─────────┘
│
┌────────▼─────────┐
│ Paper Engine │
│ SQLite + Risk │
└──────────────────┘Related MCP server: Data Puller MCP Server
Bereitgestellte Tools
Tool | Beschreibung |
| OHLCV-Kerzen für jedes Symbol/Zeitintervall |
| L2-Orderbuch-Snapshot |
| Aktueller Kurs / 24h-Statistik |
| Market-/Limit-Order in die Paper-Engine (mit Risikokontrollen) |
| Offene Paper-Order stornieren |
| Offene Positionen + nicht realisierter P&L |
| Historie offener/ausgeführter Orders |
| Position zum Marktpreis schließen |
| Bargeldbestand, Eigenkapital, realisierter/nicht realisierter P&L |
Risikokontrollen (Paper-Engine)
Maximales Notional pro Order (
risk.max_order_notional_usd)Maximale offene Positionen (
risk.max_open_positions)Tagesverlust-Stopp – der Handel wird deaktiviert, sobald der Tages-Drawdown das Limit überschreitet
Jede Order und jede Entscheidung wird in eine Audit-Log-Tabelle geschrieben
Einrichtung
cd mcp-market-server
python -m venv .venv && .venv\Scripts\activate # Windows
pip install -e ".[dev]"
cp .env.example .env # optional overrides
pytest # run testsBei Claude Code registrieren
{
"mcpServers": {
"market": {
"command": "python",
"args": ["-m", "mcp_market_server.server"],
"cwd": "/absolute/path/to/mcp-market-server"
}
}
}Oder mit der CLI:
claude mcp add market -- python -m mcp_market_server.serverDemo-Prompts (nach der Registrierung)
Fetch the last 100 hourly candles for BTCUSDT and summarize the trend.
Place a paper long of 0.01 BTCUSDT with a 2% stop loss and take profit at 3%.
Show my account, then flatten everything if unrealized PnL is worse than -$50.Design-Hinweise
Nur öffentliche Endpunkte – keine API-Schlüssel, kein echtes Geld. Die Paper-Engine führt Markt-Orders zum Live-Ticker-Kurs aus, Limit-Orders bei Kursberührung.
SQLite für Orders/Positionen/Trades/Audit – Persistenz ohne Abhängigkeiten; spiegelt wider, wie Quant-Desks jede Entscheidung protokollieren.
Die Risikoschicht sitzt zwischen Tools und Engine – dasselbe Muster wie an einem echten Desk: Die Strategie schlägt vor, das Risikomanagement entscheidet.
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
- FlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI clients to access live crypto market data and AI-driven quantitative analysis, with structured outputs and full observability.
- FlicenseNot gradedqualityBmaintenanceEnables fetching live crypto market data from Binance, Bybit, and Hyperliquid via MCP tools, including klines, orderbook, funding rates, technical indicators, and market breadth for real-time analysis by LLMs.
- AlicenseAqualityAmaintenanceEnables AI agents to operate a local financial terminal, including market data, backtesting, paper portfolio management, and news digest, through safe, gated tools over MCP.6MIT
- AlicenseBqualityDmaintenanceEnables AI agents to trade crypto with paper money, access market data, view leaderboards, and manage trading bots via an MCP-compatible interface.16MIT
Related MCP Connectors
Agent-native crypto market-data over MCP+REST: order flow, whales, liquidations, calibrated scores
Crypto transaction firewall and risk tools for MCP agents.
MCP server exposing the Backtest360 engine API as tools for AI agents.
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/AADHITYA369/mcp-market-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server