asian-etf-mcp
Exposes Asian ETF Tracker data (HK, A-Share, Taiwan, South Korea, US) as tools for LLM agents, enabling market discovery, performance analysis, and momentum tracking.
README
asian-etf-mcp
An MCP server that exposes thematic ETF data across 5 Asian markets + the US (Hong Kong, China A-Share, Taiwan, South Korea, US) as tools an LLM agent — or Claude Code / Claude Desktop — can call.
It fetches public OHLCV data from Yahoo Finance, computes industry returns /
momentum / rankings, and serves them through a small set of well-described tools.
Every result carries its source files and as_of date, so answers built on it
are auditable.
Tools
| tool | args | returns |
|---|---|---|
list_markets |
— | every market → industries → ETFs (call first to discover) |
get_etf_performance |
market, industry, start?, end? |
each ETF's total return vs the benchmark |
get_industry_momentum |
market, end_date? |
per-industry 5d / 21d / 63d / YTD return, absolute + relative |
get_industry_ranking |
market, start?, end? |
industries ranked by return |
get_etf_ohlcv |
code, market, start?, end? |
raw daily OHLCV bars |
market accepts hk / cn / tw / sk / us (or full names). Dates are ISO
strings like 2025-06-01.
Quick start
git clone https://github.com/ivyyy0601/etf-mcp.git
cd etf-mcp # (or the asian-etf-mcp directory)
python3.10+ -m venv .venv
./.venv/bin/pip install -r requirements.txt
# Build the data cache once (fetches ~55 symbols from Yahoo Finance, ~2-3 min)
./.venv/bin/python build_cache.py
That's it — the server is self-contained. The market/industry/ETF definitions
ship in configs/, and the data comes from public Yahoo Finance, so you don't
need any account, API key, or access to anyone's server.
Use with Claude Code
claude mcp add asian-etf -- /abs/path/to/.venv/bin/python /abs/path/to/src/server.py
Then ask, e.g. “use asian-etf to show which US sector has the strongest momentum.”
How it works
Two layers, kept separate on purpose:
src/server.py the "menu": thin FastMCP wrapper, one @mcp.tool() per function
│ calls
src/data_access.py the "kitchen": reads CSVs, computes returns/momentum/rankings
data_access.py has no MCP dependency — it returns plain Python objects and
can be imported by anything (tests, a notebook, a LangGraph agent). server.py
only adds the protocol + tool descriptions.
Caching (fast reads). build_cache.py precomputes every standard view into
cache.json once. Default-parameter tool calls are served from that cache
(instant); only custom date ranges are computed on the fly.
Refresh-on-use (always current, zero babysitting). When a tool is called and the cache is older than the latest trading day, the server rebuilds it first (fetches the latest data), then answers. So you never have to run a cron or open anything — it self-maintains.
Configuration
| env var | default | meaning |
|---|---|---|
ASIAN_ETF_ROOT |
./data |
where OHLCV CSVs are stored (generated) |
ASIAN_ETF_CONFIG_DIR |
./configs |
market/industry/ETF definitions (shipped) |
To add a market or ETF, edit the JSON files in configs/ — no code changes.
Keeping it fresh
- Anyone: nothing to do — refresh-on-use fetches the latest from Yahoo Finance
when needed. Or run
python build_cache.pywhenever you want. - Maintainer fast-path (optional): if you run the companion data collector on a
server,
sync_data.shcan pull its daily CSVs andbuild_cache.py --no-liverecomputes from them in seconds. Requires SSH access to that server; everyone else simply uses the live Yahoo Finance path.
Project layout
src/server.py MCP server (5 tools)
src/data_access.py Streamlit-free data + cache layer
build_cache.py refresh job: fetch + precompute → cache.json
configs/ market definitions (committed)
sync_data.sh maintainer fast-path (optional)
test_data_access.py smoke test for the data layer (no MCP needed)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。