tiingo-mcp

tiingo-mcp

An MCP server that wraps the Tiingo financial data API, enabling access to stocks, forex, crypto, news, fundamentals, and corporate actions through natural language.

Category
访问服务器

README

tiingo-mcp

PyPI Python 3.12+ License: MIT CI

An MCP server that wraps the Tiingo financial data API. Covers stocks, forex, crypto, news, fundamentals, and corporate actions across 17 tools, 4 resources, and 5 prompts.

Installation

uvx tiingo-mcp
# or
pip install tiingo-mcp

Requires Python 3.12+.

Configuration

export TIINGO_API_KEY="your-api-key-here"

Free API keys at api.tiingo.com. The free plan covers stocks, forex, crypto, news, and fundamentals. Dividends and splits endpoints need a Power or Business plan.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "tiingo": {
      "command": "uvx",
      "args": ["tiingo-mcp"],
      "env": {
        "TIINGO_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

claude mcp add tiingo -- uvx tiingo-mcp

Other Clients

Anything that speaks stdio:

TIINGO_API_KEY=your-key tiingo-mcp

Tools

Stocks (EOD)

Tool Description
get_stock_metadata Ticker info — name, exchange, description, date range
get_stock_prices Historical EOD OHLCV with adjusted prices

Real-Time & Intraday (IEX)

Tool Description
get_realtime_price Current IEX top-of-book quote
get_intraday_prices Intraday prices at 1min–1hour intervals

Forex

Tool Description
get_forex_quote Current top-of-book rate
get_forex_prices Historical forex prices

Crypto

Tool Description
get_crypto_quote Current prices (2,100+ tickers)
get_crypto_prices Historical crypto prices
get_crypto_metadata Ticker metadata and supported exchanges

News

Tool Description
get_news Search financial articles by ticker, tag, source, date

Fundamentals

Tool Description
get_fundamentals_definitions Metric definitions
get_financial_statements Income statements, balance sheets, cash flow
get_daily_fundamentals Daily metrics — market cap, P/E, EV/EBITDA
get_company_meta Sector, industry, location

Corporate Actions

Tool Description
get_dividends Dividend and distribution history *
get_dividend_yield Dividend yield history
get_splits Stock split history *

* Requires Power or Business plan

Resources

Static reference data exposed as browsable MCP resources. No API calls consumed.

Resource Description
tiingo://capabilities Server capabilities, asset classes, rate limits, plan restrictions
tiingo://fundamentals/definitions Curated reference of 20 key fundamental metrics
tiingo://guide/date-formats Date formats, resample frequencies, sort options
tiingo://guide/{asset_class} Usage guide per asset class (stocks, forex, crypto, news, fundamentals, corporate-actions)

Prompts

Reusable workflow templates that guide LLMs through multi-step financial analysis.

Prompt Arguments Description
analyze-stock ticker, include_news Comprehensive single-stock analysis
compare-stocks ticker1, ticker2, period Side-by-side stock comparison
crypto-market-overview tickers Crypto market snapshot with 7-day trends
earnings-report-analysis ticker, earnings_date Earnings report with price reaction and news
forex-pair-analysis pair, period Currency pair trend and volatility analysis

Parameters

Dates are YYYY-MM-DD format.

Parameter Used By Description
start_date Most tools Start of date range
end_date Most tools End of date range
resample_freq Price tools daily, weekly, monthly, annually, 1min, 5min, 1hour, etc.
tickers Crypto, news, meta Comma-separated list

Rate Limits

Plan Requests/Hour Requests/Day
Free 50 1,000
Power 5,000 50,000
Business Higher Higher

The server retries transient errors (2x) and returns JSON error objects for rate limits (429), auth failures (401), plan restrictions (403), and bad tickers (404).

Development

git clone https://github.com/wshobson/tiingo-mcp.git
cd tiingo-mcp
uv sync

# Unit tests (no API key needed)
uv run pytest tests/test_client.py tests/test_server.py -v

# Integration tests (needs TIINGO_API_KEY)
uv run pytest tests/test_integration.py -v -s

# All tests
uv run pytest -v

# Lint & format
uv run ruff check src/ tests/
uv run ruff format src/ tests/

License

MIT

Links

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选