TradeInsight MCP Server

US stock market data server with OHLCV price history, top movers ranked by volume/moving-average/price-change, and company ticker search.

Documentation

TradeInsight MCP Server

A Model Context Protocol server that gives AI assistants real-time access to stock market data via the TradeInsight API.

Endpoint: https://api.tradeinsight.info/mcp
Protocol: Streamable HTTP (JSON-RPC 2.0)

Tools

get_price_history

Get daily OHLCV price history for a stock ticker.

ParameterTypeRequiredDescription
tickerstringyesTicker symbol, e.g. "AAPL"
start_datestringnoStart date YYYY-MM-DD (default: 1 year ago)
end_datestringnoEnd date YYYY-MM-DD (default: today)
limitintegernoMax rows 1–1000 (default 365)
adjustedbooleannoUse split/dividend-adjusted prices (default true)

get_top_movers

Get tickers ranked by volume, 20-day moving average, or price change.

ParameterTypeRequiredDescription
sort_bystringyes"volume", "moving_average", or "price_change"
limitintegernoMax results 1–50 (default 10)

search_ticker

Search for stock tickers by company name substring.

ParameterTypeRequiredDescription
querystringyesCompany name substring, e.g. "apple"
limitintegernoMax results 1–50 (default 20)

Setup

Get an API key

Sign up at tradeinsight.info to get your API key.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "tradeinsight": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://api.tradeinsight.info/mcp",
        "--header",
        "Authorization: Bearer YOUR_API_KEY"
      ]
    }
  }
}

Claude Code

claude mcp add tradeinsight \
  --transport http \
  --url https://api.tradeinsight.info/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor / other MCP clients

Use transport streamable-http, URL https://api.tradeinsight.info/mcp, and set the Authorization: Bearer <key> header.

Authentication

All requests require a Bearer token in the Authorization header:

Authorization: Bearer ti_xxxxxxxxxxxx

Requests without a valid key return JSON-RPC error -32001 (Unauthorized).

Rate limits

Rate limits are enforced per API key and tier. When exceeded the server returns JSON-RPC error -32029 with a retry_after field (seconds).

Error codes

CodeMeaning
-32700Parse error — malformed JSON body
-32602Invalid params — missing required field or bad value
-32601Method not found — unknown method or tool name
-32001Unauthorized — missing or invalid API key
-32029Rate limited — includes data.retry_after (seconds)
-32002No data — ticker not found
-32603Internal error

Python client

For programmatic access without MCP, use the tidata Python library:

from tidata.tifinance import Ticker

t = Ticker("AAPL")
df = t.history(period="1y")
print(df.head())