J Quants MCP logo

J Quants MCP

Retrieves Japanese market, financial, earnings, derivatives, and investor data through J-Quants API v2 with SQLite caching.

Install J Quants MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "j-quants-mcp": {
      "command": "uvx",
      "args": [
        "jquants-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio j-quants-mcp -- uvx jquants-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx jquants-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

J-Quants MCP connects AI clients to the J-Quants API v2 for Japanese equities, financial statements, earnings, indices, derivatives, and market data. It runs as a stdio MCP server and maintains a two-tier SQLite cache for time-series and response data, with plan-aware rate limits and retries. Use it for stock lookups, OHLC history, financial metrics, earnings schedules, market signals, screeners, and bulk dataset downloads. A J-Quants API key on the Free plan or above is required.

Use cases

  • Look up Japanese companies by name and retrieve their stock codes
  • Compare historical OHLC, volume, market-cap, and index data
  • Screen upcoming earnings and review recently disclosed results
  • Analyze financial statements, dividends, investor flows, and short positions
  • Download large J-Quants datasets as CSV files

Key features

  • J-Quants API v2 access through MCP tools
  • Two-tier SQLite cache for time-series and response data
  • Plan-aware rate limiting, retries, and pagination
  • Japanese equities, financials, earnings, indices, and derivatives coverage
  • Bulk CSV file listing and signed download URLs
  • Local company-name search without an API call

Tools55

What J Quants MCP lets your agent do. Expand a tool for its parameters.

Verified live~15.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 82d

What it can do

From the 55 tools this server returned when we ran it; 55 declare their own safety hints.

Can delete or modify data · 3Handles credentials · 3Makes network requests · 48Read-only tools · 52
Network at startup2 connections
Files written at startup17

Observed 2026-10-28 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · jquants-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed55Callable tools this server registers over MCP.

How J Quants MCP works

What J-Quants MCP does

J-Quants MCP exposes Japanese stock-market and financial datasets as MCP tools. Its coverage includes listed-company master data, daily and minute equity bars, investor flows, earnings schedules and results, financial summaries, dividends, indices, futures, options, margin data, short-selling data, market calendars, and per-issue trading breakdowns.

The server also includes local search and operational tools. search_equities finds companies by partial Japanese or English name without making an API request. Cache tools report metadata or clear cached tables, while health_check reports API-key status, detected plan, cache integrity, and cache readiness.

How it works

The process communicates over stdio and does not open a network listener. An MCP client starts it as a subprocess, and the server reads credentials from its configuration or environment before calling J-Quants API v2. Authentication for local use is therefore controlled by the operating system and the client that launches the process.

A SQLite cache stores time-series data at row level and other responses with time-to-live caching. Requests can fall back to the API when data is not cached. The server handles pagination, retries selected failed requests with exponential backoff, applies plan-specific rate limits, and detects stock splits by monitoring adjusted factors.

Call health_check near the beginning of a session. Lazy cache initialization can make the first call take 10–60 seconds. cache_status reports row counts, database size, and the detected plan; it is not a market-data or screener query.

Setup and configuration

Python 3.11 or newer is required. Install the package with either uv pip install jquants-mcp or pip install jquants-mcp. A J-Quants API key from the Free, Light, Standard, or Premium plan is needed.

The key can be supplied through JQUANTS_API_KEY, the official ~/.jquants-api/jquants-api.toml file, or the server configuration. Running jquants-mcp login opens the J-Quants browser login flow and saves the resulting key in the user configuration; jquants-mcp logout removes it. Environment variables override config.ini and the official TOML file.

Configuration can also set the cache directory, API base URL, retry behavior, pagination limits, and an explicit plan override. MCP_ENCRYPTION_KEY enables encrypted per-user key storage for multi-user deployments, while a gateway is responsible for authentication in remote deployments. API keys registered through the multi-user tool travel through the MCP chain in plaintext and may be logged by a client or provider.

Tools and capabilities

  • Query equity master records, search companies by name, and retrieve daily or one-minute OHLC data.
  • Read quarterly financial summaries, detailed statements, dividend records, earnings calendars, scheduled earnings, and recently disclosed results.
  • Retrieve investor-type flows, margin balances and restrictions, sector short ratios, institutional short positions, market breakdowns, and trading calendars.
  • Query daily index, futures, and options data, including open interest and implied volatility where supported.
  • List available bulk CSV files and obtain short-lived signed download URLs.
  • Use plan-specific access: daily equity bars and basic financial summaries support all plans, while minute data, detailed statements, derivatives, and several market datasets require Light, Standard, or Premium access.

For bulk whole-market downloads, call get_bulk_list first and then pass its file key to get_bulk_download_url. The resulting URL expires after approximately five minutes.

Limitations and notes

Data retention and freshness depend on the J-Quants plan. Free-plan equity and financial data can be delayed by 12 weeks, and daily equity history is limited compared with higher plans. Minute bars cover up to two years and require the applicable minute or tick add-on.

Some tools are cache-only or cache-first. For example, earnings results are cache-only, while company-name search reads only the local equities-master cache and returns no matches until that cache has been populated. A date-only daily-bars request for all stocks can be slow; bulk downloads are intended for large datasets.

Plan restrictions are enforced when tools are called, even though tools remain registered for every plan. The morning-session equity endpoint is Premium-only, and detailed financial statements, futures, full options data, investor breakdowns, and several market indicators have higher plan requirements.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about J Quants MCP

J-Quants MCP is an MCP server that connects AI clients to J-Quants API v2 for Japanese market data. Its main tools retrieve equity prices, company masters, financial summaries, earnings, dividends, indices, derivatives, investor flows, margin data, short-selling data, market calendars, and bulk-download URLs through a local stdio process.

Install it with `uv pip install jquants-mcp` or `pip install jquants-mcp` on Python 3.11 or newer. Configure a J-Quants API key through the official TOML file, `JQUANTS_API_KEY`, or the server configuration, then register the stdio process with your MCP client.

Minute-level equity bars require the Light, Standard, or Premium plan plus the minute or tick data add-on. The data covers up to two years and is retrieved with `get_equities_bars_minute`.

Call `get_bulk_list` with the dataset endpoint, then pass its returned `Key` to `get_bulk_download_url`. Download the resulting signed URL promptly because it expires in approximately five minutes.

Yes. J-Quants MCP communicates over standard MCP stdio, so it can be used with Cursor when configured as a local MCP server. The process needs Python 3.11 or newer and access to a J-Quants API key.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewJ Quants MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/j-quants-mcp?style=directory)](https://allmcps.com/mcp/j-quants-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/j-quants-mcp"><img src="https://allmcps.com/api/badge/j-quants-mcp?style=directory" alt="J Quants MCP on AllMCPs" /></a>