Skip to main content
Glama
stevezhouht

Lottery MCP Server

by stevezhouht

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOTTERY_DATA_DIRNoDirectory to store lottery data~/lottery_data

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
update_lotteryB

更新彩票开奖数据到本地数据库

Args: lottery_type: 彩票类型,可选 'double_ball'(双色球) 或 'super_lotto'(大乐透) start_date: 开始日期,格式 YYYY-MM-DD end_date: 结束日期,格式 YYYY-MM-DD

Returns: 更新结果,包含新增记录数和总记录数

query_lotteryA

查询指定日期范围内的开奖结果

Args: lottery_type: 彩票类型,可选 'double_ball'(双色球) 或 'super_lotto'(大乐透) start_date: 开始日期,格式 YYYY-MM-DD end_date: 结束日期,格式 YYYY-MM-DD

Returns: 开奖结果列表

check_prizeA

检查指定号码在日期范围内的中奖情况

Args: lottery_type: 彩票类型,可选 'double_ball'(双色球) 或 'super_lotto'(大乐透) start_date: 开始日期,格式 YYYY-MM-DD end_date: 结束日期,格式 YYYY-MM-DD numbers: 号码列表 - 双色球: 7个数字,前6个为红球(1-33),最后1个为蓝球(1-16) - 大乐透: 7个数字,前5个为前区(1-35),后2个为后区(1-12)

Returns: 中奖结果,包含每期的匹配情况和中奖等级

get_latest_resultsB

获取最近几期的开奖结果

Args: lottery_type: 彩票类型,可选 'double_ball'(双色球) 或 'super_lotto'(大乐透) count: 获取的期数,默认5期

Returns: 最近几期的开奖结果

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevezhouht/lottery-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server