Market data tools for
LangChain agents.

TickerAPI provides pre-computed financial context as MCP tools. LangChain's MCP adapter converts them into native LangChain tools — your agent gets market data with zero custom integration code.

Connect in one code block.

Use langchain-mcp-adapters to connect TickerAPI's remote MCP server to your LangChain agent. Every TickerAPI tool becomes a native LangChain tool automatically.

python
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_anthropic import ChatAnthropic

model = ChatAnthropic(model="claude-sonnet-4-20250514")

async with MultiServerMCPClient(
    {
        "tickerapi": {
            "url": "https://mcp.tickerapi.ai/",
            "transport": "streamable_http",
            "headers": {
                "Authorization": "Bearer tapi_your_api_key"
            },
        }
    }
) as client:
    agent = create_react_agent(model, client.get_tools())
    result = await agent.ainvoke(
        {"messages": "Is AAPL oversold right now?"}
    )

The MCP adapter discovers all available tools at connection time. No manual tool definitions needed.

Multi-step analysis.

Your agent can chain tools — scan for oversold stocks, then get a full summary, then compare against peers. Each call returns categorical data the model understands without extra prompting.

python
result = await agent.ainvoke({
    "messages": "Find oversold tech stocks, then give me a detailed summary of the top pick and compare it against its main competitor."
})
agent internals
# Agent calls: scan_oversold(sector="Technology")
# → Returns list of oversold tech tickers

# Agent calls: get_summary("NVDA")
# → Full categorical breakdown: trend, momentum, fundamentals

# Agent calls: compare_assets(tickers=["NVDA", "AMD"])
# → Side-by-side comparison across all dimensions

Track state changes effortlessly.

Most market data APIs return point-in-time snapshots. TickerAPI tracks state transitions — your agent sees what changed, not just what is.

python
result = await agent.ainvoke({
    "messages": "Check my watchlist for any state changes since yesterday."
})
json
{
  "ticker": "AAPL",
  "changes": [
    {
      "field": "rsi_zone",
      "from": "neutral",
      "to": "oversold"
    },
    {
      "field": "trend",
      "from": "uptrend",
      "to": "downtrend"
    }
  ]
}

What your agent sees.

Every tool returns categorical facts — not raw OHLCV data. Your agent can branch on "oversold" without needing to know what RSI > 70 means.

json
{
  "ticker": "NVDA",
  "trend": "strong_uptrend",
  "momentum": {
    "rsi_zone": "overbought",
    "macd_signal": "bullish"
  },
  "volatility": "high",
  "fundamentals": {
    "pe_zone": "above_historical_avg",
    "earnings_surprise": "positive"
  }
}

What your agent can call.

Every tool returns categorical, pre-computed data. Your agent gets facts it can reason about immediately.

get_summary

Full factual snapshot for a single asset — trend, momentum, fundamentals, support/resistance.

compare_assets

Side-by-side technical and fundamental comparison of two or more tickers.

list_assets

Browse all supported tickers with filtering and search.

list_sectors

List all valid sector values with asset counts for scan filtering.

get_watchlist

Live summary data for all tickers in your saved watchlist.

get_watchlist_changes

Field-level diffs for your watchlist since the last pipeline run.

add_to_watchlist

Add tickers to your persistent watchlist.

remove_from_watchlist

Remove tickers from your watchlist.

scan_oversold

Assets in confirmed oversold conditions across multiple indicators.

scan_overbought

Assets in overbought RSI conditions with severity rankings.

scan_breakouts

Momentum breakouts with volume confirmation.

scan_unusual_volume

Volume anomalies and accumulation patterns.

scan_valuation

Historically undervalued or overvalued assets based on fundamental metrics.

scan_insider_activity

Notable insider buying and selling activity.

get_account

Your plan tier, rate limits, and current API usage.

create_webhook

Register a webhook URL for watchlist change notifications.

list_webhooks

List your registered webhook URLs.

delete_webhook

Remove a registered webhook.

Built for how agents consume data.

Categorical data, less prompt engineering

Responses like "rsi_zone": "oversold" are already in a format the model understands. No need to explain what RSI > 70 means.

Compact responses

Tool-call context windows are limited. TickerAPI responses are a fraction of the tokens you'd need to pass raw OHLCV data.

Pre-computed daily

No infrastructure to maintain. No cron jobs, no indicator math, no data pipelines. TickerAPI handles computation and syncing.

Start building.

Try for free. No credit card required.