Skip to main content
Glama
amir45400

tradefloor-mcp

by amir45400

tradefloor-mcp

Smart-money market structure as an MCP server. Ask your AI assistant what the structure of a market is, and get a real answer: trend, character shifts, liquidity sweeps, fair value gaps, order blocks and pullback zones.

This is the same engine that runs in production at TradeFloor, extracted from the production monorepo rather than reimplemented for show.

> What is ETH doing structurally on the 1h?

SHORT structure over 1000 candles: 4 character shift(s), 11 continuation
break(s), 2 break(s) since the last shift. Price is inside: discount, ote,
golden_retriever.

It does not phone home

The package makes no request to TradeFloor, ever. There is no key, no account, no telemetry, no usage ping. Read candles.py: the only outbound call in the whole package is to Hyperliquid's public endpoint, it happens only when you ask for a coin by name, and it leaves from your own machine and your own IP.

Analysing the bundled sample or your own candles touches the network zero times.

The package has exactly one dependency, the MCP SDK itself. The one HTTP call it can make uses the standard library, so there is no HTTP client in your install to audit or to trust.

Related MCP server: SMC-MCP

Install

claude mcp add tradefloor-structure -- uvx tradefloor-mcp

Or by hand, in any MCP client:

{
  "mcpServers": {
    "tradefloor-structure": {
      "command": "uvx",
      "args": ["tradefloor-mcp"]
    }
  }
}

Nothing else to configure. It works immediately.

The three tools

Each takes candles the same way: name a coin, or pass your own candles, or pass neither and get a worked example on the bundled ETH-15m data.

analyze_structure

Trend, plus every structural break with its time and price. Character shifts (ChoCh, called MSS internally) are separated from continuation breaks (BOS), and you get the last validated swing high and low, the potential levels a pullback is forming against, and the impulse peak of the current leg.

find_liquidity_sweeps

Stop-hunts. A sweep is a break whose candle first ran the liquidity resting past one or more prior swing levels before closing back inside. Each result names the sweeping candle and every level it took out, which is what tells an engineered break apart from a clean one.

find_blocks

Fair value gaps and order blocks on the current impulse leg, then again per Fibonacci pullback zone (discount, equilibrium, premium, golden pocket), plus which zones price is sitting in right now.

It explains itself, and it can be drawn

Every answer carries definitions for the terms it actually used. A model reading golden_retriever would otherwise guess, and that one it would guess wrong: it is this engine's name for the golden pocket. Standard terms travel too, so what reaches the person is the real meaning rather than a plausible one.

Ask for a chart and you get one. Pass include_candles: true and the response carries the candles themselves, on the same time scale as the levels and blocks, so your assistant can draw the structure it just described.

> show me ETH 4h structure and draw it

Bring your own candles

Any venue, any source. Compact or verbose keys both work:

[{"t": 1778300100000, "o": "2320.9", "h": "2321.2", "l": "2315.9", "c": "2316.7"}]
[{"time": 1778300100000, "open": 2320.9, "high": 2321.2, "low": 2315.9, "close": 2316.7}]

Candles are validated on the way in. A malformed high raises instead of being read as zero, because a zero high is not a degenerate answer, it is a wrong one.

Windows are capped at 20,000 candles. Structure does not get better past that, and an unbounded window means an unbounded reply into your context.

Symbols are checked before anything leaves your machine: perps are bare (BTC), tokenised equities are prefixed (xyz:AAPL), and anything else is refused here rather than sent to the venue to be refused there.

Verifying it is the real engine

The bundled sample is the exact fixture TradeFloor's own test suite pins its market structure against: 6000 ETH-15m candles, which the engine resolves to 50 structural events and 23 liquidity sweeps (11 bullish, 12 bearish). Those numbers are asserted both in this repository and upstream, so if they ever diverge, one of the two is broken and CI says so.

uv run pytest

Live signals and execution

Not here, and deliberately so. This package analyses; it never places an order, holds a key, or gives advice. There is no code path in it that reaches money.

