microstructure-mcp
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., "@microstructure-mcpshow me the 4h liquidity zones and market structure for BTCUSDT"
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.
microstructure-mcp
Market-microstructure primitives for AI agents, over MCP.
LLM trading agents are usually fed raw candles and asked to "figure out the chart". This server does the deterministic part for them: it computes structured market-structure features — liquidity zones, fair value gaps, order blocks, break of structure — from live exchange data and exposes them as typed MCP tools. The agent reasons; the server measures.
Works out of the box with Claude Desktop, Claude Code, and any MCP-compatible client. Data source: Bybit v5 public API (no API key required).
Tools
Tool | What it returns |
| Clusters of equal highs/lows (buy-side / sell-side resting liquidity), touch count, swept status, distance from price |
| 3-candle FVGs with zone boundaries, size %, filled / mitigated status |
| Last opposite candle before an impulsive move, with mitigation status |
| Current trend read + recent BOS / CHoCH events |
| Everything above in a single call — the cheapest way to give an agent full context |
All tools take symbol (e.g. BTCUSDT), timeframe (1m–1w) and limit, plus per-tool sensitivity parameters. Output is compact JSON designed to be token-efficient in agent context windows.
Related MCP server: Enterprise Crypto MCP Gateway
Quick start
git clone https://github.com/rustamovppl/microstructure-mcp
cd microstructure-mcp
pip install -e .Add to Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"microstructure": {
"command": "microstructure-mcp"
}
}
}Then ask the agent something like: "Pull a 4h snapshot of BTCUSDT and describe where liquidity is resting relative to the current structure."
Example output
get_liquidity_zones("BTCUSDT", "4h") →
{
"symbol": "BTCUSDT",
"timeframe": "4h",
"last_close": 96420.5,
"zones": [
{
"side": "buy_side",
"level": 97180.0,
"touches": 3,
"swept": false,
"distance_pct": 0.7877
}
]
}Detection logic (brief)
Swings — symmetric fractal window (
lookbackcandles each side).Liquidity zones — swing highs/lows clustered within
tolerance_pct; ≥min_touchesequal highs = buy-side liquidity, equal lows = sell-side. Markedsweptonce traded through.FVG — classic 3-candle gap; tracked to
mitigated(price entered the zone) orfilled(traded through it).Order blocks — last opposite-direction candle preceding a move ≥
impulse_pctwithinimpulse_windowcandles.Structure — close beyond the last confirmed swing = BOS; against prevailing direction = CHoCH.
The logic is pure-Python, dependency-light, and unit-tested (pytest tests/).
Roadmap
Multi-timeframe confluence in
get_snapshotVolume-weighted liquidity scoring
Additional data sources (Binance, Hyperliquid)
SSE transport for hosted deployment
Backtest harness for detection-parameter tuning
Disclaimer
This server produces descriptive market-structure features, not trade signals. Nothing here is financial advice; markets can and will invalidate any structural read.
License
MIT
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
- AlicenseAqualityCmaintenanceLive market data for AI agents. 8 tools: real-time crypto prices, OHLCV candles, order books, market cap rankings, trending coins, technical analysis (RSI/SMA/z-score), asset comparison, and Fear & Greed index. Zero API keys, zero dependencies.Last updated81MIT
- Flicense-qualityBmaintenanceEnables MCP-compatible AI clients to access live crypto market data and AI-driven quantitative analysis, with structured outputs and full observability.Last updated

Bybit MCP Serverofficial
AlicenseBqualityCmaintenanceA production-ready MCP server for Bybit — 206 tools covering market data, trading, positions, account management, assets, and real-time WebSocket streams. Enables AI assistants to interact directly with the Bybit cryptocurrency exchange through natural language.Last updated10032823MIT- AlicenseAqualityBmaintenanceEnables AI agents to analyze price action using Smart Money Concepts (market structure, order blocks, fair value gaps, liquidity sweeps) for stocks, forex, gold, indices, and crypto without an API key.Last updated105MIT
Related MCP Connectors
Agent-native crypto market-data over MCP+REST: order flow, whales, liquidations, calibrated scores
Crypto market data for AI agents via x402. 16 tools: prices, funding, DeFi yields, arbitrage, TA.
Crypto perps data for AI agents: funding rates, open interest, liquidations, order book, CVD.
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/Rustamovppl/microstructure-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server