Real-time data for LangChain agents
Give a LangChain agent live crypto, stock and market data as tools. Discovery, quotes and paid calls through one MCP server.
- Load every RealtimeAPI tool through langchain-mcp-adapters in three lines.
- `discover` returns at most five compact matches so the agent's context stays small.
- Pay per call with x402, or start on a free key that covers every feed.
Python
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({"realtimeapi": {"url": "https://mcp.realtimeapi.ai/mcp", "transport": "streamable_http"}})
tools = await client.get_tools() # discover, get_quote, call_feed, create_free_keyOr in Claude Code
claude mcp add --transport http realtimeapi https://mcp.realtimeapi.ai/mcpFeeds for this use case
CryptoDataAPI
Crypto market data · by CryptoDataAPI · Verified
Real-time crypto market intelligence: prices, derivatives, on-chain, regimes.
$0.008 to $0.03/ call 185 endpoints Excellent
StockMarketAPI
Stock market data · by StockMarketAPI · Verified
Stocks for agents: fundamentals, prices, filings, indices, news and FX.
$0.01 to $0.10/ call 46 endpoints Excellent
Frequently asked questions
Do agents built with this framework need an API key?
No. Agents can pay per request in USDC with x402, or start with a free key (1,000 calls a month across every feed).
What does a call cost?
Each endpoint has a provider-set price, $0.008 to $0.10 per call on these feeds. Only successful responses are billed.