lottery-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lottery-mcp show me Taiwan Lotto 649 results for March 2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lottery MCP Server
This MCP (Model Context Protocol) server enables retrieval of Taiwan lottery data for a specified month. It currently supports four games: Super Lotto 638 (威力彩), Lotto 649 (大樂透), Daily Cash 539 (今彩539), and Lotto 4D (4星彩).
Requirements
Python 3.9+
uv (Python package manager)
Related MCP server: roc-cwa-mcp
Usage
Install uv if you don't have it:
curl -LsSf https://astral.sh/uv/install.sh | shStart the server:
uv run main.pyRunning Locally with Claude App
To use this MCP server with Claude App, follow these steps:
Open
Settings > Developerin Claude App.Add or update your configuration as shown below, replacing
<absolute_path_to_the_folder>with the full path to your project directory:{ "mcpServers": { "lottery": { "command": "uv", "args": [ "--directory", "<absolute_path_to_the_folder>", "run", "main.py" ] } } }After connecting, a blue
runningtag will appear next to your server name in the Local MCP servers list.Access the server's tools by clicking the
Search and toolsbutton in the chat interface.
This confirms the MCP server is running and integrated with Claude App.
Troubleshoot
Unable to connect MCP server locally
If uv is already installed, it may mean that Claude cannot find it. Turn on the terminal and set a symlink:
sudo ln -s ~/.local/bin/uv /usr/local/bin/uv
Available Tools
4 toolsget_daily_cash_monthB
Get lottery, daily cash (今彩539), data in the specified month Args: year: target year, e.g. 2024 month: target month, e.g. 5
Inputs: year (required), month (required). Returns: result
get_lotto_4d_monthC
Get lottery, lotto 4d (4星彩), data in the specified month Args: year: target year, e.g. 2024 month: target month, e.g. 5
Inputs: year (required), month (required). Returns: result
get_lotto_649_monthC
Get lottery, super lotto 649 (大樂透), data in the specified month Args: year: target year, e.g. 2024 month: target month, e.g. 5
Inputs: year (required), month (required). Returns: result
get_super_lotto_monthB
Get lottery, super lotto 638 (威力彩), data in the specified month Args: year: target year, e.g. 2024 month: target month, e.g. 5
Inputs: year (required), month (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct lottery game (super lotto 638, lotto 649, daily cash, lotto 4d) with no overlap. The game name in the tool name and description makes the purpose unambiguous.
All four tools follow a consistent get_<game>_month pattern. The naming is predictable and clearly indicates the action and resource.
Four tools is reasonable given the server covers four distinct lottery games. The scope is narrow but well-defined, and each tool earns its place.
The surface only provides monthly data retrieval for each game. There are no tools for fetching individual draws, latest results, or time ranges, which are common needs. CRUD operations are not applicable, but the read-only surface is limited to a single granularity.
Maintenance
Related MCP Connectors
Winning numbers for 30+ world lotteries, minutes after each draw. Free, no key, CC BY 4.0.
Lottery picks in any format, past draws, ticket check, and a link for numbers drawn from a sentence.
Lottery picks in any format, past draws, ticket check, and a link for numbers drawn from a sentence.
Lottery picks in any format, past draws, ticket check, and a link for numbers drawn from a sentence.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceEnables users to search and retrieve detailed information about Taiwan government procurement tenders through the Government Electronic Procurement System API. It supports searching tenders by keyword, category code, date, and government unit.6-
- AlicenseAqualityDmaintenanceEnables to access Taiwan Central Weather Administration data, including 3-day and 1-week weather forecasts for counties/cities and historical rainfall data.3MIT
- AlicenseAqualityDmaintenanceProvides tools to query Chinese lottery results, check prizes, and update data for 双色球 (Double Color Ball) and 大乐透 (Super Lotto).41MIT
- FlicenseNot gradedqualityDmaintenanceProvides Taiwan stock market data through FinMind v4 API, including daily OHLCV, monthly revenue, institutional investors, margin trading, dividends, and financial statements. Enables MCP clients like ChatGPT or Codex to query Taiwan financial datasets via simple tools.-