Market Index MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Market Index MCP compare the S&P 500 and NASDAQ 100 performance for 2023"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Market Index MCP
S&P500、NASDAQ100、日経225などの市場指標データを自然言語で検索できるMCPサーバー
特徴
約100年分の市場データ(77,870件)を即座に検索
Claude Desktop と統合 - 自然言語で質問するだけ
初回起動時に自動セットアップ - 設定不要
ローカルキャッシュ - 高速クエリ(2-15ms)
Related MCP server: Yahoo Finance MCP Server
対応銘柄
シンボル | 名称 | データ期間 |
^GSPC | S&P 500 | 1927年〜 |
^NDX | NASDAQ 100 | 1985年〜 |
^DJI | Dow Jones | 1992年〜 |
^N225 | Nikkei 225 | 1965年〜 |
^FTSE | FTSE 100 | 1984年〜 |
^VIX | VIX (恐怖指数) | 1990年〜 |
インストール
前提条件
Python 3.10 以上
uv または pip
Claude Desktop
Claude Desktop 設定
uvx のパスを確認
which uvx
# 例: /opt/homebrew/bin/uvx設定ファイルを編集
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"market-index": {
"command": "/opt/homebrew/bin/uvx",
"args": [
"--from", "git+https://github.com/tamappe/market-index-mcp.git",
"market-index-mcp"
]
}
}
}重要:
commandにはuvxのフルパスを指定してください。相対パス"uvx"だと Claude Desktop から見つからない場合があります。
Claude Desktop を再起動
初回起動時にデータを自動ダウンロード(約10MB、30秒程度)します。
手動インストール(開発用)
git clone https://github.com/tamappe/market-index-mcp.git
cd market-index-mcp
pip install -e .
# 実行
market-index-mcp使用例
Claude Desktop で以下のような質問ができます:
「S&P500の2020年3月の最安値と最高値を教えて」
「2020年のS&P500とNASDAQ100を比較して」
「2008年のダウ平均ワースト下落日トップ5は?」
「日経225の2023年の年間リターンは?」
「コロナショック時のVIXはどこまで上がった?」
提供ツール
ツール名 | 説明 |
| 利用可能な銘柄一覧を取得 |
| 指定期間の価格範囲(最高値・最安値・平均)を取得 |
| 特定日の価格データを取得 |
| 複数銘柄のパフォーマンスを比較 |
| 指定年の下落日ワーストランキング |
| 指定年の上昇日ベストランキング |
| 年間サマリー(年初来リターンなど) |
トラブルシューティング
サーバーが起動しない(Server disconnected)
1. ログを確認
cat ~/Library/Logs/Claude/mcp-server-market-index.log | tail -502. uvx のパスを確認
which uvx設定ファイルの command にフルパスを指定しているか確認してください。
SSL証明書エラー
エラーメッセージ:
ssl.SSLCertVerificationError: certificate verify failed解決方法:
# Python 3.12 の場合
sudo /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m pip install --upgrade certifi
# または Install Certificates コマンドを実行
/Applications/Python\ 3.12/Install\ Certificates.command"Unexpected token" エラー
エラーメッセージ:
MCP market-index: Unexpected token '📊', "📊 初回起動: デ"... is not valid JSONこれは古いバージョンの問題です。最新版では修正済みです。
解決方法:
# uvx キャッシュをクリア
rm -rf ~/.cache/uv/archive-v0/
# Claude Desktop を再起動データダウンロードに失敗する
GitHub Releases からデータを取得できない場合:
ネットワーク接続を確認
https://github.com/tamappe/market-index-mcp/releases にアクセスできるか確認
プロキシ環境の場合は環境変数を設定
キャッシュを完全にクリアしたい
# uvx キャッシュ
rm -rf ~/.cache/uv/
# Claude Desktop を再起動技術詳細
アーキテクチャ
Database (データ管理)
↓ GitHub Actions (平日9時自動更新)
GitHub Releases (market_data.json)
↓ 初回起動時にダウンロード
SQLite (ローカルキャッシュ)
↓
MCP Server → Claude Desktopデータ更新
GitHub Actions で平日 JST 9:00 に自動更新
Supabase から最新データを取得し、GitHub Releases に反映
MCPサーバー再起動時に自動で最新版を取得
ライセンス
MIT
Available Tools
7 toolscompare_symbolsB
複数銘柄を比較
Args:
symbols: 銘柄コードのリスト (例: ["^GSPC", "^NDX"])
start_date: 開始日 (YYYY-MM-DD)
end_date: 終了日 (YYYY-MM-DD)
Inputs: symbols (required), start_date (required), end_date (required).
get_best_daysC
指定年の上昇日ベストランキング
Args:
symbol: 銘柄コード
year: 年 (例: 2020)
limit: 取得件数 (デフォルト5)
Inputs: symbol (required), year (required), limit.
get_price_on_dateB
特定日の価格データを取得
Args:
symbol: 銘柄コード
date: 日付 (YYYY-MM-DD)
Inputs: symbol (required), date (required).
get_price_rangeB
指定銘柄・期間の価格範囲を取得
Args:
symbol: 銘柄コード (例: ^GSPC, ^NDX)
start_date: 開始日 (YYYY-MM-DD)
end_date: 終了日 (YYYY-MM-DD)
Inputs: symbol (required), start_date (required), end_date (required).
get_worst_daysB
指定年の下落日ワーストランキング
Args:
symbol: 銘柄コード
year: 年 (例: 2020)
limit: 取得件数 (デフォルト5)
Inputs: symbol (required), year (required), limit.
get_yearly_summaryC
指定年の年間サマリー
Args:
symbol: 銘柄コード
year: 年 (例: 2020)
Inputs: symbol (required), year (required).
list_symbolsB
利用可能な銘柄一覧を取得
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no overlap: compare_symbols for multi-symbol comparison, get_best_days/worst_days for ranking, get_price_on_date/range for price data, get_yearly_summary for annual overview, and list_symbols for available symbols. The descriptions reinforce these distinct roles, eliminating any ambiguity.
All tool names follow a consistent verb_noun pattern with clear, descriptive naming (e.g., compare_symbols, get_price_on_date, list_symbols). The verbs are appropriately chosen for their actions (compare, get, list), and the nouns specify the target data, making the set highly predictable and readable.
With 7 tools, this server is well-scoped for market index analysis, covering key operations like data retrieval, comparison, ranking, and listing. Each tool earns its place without redundancy, and the count aligns with typical MCP server ranges (3-15 tools), avoiding bloat or thinness.
The tool set provides strong coverage for market index data analysis, including retrieval (price, summary), comparison, ranking, and listing. A minor gap exists in update or management operations (e.g., adding custom symbols), but this is reasonable for a read-only data server, and agents can work effectively with the provided tools.
Maintenance
Related MCP Connectors
9,900+ US equities, 64 years of prices, financials, technicals, and earnings. Ask in plain English.
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
Premium live data from S&P Global, FRED, OECD & more, plus web search, in one call.
Paid Global Financial Markets & Macro Intelligence API via x402. Unpaid tool calls return 402.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides tools for stock data retrieval, historical analysis, and market comparison using yfinance. It features robust guardrails to ensure secure interactions and blocks restricted content like investment advice.-
- AlicenseAqualityDmaintenanceProvides real-time stock quotes, market indices, historical data, and financial visualizations from Yahoo Finance without API keys, enabling users to analyze and visualize market data through Claude.31MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying Rice Business Stock Market Data Portal using natural language through Claude Desktop, allowing users to ask about financial ratios, stocks, and companies.MIT
- FlicenseNot gradedqualityCmaintenanceProvides Claude with free stock-market data including quotes, fundamentals, history, news, index top-10 rankings, market movers, and penny-stock screens using public sources like Yahoo Finance and Wikipedia. No API keys or subscriptions required.-