MCP server for retrieving Japanese stock market data via J-Quants API v2
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"jquants-mcp": {
"command": "/path/to/jquants-mcp/.venv/bin/jquants-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP (Model Context Protocol) server that retrieves Japanese stock market data via J-Quants API v2.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'skills' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked skills against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
MCP server for QuickBooks Online — accounts, customers, invoices, bills, and reports.
Let AI agents create, discover, and track tokens across chains via Printr.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP server for Financial Modeling Prep API with 250+ financial data tools
MCP Security Weekly
Get CVE alerts and security updates for io.github.shigechika/jquants-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
English | 日本語
An MCP (Model Context Protocol) server that retrieves Japanese stock market data via J-Quants API v2.
User-facing documentation site: https://shigechika.github.io/jquants-mcp/ (also available in 日本語) — start there if you want a gentler 5-minute introduction. This README is the technical reference (config schema, all 43 tools with parameter tables, deployment).
Release history and changelog: GitHub Releases.
Deployment shapes (stdio / Docker Compose / self-hosted HTTP / Cloud Run) and how to pick between them: see docs/deploy/.
24-second loop showing real output from the Claude iPhone app calling jquants-mcp tools:
get_sector_performanceget_top_turnover_valueget_candlestick_dataget_fins_summaryget_comparison_chart_dataIndividual frames are in docs/screenshots/.
# Using uv (recommended)
uv pip install jquants-mcp
# Using pip
pip install jquants-mcp
git clone https://github.com/shigechika/jquants-mcp.git
cd jquants-mcp
uv sync --dev
Settings are loaded with the following priority (later wins):
~/.jquants-api/jquants-api.toml — API key only (J-Quants official config)~/.config/jquants-mcp/config.ini (user global)./config.ini (current directory)If you already use jquants-api-client, your API key is automatically read from ~/.jquants-api/jquants-api.toml. No extra configuration needed.
jquants-mcp login
Opens a browser to J-Quants (AWS Cognito, PKCE flow), and on success writes the API key to ~/.config/jquants-mcp/config.ini (mode 0600). Same auth backend as the official jquants-cli. Use jquants-mcp logout to clear the saved key.
MCP-specific settings (cache, client behavior):
[jquants]
# cache_dir = ~/.cache/jquants-mcp
# base_url = https://api.jquants.com/v2
[client]
# max_retries = 5
# retry_base_delay = 1.0
# max_pages = 10
[server]
# ssl_certfile = /path/to/fullchain.pem
# ssl_keyfile = /path/to/privkey.pem
# bearer_token = <secret>
# encryption_key = <random-secret> # enables per-user API key storage (
... [View full README on GitHub](https://github.com/shigechika/jquants-mcp#readme)