TradeFloor runs a separate, account-scoped MCP server for that. It authorises through your browser, where you pick which wallet an agent may touch and what its spending ceilings are, and every write goes through server-side risk limits. An agent there cannot loosen a stop, and cannot open a position without one.

It is invitation-gated while it settles. If you want in: tradefloor.co.

About src/tradefloor_mcp/engine/

That directory is generated. It is extracted verbatim from the TradeFloor monorepo, where the same code is a money path, and a CI gate on both sides keeps the two byte-identical. Pull requests against it cannot be merged.

Everything else here is authored in this repository and contributions are welcome: the server, the tools, the docs, the examples.

Support

Best-effort on response times, and honest about it: this is maintained alongside a product, so an issue may sit for a while.

The tool contracts are a different matter. They follow semantic versioning strictly, so you can build on them: a breaking change to the three tools only ever ships in a major version.

Licence

Apache 2.0.


Market structure analysis is not investment advice, and past structure does not predict future price. Trading leveraged instruments can lose you more than you put in.

Available Tools

3 tools
analyze_structureA

Read market structure: trend, character shifts (ChoCh) and continuation breaks (BOS).

Returns the current trend, every structural break in the window with its time and price, the last validated swing high and low, the potential swing levels a pullback is forming against, and the impulse peak or trough of the current leg.

Give a coin (BTC, ETH, SOL; tokenised equities as xyz:AAPL) to fetch candles from Hyperliquid's public endpoint, or pass your own candles, or neither to see a worked example on bundled ETH-15m data.

Set include_candles=true when you intend to DRAW the result: the response then carries the candles themselves, on the same time scale as the levels.

ParametersJSON Schema
NameRequiredDescriptionDefault
coinNo
limitNo
candlesNo
intervalNo1h
include_candlesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden, and it does well: it states the read-only nature, the Hyperliquid public endpoint source, the fallback example behavior, and the effect of include_candles. It does not cover edge cases like conflicting coin and candles inputs, but the core behavior is clearly disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well structured: a one-line summary, a list of return contents, input-mode instructions, and a targeted note about drawing. Every sentence carries useful information, and the most important behavioral details are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no annotations, the description covers return values, data sources, input modes, and the include_candles use case, while the output schema handles return structure. It is slightly incomplete regarding sibling-tool routing and ambiguity when both coin and candles are supplied, but overall an agent can invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains coin formats and their effect, the candles alternative, the neither/default example, and include_candles semantics. Limit and interval are not explicitly described, but the default values are in the schema and the example hints at interval formatting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Read market structure' and immediately names the core outputs: trend, ChoCh, and BOS. This makes the tool's function unmistakable and semantically distinguishes it from siblings focused on liquidity sweeps and blocks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear conditional guidance for input modes: supply a coin, supply your own candles, or supply neither for an example. It also explains when to set include_candles=true. However, it never mentions when to choose this tool over find_liquidity_sweeps or find_blocks, so alternative-tool selection is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find_blocksB

Find fair value gaps, order blocks and the pullback zones holding them.

Reports blocks on the current impulse leg, then again per Fibonacci pullback zone (discount, equilibrium, premium, golden pocket), and says which zones price is sitting in right now.

Same input options as analyze_structure.

ParametersJSON Schema
NameRequiredDescriptionDefault
coinNo
limitNo
candlesNo
intervalNo1h
include_candlesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the disclosure burden. It explains the analysis sequence (current impulse leg, then per Fibonacci zone) and that the tool reports the zone price is currently in. This makes the read-only, analytical behavior concrete, even though it does not explicitly state side-effect status or data dependencies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with the core purpose front-loaded, followed by useful behavioral detail and a cross-reference. No filler. The cross-reference is terse but earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema presumably covers return values, and the behavior is well described. However, with 5 optional parameters, no annotations, and no selection guidance versus siblings, the description leaves the agent to infer input constraints and when this tool is the right choice.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description provides no explanation of coin, limit, candles, interval, or include_candles. The only parameter-related hint is 'Same input options as analyze_structure,' which defers to another tool rather than clarifying defaults, constraints, or formats.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names specific objects (fair value gaps, order blocks, pullback zones) and a concrete reporting behavior (impulse leg, Fibonacci zones, current price zone). It does not explicitly contrast itself with analyze_structure or find_liquidity_sweeps, but the resource and scope are clear enough for an agent to tell it apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when block locations within Fibonacci zones are needed, but it does not state when to prefer this tool over its siblings or when not to use it. The note 'Same input options as analyze_structure' addresses input compatibility, not selection criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find_liquidity_sweepsA

Find stop-hunts: breaks that first ran the liquidity resting past a level.

A sweep is a structural break whose candle pushed through one or more prior swing levels before closing back inside. Each result names the sweeping candle and every level it took out, which is what separates an engineered break from a clean one.

Same input options as analyze_structure.

ParametersJSON Schema
NameRequiredDescriptionDefault
coinNo
limitNo
candlesNo
intervalNo1h
include_candlesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does a solid job: it explains the exact behavioral condition for a sweep and what the result contains (the sweeping candle and every level it took out). It does not explicitly state that the tool is read-only or has no side effects, but the analytical nature and result-focused wording make the behavior reasonably transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the core concept, followed by a clear definition and result behavior. It avoids unnecessary filler, though the first sentence's phrasing is slightly awkward. Overall, every sentence earns its place and the structure is easy for an agent to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema exists, so return values do not need to be fully explained, and the description gives the key concept and result contents. However, because there are no annotations, no explicit usage exclusions, and no real parameter semantics, the description leaves meaningful gaps for a 5-parameter tool with two siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are 5 parameters, so the description needed to compensate. Instead it only says 'Same input options as analyze_structure,' which points elsewhere rather than explaining coin, limit, candles, interval, or include_candles. This is minimal added semantic value over the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the action ('Find stop-hunts') and defines the resource precisely: a sweep is a structural break that pushes through prior swing levels and closes back inside. It also distinguishes the tool's result by stating each result names the sweeping candle and every level taken out, which makes it distinct from generic structure analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool (when you need to identify liquidity sweeps/stop-hunts) and references 'Same input options as analyze_structure,' but it does not explicitly state when to prefer this over find_blocks or analyze_structure. There are no exclusions or alternative routing conditions, so the usage guidance is mostly implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.0
    • First observedanalyze_structure
    • First observedfind_blocks
    • First observedfind_liquidity_sweeps

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct analytical concern: analyze_structure provides the overall structural read, find_liquidity_sweeps isolates stop-hunts, and find_blocks identifies FVGs/order blocks. There is no meaningful overlap that would cause an agent to select the wrong tool, especially with explicit output descriptions.

Naming Consistency5/5

All tool names follow a consistent [action]_[object] snake_case pattern: analyze_structure, find_liquidity_sweeps, find_blocks. The verbs are sensible and the objects clearly describe the returned market-structure concept.

Tool Count5/5

Three tools is on the lower end but not thin for a focused market-structure analysis server; each tool covers a distinct pillar (structure, liquidity sweeps, blocks). The count is well-scoped for the stated purpose and no tool feels redundant.

Completeness4/5

The set covers the core SMC analysis workflow: overall structure, sweeps, and blocks, with consistent input options and candle drawing support. It is slightly incomplete for broader tradefloor workflows—there is no batch/multi-coin scan or order-flow/volume tool—but agents can work around that for single-symbol structural analysis.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    10
    5
    2
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Computes structured market-structure features (liquidity zones, fair value gaps, order blocks, break of structure) from live Bybit data and exposes them as typed MCP tools for AI agents.
    5
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    Enables AI to analyze trade quality by fetching real price action around fills, generating annotated candlestick charts, and computing metrics like MAE/MFE, R-multiple, and capture efficiency.
    4
    -

Latest Blog Posts

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/amir45400/tradefloor-mcp-main'

If you have feedback or need assistance with the MCP directory API, please join our Discord server