stooq-mcp
A Model Context Protocol (MCP) server written in Rust that fetches stock price data from stooq.com.
README
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 Code | Country |
|---|---|
jp |
Japan |
us |
United States |
uk |
United Kingdom |
hk |
Hong Kong |
de |
Germany |
Installation
Prerequisites
- Rust 1.75+
- Cargo
One-liner Install
curl -fsSL https://raw.githubusercontent.com/hoqqun/stooq-mcp/main/install.sh | bash
This will install to ~/.stooq-mcp/. To customize:
STOOQ_MCP_DIR=/your/path curl -fsSL https://raw.githubusercontent.com/hoqqun/stooq-mcp/main/install.sh | bash
Quick Install
git clone https://github.com/hoqqun/stooq-mcp.git
cd stooq-mcp
./install.sh
The install script will:
- Build the project
- Register with Claude Code and/or Claude Desktop
Manual Build
cargo build --release
The binary will be located at ./target/release/stooq-mcp.
Usage
Claude Code
Register the MCP server with Claude Code:
claude mcp add stooq-mcp /path/to/stooq-mcp/target/release/stooq-mcp
Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"stooq-mcp": {
"command": "/path/to/stooq-mcp/target/release/stooq-mcp"
}
}
}
Tools
get_stock_price
Fetches stock price data from stooq.com.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ticker |
string | ✅ | Stock ticker symbol (e.g., "7203", "AAPL") |
market |
string | ✅ | Market code: jp, us, uk, hk, de |
start_date |
string | ❌ | Start date in YYYYMMDD format (e.g., "20240101") |
end_date |
string | ❌ | 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
Limitations
⚠️ Important Notice
- stooq.com is an unofficial API and may change without notice
- Daily rate limits apply - excessive requests may be blocked
- Intended for personal use and learning purposes only
- Data accuracy is not guaranteed
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。