MCP Marketplace
BrowseHow It WorksFor CreatorsDocs
Sign inSign up
MCP Marketplace

The curated, security-first marketplace for AI tools.

Product

Browse ToolsSubmit a ToolDocumentationHow It WorksBlogFAQ

Legal

Terms of ServicePrivacy PolicyCommunity Guidelines

Connect

support@mcp-marketplace.ioTwitter / XDiscord

MCP Marketplace © 2026. All rights reserved.

Back to Browse

JPStock Agent MCP Server

by jpstock-agent
FinanceUse Caution4.5Local
Free

AI-friendly access to Japanese (TSE/JPX) and Vietnamese (HOSE/HNX) stock market data

About

JPStock Agent is a comprehensive MCP server providing 111 tools for Japanese and Vietnamese stock market analysis. It wraps yfinance, J-Quants API, and vnstock to deliver real-time prices, technical analysis (24 indicators, 29 screening strategies), candlestick pattern detection (20 patterns), backtesting (12 strategies with Monte Carlo simulation), portfolio optimization, sentiment analysis, fundamental analysis (Altman Z-score, Piotroski F-score, DCF valuation), ML predictions, options analytics, and unified stock reports. Supports auto-detection of market by symbol format.

Security Report

4.5
Use Caution4.5High Risk

Valid MCP server (0 strong, 2 medium validity signals). 5 known CVEs in dependencies (1 critical, 3 high severity) Package registry verified. Imported from the Official MCP Registry.

3 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "jpstock-agent": {
      "args": [
        "jpstock-agent"
      ],
      "command": "uvx"
    }
  }
}

Getting Started

Once installed, try these example prompts and explore these capabilities:

  • 1"Show me Toyota (7203) stock history for the last 30 days"
  • 2"Run technical analysis on VNM with RSI and MACD"
  • 3"Backtest SMA crossover strategy on 6758 (Sony)"
  • 4"Compare portfolio of 7203, 6758, 9984 with optimization"
  • 5"Screen Japanese stocks for golden cross signals"

Documentation

View on GitHub

From the project's GitHub README.

JPStock Agent

MCP server & CLI for Japanese and Vietnamese stock market data — 111 AI tools powered by yfinance, J-Quants API, and vnstock.

Integrate real-time stock data, technical analysis, backtesting, portfolio optimization, and ML predictions directly into Claude, Cursor, or any MCP-compatible AI assistant.

Highlights

  • 111 MCP tools + 99 CLI commands covering quotes, TA, backtesting, ML, options, portfolio, alerts, and more
  • 3 markets: Japan (TSE/JPX), Vietnam (HOSE/HNX/UPCOM), plus forex, crypto, world indices
  • 3 data sources: yfinance (free), J-Quants (official JPX), vnstock (Vietnamese)
  • 24 technical indicators: RSI, MACD, Bollinger Bands, Ichimoku, Supertrend, VWAP, Fibonacci, etc.
  • 20 candlestick patterns: Hammer, Engulfing, Morning Star, Three White Soldiers, etc.
  • 12 backtesting strategies with Monte Carlo simulation, walk-forward analysis, cost model
  • Portfolio optimization: Monte Carlo, efficient frontier, VaR/CVaR risk metrics
  • ML predictions: Random Forest / Gradient Boosting with 30+ features
  • Options analysis: Black-Scholes Greeks, IV surface, max pain, unusual activity
  • Fundamental analysis: Altman Z-score, Piotroski F-score, DCF valuation, DuPont decomposition
  • Custom strategy builder: 27 composable conditions with AND/OR logic
  • Auth + rate limiting: tier-based API keys (free/pro/enterprise) with ASGI middleware
  • Usage analytics: persistent SQLite tracking, revenue estimation

Quick Start

Install

pip install jpstock-agent

Or with ML support:

pip install "jpstock-agent[ml]"

CLI Usage

# Stock price history (Toyota)
jpstock-agent history 7203

# Vietnamese stock (ACB bank)
jpstock-agent history ACB

