JPStock Agent

by Manh TranGitHubUpdated Jun 15, 2026

MCP server & CLI for Japanese and Vietnamese stock market data – 111 AI tools for TSE/JPX/HOSE/HNX powered by yfinance, J-Quants, and vnstock

stocksjapanvietnam+2

Start using this server

Get Pro →

You'll need

  • JQUANTS_API_KEY

    API key for J-Quants (JPX official data, v2).

    Get it
  • JQUANTS_API_EMAIL

    Email for J-Quants authentication (v1).

    Get it
  • JQUANTS_API_PASSWORD

    Password for J-Quants authentication (v1).

    Get it
  • JQUANTS_REFRESH_TOKEN

    Refresh token for J-Quants (v1).

    Get it
  • VNSTOCK_API_KEY

    Optional API key for vnstock to increase rate limits.

    Get it

Connect JPStock Agent

Pick where you'll use it. We'll show the one step you need.

  1. Get access

    Pro · $9/mo. Create an account and pick a plan to get your API key.

    Get Pro
  2. Have your own credentials ready

    This server calls another service with your own account. Get the key below, then replace its placeholder in the setup.

  3. Add it to Claude

    Opens Claude with this server filled in as a custom connector. Click Add, then Connect and sign in with MCPize. Works on claude.ai, Claude Desktop and mobile.

    Unlocks once you have access above

    On Claude Team and Enterprise, only organization Owners can add custom connectors.

    Using Claude Code?

    terminal
    claude mcp add --transport http --scope user jpstock-agent https://jpstock-agent.mcpize.run --header "Authorization: Bearer YOUR_API_KEY" --header "X-MCP-Jquants-Api-Key: your_api_key" --header "X-MCP-Jquants-Api-Email: your@email.com" --header "X-MCP-Jquants-Api-Password: your_password" --header "X-MCP-Jquants-Refresh-Token: your_refresh_token" --header "X-MCP-Vnstock-Api-Key: your_key"
    Manual setup & config

    Paste this JSON config

    JSON
    {
      "mcpServers": {
        "jpstock-agent": {
          "type": "http",
          "url": "https://jpstock-agent.mcpize.run",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY",
            "X-MCP-Jquants-Api-Key": "your_api_key",
            "X-MCP-Jquants-Api-Email": "your@email.com",
            "X-MCP-Jquants-Api-Password": "your_password",
            "X-MCP-Jquants-Refresh-Token": "your_refresh_token",
            "X-MCP-Vnstock-Api-Key": "your_key"
          }
        }
      }
    }

    Config file: Claude Code: .mcp.json (project) or ~/.claude.json (user). claude.ai, Claude Desktop and mobile: use Add to Claude above.

    Subscribe to get your API key

Config files for Claude, Cursor and VS Code

Replace the YOUR_ placeholder values with your own API key or credentials.

Claude Code

Run in your terminal.

claude mcp add --transport http --scope user jpstock-agent https://jpstock-agent.mcpize.run --header "Authorization: Bearer YOUR_API_KEY" --header "X-MCP-Jquants-Api-Key: your_api_key" --header "X-MCP-Jquants-Api-Email: your@email.com" --header "X-MCP-Jquants-Api-Password: your_password" --header "X-MCP-Jquants-Refresh-Token: your_refresh_token" --header "X-MCP-Vnstock-Api-Key: your_key"

Cursor

Add to ~/.cursor/mcp.json, or .cursor/mcp.json in your project.

{
  "mcpServers": {
    "jpstock-agent": {
      "url": "https://jpstock-agent.mcpize.run",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY",
        "X-MCP-Jquants-Api-Key": "your_api_key",
        "X-MCP-Jquants-Api-Email": "your@email.com",
        "X-MCP-Jquants-Api-Password": "your_password",
        "X-MCP-Jquants-Refresh-Token": "your_refresh_token",
        "X-MCP-Vnstock-Api-Key": "your_key"
      }
    }
  }
}

VS Code

Run in your terminal, or add the server to .vscode/mcp.json.

code --add-mcp '{"name":"jpstock-agent","type":"http","url":"https://jpstock-agent.mcpize.run","headers":{"Authorization":"Bearer YOUR_API_KEY","X-MCP-Jquants-Api-Key":"your_api_key","X-MCP-Jquants-Api-Email":"your@email.com","X-MCP-Jquants-Api-Password":"your_password","X-MCP-Jquants-Refresh-Token":"your_refresh_token","X-MCP-Vnstock-Api-Key":"your_key"}}'

About JPStock Agent

Highlights

  • 111 MCP tools + 99 CLI commands for quotes, TA, backtesting, ML, options, portfolio, alerts, and more
  • 3 markets: Japan (TSE/JPX), Vietnam (HOSE/HNX/UPCOM), forex, crypto, world indices
  • 24 technical indicators: RSI, MACD, Bollinger Bands, Ichimoku, Supertrend, VWAP, Fibonacci
  • 20 candlestick patterns: Hammer, Engulfing, Morning Star
  • 12 backtesting strategies with Monte Carlo, walk-forward, cost model
  • Portfolio optimization: Monte Carlo, efficient frontier, VaR/CVaR
  • ML predictions: Random Forest/Gradient Boosting
  • Options: Black-Scholes Greeks, IV surface, max pain
  • Fundamental analysis: Altman Z-score, Piotroski F-score, DCF, DuPont
  • Auth + rate limiting with tiers (free/pro/enterprise)
  • Usage analytics and revenue estimation

Tools

No tools available.

Loading reviews...

Developer

MT
@fvn.manhtd