stooq-mcp is a server based on the Model Context Protocol (MCP), written in the Rust language, whose main function is to fetch stock price data from stooq.com.
Main capabilities:
- Latest stock prices: fetch real-time stock price data.
- Historical data: retrieve historical stock data within a custom date range.
- Multi-market support: access stocks from five major markets.
Usage: A one-click installation script is provided, which by default installs to ~/.stooq-mcp/. The installation script builds the project and registers it with Claude Code and/or Claude Desktop. The compiled binary is located at ./target/release/stooq-mcp. When registering the MCP server with Claude Code, the configuration needs to be added to Claude Desktop's configuration file, with the specific paths being: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json
Tool example: get_stock_price: fetch stock price data from stooq.com. For example, fetch the latest stock price of Toyota Motor (Japan), or fetch Sony's (Japan) historical data for the full year of 2024.
Tech stack:
- Rust: systems programming language
- rmcp: MCP server implementation
- reqwest: HTTP client
- tokio: asynchronous runtime
Important notes:
- stooq.com is an unofficial API and may change at any time without notice.
- There is a daily rate limit, and excessive requests may be blocked.
- For personal use and learning purposes only.
- Data accuracy is not guaranteed.
License: MIT License, see the LICENSE file for details. Contributions are welcome! Please feel free to submit a Pull Request.