Koskamo

Loterías API MCP

Official MCP server by Loterías API providing AI agents with tools to query Spanish lottery results, check winning numbers, view upcoming draws, and access statistical data for games like Euromillones and La Primitiva.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Loterías API MCP logo, by Loterías APIVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by Loterías API
You need:crear una API key y hacer la primera peticiónSin API key: 3 últimos sorteos de cada juego, próximo sorteo, comprobar números en esos sorteos y estadísticas agregadas (60 llamadas/min por IP)Con API key (`X-API-Key: lat_...` o `Authorization: Bearer lat_...`): histórico, búsqueda por fechas o bote, sorteo de un día con premios, estadísticas, frecuencias, botes y patrones según el plan
MCP endpoint (Streamable HTTP)
https://api.loteriasapi.com/mcp
Vendor documentation

What its tools do

5 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

5 of 5 have a description · 5 of 5 declare behavior hints · 4 of 4 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to loteriasapi.com ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 2 of 2 checks passed in 30 days

What you can do with it

  • Check winning numbers for recent lottery draws
  • Retrieve upcoming draw dates and jackpots
  • Access historical lottery results and statistics
  • Verify lottery ticket prizes

Source and maintenance

Vendor evidenceRegistry 1.0.0

Protocol and capabilities

Server
loterias-api 1.0.0
MCP protocol negotiated in check
2025-11-25
Tools
5 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Read-only access to official Spanish state lottery data (Loterias y Apuestas del Estado): latest results, next draws, number checking and aggregated statistics. Each game exposes its 3 most recent draws; statistics are aggregated over past draws and do not predict future results.

Tools

5 advertised

list_games — List lottery games
Advertised by the server during the last successful anonymous check.
Advertised read-only

List the Spanish state lottery games covered (slug and name). Use the slug as the "game" argument of the other tools.

