A Model Context Protocol (MCP) server written in Rust that fetches stock price data from stooq.com. - 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 - Rust 1.75+ This will install to ~/.stooq-mcp/. To customize: The install script will: 1. Build the project 2
Add this skill
npx mdskills install hoqqun/stooq-mcpWell-documented MCP server providing multi-market stock data with clear setup and tool descriptions
1# stooq-mcp23[日本語](README.ja.md)45A Model Context Protocol (MCP) server written in Rust that fetches stock price data from [stooq.com](https://stooq.com).67## Demo89https://github.com/user-attachments/assets/63b55175-80c3-42aa-a28a-bdb21c66169e1011## Features1213- **Latest stock prices** - Get real-time stock price data14- **Historical data** - Retrieve historical stock data with custom date ranges15- **Multi-market support** - Access stocks from 5 major markets1617## Supported Markets1819| Market Code | Country |20|-------------|---------|21| `jp` | Japan |22| `us` | United States |23| `uk` | United Kingdom |24| `hk` | Hong Kong |25| `de` | Germany |2627## Installation2829### Prerequisites3031- Rust 1.75+32- Cargo3334### One-liner Install3536```bash37curl -fsSL https://raw.githubusercontent.com/hoqqun/stooq-mcp/main/install.sh | bash38```3940This will install to `~/.stooq-mcp/`. To customize:4142```bash43STOOQ_MCP_DIR=/your/path curl -fsSL https://raw.githubusercontent.com/hoqqun/stooq-mcp/main/install.sh | bash44```4546### Quick Install4748```bash49git clone https://github.com/hoqqun/stooq-mcp.git50cd stooq-mcp51./install.sh52```5354The install script will:551. Build the project562. Register with Claude Code and/or Claude Desktop5758### Manual Build5960```bash61cargo build --release62```6364The binary will be located at `./target/release/stooq-mcp`.6566## Usage6768### Claude Code6970Register the MCP server with Claude Code:7172```bash73claude mcp add stooq-mcp /path/to/stooq-mcp/target/release/stooq-mcp74```7576### Claude Desktop7778Add the following to your Claude Desktop configuration file:7980**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`81**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`82**Linux**: `~/.config/Claude/claude_desktop_config.json`8384```json85{86 "mcpServers": {87 "stooq-mcp": {88 "command": "/path/to/stooq-mcp/target/release/stooq-mcp"89 }90 }91}92```9394## Tools9596### `get_stock_price`9798Fetches stock price data from stooq.com.99100#### Parameters101102| Parameter | Type | Required | Description |103|-----------|------|----------|-------------|104| `ticker` | string | ✅ | Stock ticker symbol (e.g., `"7203"`, `"AAPL"`) |105| `market` | string | ✅ | Market code: `jp`, `us`, `uk`, `hk`, `de` |106| `start_date` | string | ❌ | Start date in `YYYYMMDD` format (e.g., `"20240101"`) |107| `end_date` | string | ❌ | End date in `YYYYMMDD` format (e.g., `"20241231"`) |108109## Examples110111### Get latest stock price112113**Toyota Motor (Japan):**114```115Get the current stock price for Toyota (7203) in Japan market.116```117118**Apple (US):**119```120Get the latest AAPL stock price from US market.121```122123### Get historical data124125**Sony (Japan) - 2024 full year:**126```127Get Sony (6758) stock price history from January 1, 2024 to December 31, 2024.128```129130### Response format131132**Latest data:**133```csv134Symbol,Date,Time,Open,High,Low,Close,Volume1357203.JP,2024-12-27,16:00:00,2500,2520,2480,2510,1000000136```137138**Historical data:**139```csv140Date,Open,High,Low,Close,Volume1412024-01-04,2450,2480,2440,2470,8000001422024-01-05,2470,2490,2460,2485,750000143...144```145146## Tech Stack147148- **Rust** - Systems programming language149- **[rmcp](https://crates.io/crates/rmcp)** - MCP server implementation150- **[reqwest](https://crates.io/crates/reqwest)** - HTTP client151- **[tokio](https://crates.io/crates/tokio)** - Async runtime152153## Limitations154155> ⚠️ **Important Notice**156157- stooq.com is an **unofficial API** and may change without notice158- **Daily rate limits** apply - excessive requests may be blocked159- Intended for **personal use and learning purposes** only160- Data accuracy is not guaranteed161162## License163164MIT License - see [LICENSE](LICENSE) for details.165166## Contributing167168Contributions are welcome! Please feel free to submit a Pull Request.169
Full transparency — inspect the skill content before installing.