# Technical analysis
jpstock-agent ta-rsi 7203
jpstock-agent ta-macd 6758
jpstock-agent ta-analysis 7203      # Full multi-indicator BUY/SELL/HOLD

# Screen stocks
jpstock-agent ta-screen 7203,6758,9984 --strategy oversold

# Backtesting
jpstock-agent backtest 7203 --strategy sma_crossover
jpstock-agent backtest-compare 7203   # Compare all 12 strategies

# Quick report (price + TA + key ratios)
jpstock-agent report-quick 7203

# Full comprehensive report
jpstock-agent report 7203

# Portfolio analysis
jpstock-agent portfolio-analyze 7203,6758,9984
jpstock-agent portfolio-optimize 7203,6758,9984

# Market regime
jpstock-agent market-regime

# Output as JSON
jpstock-agent history 7203 --format json

MCP Server

# stdio mode (Claude Desktop / Cursor)
jpstock-agent serve

# SSE mode (web clients)
jpstock-agent serve --transport sse --port 8000

# HTTP mode
jpstock-agent serve --transport http --port 8000

Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "jpstock": {
      "command": "jpstock-agent",
      "args": ["serve"],
      "env": {
        "JPSTOCK_DEFAULT_SOURCE": "yfinance"
      }
    }
  }
}

Cursor Configuration

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "jpstock": {
      "command": "jpstock-agent",
      "args": ["serve"],
      "transport": "stdio",
      "env": {
        "JPSTOCK_DEFAULT_SOURCE": "yfinance"
      }
    }
  }
}

Tool Categories

CategoryToolsDescription
Quotes8OHLCV history, intraday, batch, order book
Company5Overview, news, events, officers, shareholders
Financials9Balance sheet, income, cash flow, ratios, health, growth, valuation, dividends, DuPont
Technical Analysis24RSI, MACD, Bollinger, Ichimoku, Supertrend, VWAP, Fibonacci, support/resistance, multi-timeframe
Candlestick3Scan, latest, screen (20 patterns)
Backtesting7Strategy, compare, optimize, walk-forward, Monte Carlo, advanced metrics, realistic
Portfolio4Analyze, optimize, risk, correlation
Sentiment4News, market, combined TA+sentiment, screen
ML4Predict, feature importance, signal, batch predict
Options6Chain, Greeks, IV surface, unusual activity, put/call ratio, max pain
Reports3Comprehensive, quick, comparison
Alerts6Check, price, TA, fundamental, watchlist, list conditions
Market5Sector performance, breadth, top movers, regime, heatmap
Strategy3Evaluate, screen, list conditions
Listings5All symbols, sectors, by market, by sector, VN listing
Forex/Crypto3FX history, crypto history, world index
Auth/Usage6Auth usage, tiers, daily stats, key stats, tool stats, revenue

Data Sources

yfinance (Default)

Free, no authentication required. Auto-detects Japanese tickers (4-digit codes like 7203 become 7203.T).

J-Quants API

Official JPX data. Register at jpx-jquants.com.

export JQUANTS_API_KEY="your_api_key"
export JPSTOCK_DEFAULT_SOURCE="jquants"

vnstock (Vietnamese Markets)

Vietnamese market data via vnstocks.com. Auto-detected for 2-5 uppercase letter symbols (ACB, VNM, VIC).

export VNSTOCK_API_KEY="your_key"  # Optional, increases rate limit 20→60 req/min

Authentication & Rate Limiting

For commercial deployment, enable API key authentication:

export JPSTOCK_AUTH_ENABLED=true
export JPSTOCK_MASTER_KEY="your_admin_key"  # Optional, bypasses all limits

API Key Management

# Generate keys
jpstock-agent key-generate --tier pro --owner "user@example.com"

# Validate
jpstock-agent key-validate jpsk_pro_xxxx

# List all keys
jpstock-agent key-list

# View tiers
jpstock-agent auth-tiers

Tiers