list_games input schema
{
  "type": "object",
  "required": [],
  "properties": {},
  "additionalProperties": false
}
list_games annotations
{
  "title": "List lottery games",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_latest_results — Get latest lottery results
Advertised by the server during the last successful anonymous check.
Advertised read-only

Get the most recent official results (draw date, winning combination, complementary numbers and jackpot when applicable) of one game, newest first. Use it for questions like "what were the last Euromillones numbers?". Returns up to the 3 most recent draws.

get_latest_results input schema
{
  "type": "object",
  "required": [
    "game"
  ],
  "properties": {
    "game": {
      "enum": [
        "bonoloto",
        "euromillones",
        "lototurf",
        "primitiva",
        "gordo",
        "quiniela",
        "quinigol",
        "quintuple",
        "nacional",
        "eurodreams"
      ],
      "type": "string",
      "examples": [
        "euromillones"
      ],
      "description": "Game slug. Call list_games to see them all. Example: \"euromillones\"."
    },
    "limit": {
      "type": "integer",
      "default": 1,
      "maximum": 3,
      "minimum": 1,
      "examples": [
        1
      ],
      "description": "How many recent draws to return (1-3)."
    }
  },
  "additionalProperties": false
}
get_latest_results annotations
{
  "title": "Get latest lottery results",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_next_draw — Get the next lottery draw
Advertised by the server during the last successful anonymous check.
Advertised read-only

Get the next scheduled draw of one game: date, status and announced jackpot when available. Use it for "when is the next Primitiva draw and how much is the jackpot?".

get_next_draw input schema
{
  "type": "object",
  "required": [
    "game"
  ],
  "properties": {
    "game": {
      "enum": [
        "bonoloto",
        "euromillones",
        "lototurf",
        "primitiva",
        "gordo",
        "quiniela",
        "quinigol",
        "quintuple",
        "nacional",
        "eurodreams"
      ],
      "type": "string",
      "examples": [
        "euromillones"
      ],
      "description": "Game slug. Call list_games to see them all. Example: \"euromillones\"."
    }
  },
  "additionalProperties": false
}
get_next_draw annotations
{
  "title": "Get the next lottery draw",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
check_numbers — Check numbers against a draw
Advertised by the server during the last successful anonymous check.
Advertised read-only

Check whether a set of numbers won in one of the 3 most recent draws of a game (default: the latest). For "nacional" the numbers are décimo numbers (up to 5 digits, at most 5, pass them as strings to keep leading zeros, e.g. "01755"). For the other games pass the main numbers and, when the game has them, the extra numbers (stars, reintegro, clave...). Returns matches, whether it is a winner and the prize. Only the 3 most recent draws can be checked.

check_numbers input schema
{
  "type": "object",
  "required": [
    "game",
    "numbers"
  ],
  "properties": {
    "game": {
      "enum": [
        "bonoloto",
        "euromillones",
        "lototurf",
        "primitiva",
        "gordo",
        "quiniela",
        "quinigol",
        "quintuple",
        "nacional",
        "eurodreams"
      ],
      "type": "string",
      "examples": [
        "euromillones"
      ],
      "description": "Game slug. Call list_games to see them all. Example: \"euromillones\"."
    },
    "numbers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "integer",
            "maximum": 99999,
            "minimum": 0
          },
          {
            "type": "string",
            "pattern": "^\\d{1,5}$"
          }
        ]
      },
      "examples": [
        [
          4,
          15,
          23,
          38,
          42
        ]
      ],
      "maxItems": 20,
      "minItems": 1,
      "description": "Main numbers to check (nacional: décimo numbers, up to 5 digits)."
    },
    "drawDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "examples": [
        "2026-11-11"
      ],
      "description": "Optional draw date (YYYY-MM-DD). Must be one of the 3 latest draws; defaults to the latest."
    },
    "extraNumbers": {
      "type": "array",
      "items": {
        "type": "integer",
        "maximum": 99,
        "minimum": 0
      },
      "examples": [
        [
          3,
          11
        ]
      ],
      "maxItems": 5,
      "description": "Optional extra numbers: Euromillones stars, reintegro in Primitiva/Bonoloto, etc."
    }
  },
  "additionalProperties": false
}
check_numbers annotations
{
  "title": "Check numbers against a draw",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_public_statistics — Get aggregated game statistics
Advertised by the server during the last successful anonymous check.
Advertised read-only

Aggregated statistics of a game over its last 2000 draws: most and least frequent numbers, longest absences, even/odd split, sum range and top pairs. Available for: primitiva, bonoloto, euromillones, gordo, eurodreams, lototurf. Covers the last 2000 draws only; no per-number tables or custom periods.

get_public_statistics input schema
{
  "type": "object",
  "required": [
    "game"
  ],
  "properties": {
    "game": {
      "enum": [
        "primitiva",
        "bonoloto",
        "euromillones",
        "gordo",
        "eurodreams",
        "lototurf"
      ],
      "type": "string",
      "examples": [
        "primitiva"
      ],
      "description": "Game slug. Call list_games to see them all. Example: \"euromillones\"."
    }
  },
  "additionalProperties": false
}
get_public_statistics annotations
{
  "title": "Get aggregated game statistics",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (21 of 21 checks answered)

  1. 2026-11-18: 1 of 1 checks answered
  2. 2026-11-19: 4 of 4 checks answered
  3. 2026-11-20: 3 of 3 checks answered
  4. 2026-11-21: 4 of 4 checks answered
  5. 2026-11-22: 4 of 4 checks answered
  6. 2026-11-23: 3 of 3 checks answered
  7. 2026-11-24: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
2 of 2 (100%)
Average latency
1816 ms
95th percentile latency
2183 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2224 ms · metadata changed · 5 tool(s)
  • · probe · passed · 1408 ms · metadata changed · 5 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http loteri-as-api-mcp https://api.loteriasapi.com/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add loteri-as-api-mcp --url https://api.loteriasapi.com/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable loteri-as-api-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "loteri-as-api-mcp": {
      "url": "https://api.loteriasapi.com/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "loteri-as-api-mcp": {
      "type": "streamableHttp",
      "url": "https://api.loteriasapi.com/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start loteri-as-api-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "loteri-as-api-mcp": {
      "type": "http",
      "url": "https://api.loteriasapi.com/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http loteri-as-api-mcp https://api.loteriasapi.com/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://api.loteriasapi.com/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "loteri-as-api-mcp": {
      "serverUrl": "https://api.loteriasapi.com/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Loterías API MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Loterías API MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing