Skip to main content
Glama
open-market-terminal MCP server

open-market-terminal MCP server

by jalilsedna

open-market-terminal

A self-hosted market data terminal. It gives one REST API and one MCP server over many data providers. It covers futures, forex, metals, crypto, macro data, positioning and fundamentals. It is a data tool. It does not tell you what to trade.

Risk notice

This software is not financial advice. It is not an offer to buy or sell any instrument. Trading carries a risk of loss. You are responsible for your own decisions.

Execution is disarmed by default. This release holds no order execution code, so nothing here can place an order. The price streams and data calls only read data.

Data can be late, wrong or missing. The app marks a feature that has no data as "missing". It never shows a missing value as zero. Check a price at your broker before you act on it.

Related MCP server: polygon-mcp

What is in this release

The app mounts 11 routers. Each route is listed with its method.

  • api_tokens: list, create and revoke your API tokens (GET /api-tokens, POST /api-tokens, DELETE /api-tokens/{prefix}).

  • chart: the tracked symbols that have a chart symbol (GET /chart/symbols).

  • cot: Commitments of Traders search and positioning (GET /cot/search, GET /cot/positioning).

  • crypto_stream: status and switch of the crypto price stream (GET /crypto/stream/status, POST /crypto/stream/toggle).

  • data: the catalog of stored bars, and removal of stored bars (GET /data/catalog, DELETE /data/bad-bars, DELETE /data/{symbol}, DELETE /data/{symbol}/{interval}). This router gives no price bars.

  • history: the recorded snapshot series, a legacy read (GET /history).

  • macro: the macro dashboard and event calendar (GET /macro/dashboard, GET /macro/calendar).

  • oanda_candles: forex candles from OANDA (GET /oanda/candles). It needs OANDA_API_TOKEN. Without it, the route gives no candles.

  • oanda_stream: the OANDA forex price stream (GET /oanda/stream/status, GET /oanda/stream/latest, GET /oanda/stream/bars, POST /oanda/stream/toggle). It needs OANDA_API_TOKEN and OANDA_ACCOUNT_ID. Without them, the stream gives no price. GET /oanda/stream/bars returns the stored verified 1-minute bars of one symbol, plus the forming bar. It takes symbol, from_s and to_s, and the range is at most 7 days.

  • stream: the Twelve Data price stream (GET /stream/status, GET /stream/latest, POST /stream/toggle, PUT /stream/symbols).

  • tickstream_feed: the TickStream futures feed, stored bars and backfill (GET /tickstream/feed/status, GET /tickstream/feed/bars, POST /tickstream/feed/backfill, GET /tickstream/feed/backfill). It needs TICKSTREAM_API_KEY. The shared feed starts only when TICKSTREAM_FEED_ROOTS is set.

Price bars come from three routes. Use GET /oanda/candles for forex candles, GET /oanda/stream/bars for the stored forex minute bars, and GET /tickstream/feed/bars for futures.

The MCP server has 12 tools: cot_positioning, cot_search, data_catalog, fundamentals, instruments_add, instruments_list, instruments_remove, instruments_search, macro_dashboard, market_news, session_clock and spot_metals.

This release has no web dashboard build. The root page answers 503 and the API still works.

Install

You need Python 3.12.

  1. Clone the repository and open its folder.

  2. Make a virtual environment: python -m venv .venv.

  3. Activate it. On Windows run .venv\Scripts\activate. On Linux and macOS run source .venv/bin/activate.

  4. Install the pinned packages: pip install --require-hashes -r requirements.lock.

You can also build the Docker image from the Dockerfile. It listens on PORT, and the default is 8000.

Quick start

The app starts with no keys. Each feature without a key shows "missing".

  1. Copy .env.example to .env. The example sets ALLOW_KEYLESS=true, which is right for localhost only.

  2. Start the app: uvicorn app.main:app --port 8000.

  3. Check it: curl http://127.0.0.1:8000/health. The answer is HTTP 200 with "status":"ok".

  4. Read providers_configured in that answer. Each provider shows false until you add its key.

  5. Add a key to .env and restart the app. The provider then shows true.

To run the MCP server, use python mcp_server.py for stdio or python mcp_server.py --http for HTTP.

Never expose the app to a network with ALLOW_KEYLESS=true. Set AUTH_TOKEN and ADMIN_PASSWORD first.

Data sources

Each key, its plan and how to replace a provider are in docs/DATA-SOURCES.md.

Contributing and security

Licence

Copyright 2026 Jalil Sedna. This project uses the Apache-2.0 licence. See LICENSE and NOTICE. The licences of the dependencies are in THIRD-PARTY-LICENSES.md.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables quantitative trading analysis with 12 tools for real-time market data, 28+ technical indicators, FinBERT-powered news sentiment analysis, and automated trading signal generation for stocks and forex.
      1
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables querying real-time and historical financial market data for stocks, options, forex, and crypto, including quotes, trades, technical indicators, and reference data through a set of MCP tools.
      71
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables access to financial market data including EOD, intraday, fundamentals, news, and more via 75 read-only MCP tools.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables enterprise-grade OneTick tick data analytics with 18 tools for market data retrieval, metadata discovery, and analytics computations across 200+ global exchanges.
      MIT