Labsco
hoqqun logo

stooq-mcp

โ˜… 4

from hoqqun

MCP server to fetch stock prices from stooq.com (Rust)

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

stooq-mcp

ๆ—ฅๆœฌ่ชž

A Model Context Protocol (MCP) server written in Rust that fetches stock price data from stooq.com.

Demo

https://github.com/user-attachments/assets/63b55175-80c3-42aa-a28a-bdb21c66169e

Features

  • Latest stock prices - Get real-time stock price data
  • Historical data - Retrieve historical stock data with custom date ranges
  • Multi-market support - Access stocks from 5 major markets

Supported Markets

Market CodeCountry
jpJapan
usUnited States
ukUnited Kingdom
hkHong Kong
deGermany

Tools

get_stock_price

Fetches stock price data from stooq.com.

Parameters

ParameterTypeRequiredDescription
tickerstringโœ…Stock ticker symbol (e.g., "7203", "AAPL")
marketstringโœ…Market code: jp, us, uk, hk, de
start_datestringโŒStart date in YYYYMMDD format (e.g., "20240101")
end_datestringโŒEnd date in YYYYMMDD format (e.g., "20241231")

Examples

Get latest stock price

Toyota Motor (Japan):

Get the current stock price for Toyota (7203) in Japan market.

Apple (US):

Get the latest AAPL stock price from US market.

Get historical data

Sony (Japan) - 2024 full year:

Get Sony (6758) stock price history from January 1, 2024 to December 31, 2024.

Response format

Latest data:

Symbol,Date,Time,Open,High,Low,Close,Volume
7203.JP,2024-12-27,16:00:00,2500,2520,2480,2510,1000000

Historical data:

Date,Open,High,Low,Close,Volume
2024-01-04,2450,2480,2440,2470,800000
2024-01-05,2470,2490,2460,2485,750000
...

Tech Stack

  • Rust - Systems programming language
  • rmcp - MCP server implementation
  • reqwest - HTTP client
  • tokio - Async runtime