Get started free
All integrations

Marketstack integration

Marketstack v2 market data: end-of-day and intraday price bars for stocks across seventy exchanges, split and dividend history, the ticker universe with per-company profiles, exchange, currency and time zone reference data, market index listings, live stock prices and ETF holdings. Every call is a GET authenticated with an access key carried in the query string.

17 toolsAPI keyAPI docs

Common Marketstack use cases

  • seeing what an ETF is exposed to
  • showing a live price in an alert
  • backtesting a strategy on daily bars
  • reporting how a benchmark moved today
  • valuing a portfolio at the last close
  • discovering which indices are available
  • valuing a transaction at its trade date
  • computing total return including dividends
  • labelling prices with their currency symbol
  • charting a trading day in fifteen-minute bars

What you can do with Marketstack

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Price bar, 5 operations

  • GETget_eod

    Returns historical end-of-day price bars for stocks.

  • GETget_eod_by_date

    Returns the end-of-day bar for a specific date.

  • GETget_eod_latest

    Returns the latest end-of-day bar for stocks.

  • GETget_intraday

    Returns intraday price bars for stocks.

  • GETget_intraday_latest

    Returns the latest intraday bar for stocks.

Exchange, 2 operations

  • GETget_exchange

    Returns the details of one stock exchange.

  • GETlist_exchanges

    Lists the stock exchanges Marketstack covers.

Index, 2 operations

  • GETget_index_info

    Returns the level and performance of a market index.

  • GETlist_indexes

    Lists the market indices Marketstack covers.

Ticker, 2 operations

  • GETget_ticker_info

    Returns the company profile for a ticker.

  • GETlist_tickers

    Lists the tickers Marketstack covers.

Currency, 1 operation

  • GETlist_currencies

    Lists the currencies Marketstack quotes prices in.

Dividend, 1 operation

  • GETget_dividends

    Returns the dividend history of tickers.

Etf holding, 1 operation

  • GETget_etf_holdings

    Returns the holdings of an exchange traded fund.

Quote, 1 operation

  • GETget_stock_price

    Returns the current price of a stock.

Split, 1 operation

  • GETget_splits

    Returns the stock split history of tickers.

Timezone, 1 operation

  • GETlist_timezones

    Lists the time zones of the covered exchanges.

Use Marketstack from Claude Code, Cursor or Codex

Connect Marketstack in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Marketstack operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Marketstack

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Marketstack once

    Add your Marketstack connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Marketstack integration FAQ

What can you do with the Marketstack integration?
LiveContext exposes 17 operations on Marketstack, covering price bar, exchange, index and ticker. Common uses include seeing what an ETF is exposed to, showing a live price in an alert and backtesting a strategy on daily bars.

Popular integrations

Browse the whole catalog