TierDaily LimitAccessPrice
Free50 callsBasic tools (quotes, history, FX, crypto)$0
Pro1,000 callsAll 111 tools$9/mo
Enterprise5,000 callsAll tools + priority support$19/mo

Usage Analytics

jpstock-agent usage-daily              # Today's usage summary
jpstock-agent usage-key jpsk_pro_xxxx  # Per-key breakdown
jpstock-agent usage-tools              # Per-tool stats
jpstock-agent usage-revenue            # MRR/ARR estimate
jpstock-agent usage-cleanup            # Prune old records

Environment Variables

VariableDefaultDescription
JPSTOCK_DEFAULT_SOURCEyfinanceDefault data source
JPSTOCK_MCP_TRANSPORTstdioTransport: stdio, sse, http
JPSTOCK_MCP_HOST0.0.0.0Server host
JPSTOCK_MCP_PORT8000Server port
JQUANTS_API_KEYJ-Quants API key (v2)
JQUANTS_API_EMAILJ-Quants email (v1)
JQUANTS_API_PASSWORDJ-Quants password (v1)
JQUANTS_REFRESH_TOKENJ-Quants refresh token (v1)
VNSTOCK_API_KEYvnstock API key (optional)
JPSTOCK_AUTH_ENABLEDfalseRequire API keys
JPSTOCK_AUTH_KEY_FILE~/.jpstock/keys.jsonKey store path
JPSTOCK_MASTER_KEYAdmin master key
JPSTOCK_RATE_LIMIT_ENABLEDtrueEnable rate limiting
JPSTOCK_BURST_PER_MINUTE30Max calls/key/minute

Docker

# Quick start
docker-compose up

# With auth enabled
docker-compose -f docker-compose.yml -f docker-compose.auth.yml up

The server starts on port 8000 with SSE transport.

Development

git clone https://github.com/fvn-manhtd/jp-stock-agent.git
cd jp-stock-agent
pip install -e ".[dev]"

# Lint
ruff check src/

# Test (858 tests)
pytest

# Test with coverage
pytest --cov=jpstock_agent --cov-report=term-missing

Common Ticker Codes

Japan (TSE)

CodeCompany
7203Toyota Motor
6758Sony Group
9984SoftBank Group
6861Keyence
8306Mitsubishi UFJ Financial
9432NTT
6501Hitachi

Vietnam (HOSE/HNX)

CodeCompany
ACBAsia Commercial Bank
VNMVinamilk
VICVingroup
FPTFPT Corporation
HPGHoa Phat Group

License

MIT

Reviews

No reviews yet

Be the first to review this server!

1

installs

New

no ratings yet

Tags

stocksjapanvietnamfinancetradingtechnical-analysisbacktestingportfoliomcpyfinance

Use Cases

  • Stock analysis
  • Technical analysis
  • Portfolio optimization
  • Backtesting
  • Financial research
  • Market screening

Links

Source CodeDocumentationPyPI Package

Details

Published April 3, 2026
Version 1.0.0
1 installs
Local Plugin

More Finance MCP Servers

Toleno

Free

by Toleno · Developer Tools

Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.

137
Stars
517
Installs
8.0
Security
4.8
Local

mcp-creator-python

Free

by mcp-marketplace · Developer Tools

Create, build, and publish Python MCP servers to PyPI — conversationally.

-
Stars
72
Installs
10.0
Security
4.6
Local

MarkItDown

Free

by Microsoft · Content & Media

Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption

156.1K
Stars
33
Installs
6.0
Security
5.0
Local

FinAgent

Free

by mcp-marketplace · Finance

Free stock data and market news for any MCP-compatible AI assistant.

-
Stars
20
Installs
10.0
Security
No ratings yet
Local

mcp-creator-typescript

Free

by mcp-marketplace · Developer Tools

Scaffold, build, and publish TypeScript MCP servers to npm — conversationally

-
Stars
18
Installs
10.0
Security
5.0
Local

MCP Marketplace

Free

by mcp-marketplace · Developer Tools

Search and install MCP servers from inside your AI client.

-
Stars
15
Installs
10.0
Security
5.0
Remote