{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-06-18",
  "serverInfo": {
    "name": "subastio",
    "title": "Subastio",
    "version": "1.1.0"
  },
  "description": "Subastas públicas y privadas de España (BOE, Seguridad Social, Hacienda, juzgados, bancos, liquidaciones) con los datos, favoritos y alertas de tu cuenta de Subastio. / Spanish public and private auctions with your Subastio account's data, favorites and alerts.",
  "iconUrl": "https://subastio.com/favicon.ico",
  "documentationUrl": "https://subastio.com/asistentes-ia",
  "websiteUrl": "https://subastio.com",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://subastio.com/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "authentication": {
    "required": true,
    "schemes": [
      "oauth2"
    ],
    "protected_resource_metadata": "https://subastio.com/.well-known/oauth-protected-resource",
    "note": "initialize y tools/list no requieren login; ejecutar herramientas sí (OAuth). / Catalog calls need no login; tool calls need OAuth."
  },
  "tools": [
    {
      "name": "buscar_subastas",
      "description": "Busca subastas públicas y privadas de España en Subastio (BOE, Seguridad Social, Hacienda, liquidaciones, bancos…) por texto, categoría, lugar, precio y filtros de vehículo o inmueble. Los resultados siguen el plan del usuario. / Search Spanish public and private auctions on Subastio by text, category, place, price and vehicle/property filters. Results follow the signed-in user's plan.",
      "title": "Buscar subastas / Search auctions",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "description": "Palabras que deben aparecer en el título, p. ej. 'piso', 'BMW X5'. / Words in the title.",
            "type": "string",
            "maxLength": 120
          },
          "category": {
            "type": "string",
            "enum": [
              "inmuebles",
              "vehiculos",
              "maquinaria",
              "electronica",
              "otros-bienes",
              "viviendas",
              "garajes",
              "locales",
              "naves",
              "solares",
              "terrenos",
              "trasteros",
              "coches",
              "motos",
              "furgonetas",
              "camiones",
              "remolques",
              "tractores",
              "patinetes",
              "maquinaria-industrial",
              "carretillas",
              "mecanizado",
              "equipos-laboratorio",
              "informatica",
              "moviles",
              "imagen-sonido",
              "camaras-fotografia",
              "videojuegos",
              "acciones",
              "aeronaves",
              "alimentacion-y-bebidas",
              "arte-antiguedades",
              "embarcaciones",
              "existencias",
              "ferreteria-y-suministros",
              "hogar-y-electrodomesticos",
              "joyas-relojes",
              "metales-y-chatarra",
              "mobiliario",
              "moda-y-textil"
            ],
            "description": "Categoría (slug). Las principales incluyen sus subcategorías: inmuebles, vehiculos, maquinaria, electronica, otros-bienes. / Category slug; main categories include their subcategories."
          },
          "province": {
            "type": "string",
            "enum": [
              "a-coruna",
              "alava",
              "albacete",
              "alicante",
              "almeria",
              "asturias",
              "avila",
              "badajoz",
              "barcelona",
              "bizkaia",
              "burgos",
              "caceres",
              "cadiz",
              "cantabria",
              "castellon",
              "ceuta",
              "ciudad-real",
              "cordoba",
              "cuenca",
              "gipuzkoa",
              "girona",
              "granada",
              "guadalajara",
              "huelva",
              "huesca",
              "illes-balears",
              "jaen",
              "la-rioja",
              "las-palmas",
              "leon",
              "lleida",
              "lugo",
              "madrid",
              "malaga",
              "melilla",
              "murcia",
              "navarra",
              "ourense",
              "palencia",
              "pontevedra",
              "salamanca",
              "santa-cruz-de-tenerife",
              "segovia",
              "sevilla",
              "soria",
              "tarragona",
              "teruel",
              "toledo",
              "valencia",
              "valladolid",
              "zamora",
              "zaragoza"
            ],
            "description": "Provincia española (slug), p. ej. madrid, bizkaia, illes-balears. / Spanish province slug."
          },
          "city": {
            "description": "Municipio, p. ej. Terrassa, Igualada; añade la provincia si es ambiguo. / Town name; add province when ambiguous.",
            "type": "string",
            "maxLength": 80
          },
          "near_lat": {
            "description": "Latitud para buscar por radio (con near_lng). / Latitude for a radius search.",
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "near_lng": {
            "description": "Longitud para buscar por radio (con near_lat). / Longitude for a radius search.",
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "radius_km": {
            "description": "Radio en km (por defecto 25). / Radius in km, default 25.",
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "status": {
            "description": "Estado; por defecto 'active' (incluye próximas). / Status, default 'active' (includes upcoming).",
            "type": "string",
            "enum": [
              "active",
              "upcoming",
              "ended",
              "all"
            ]
          },
          "price_min": {
            "description": "Precio mínimo en EUR. / Minimum price in EUR.",
            "type": "number",
            "minimum": 0
          },
          "price_max": {
            "description": "Precio máximo en EUR. / Maximum price in EUR.",
            "type": "number",
            "minimum": 0
          },
          "brands": {
            "description": "Marcas de vehículo, p. ej. ['SEAT','BMW']. Plan Registrado o superior. / Vehicle brands; Registered plan or higher.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 40
            }
          },
          "year_min": {
            "description": "Año del vehículo desde. Plan Registrado+. / Vehicle year from; Registered+.",
            "type": "integer",
            "minimum": 1900,
            "maximum": 2100
          },
          "year_max": {
            "description": "Año del vehículo hasta. Plan Registrado+. / Vehicle year to; Registered+.",
            "type": "integer",
            "minimum": 1900,
            "maximum": 2100
          },
          "fuel_types": {
            "description": "Combustible. Plan Registrado+. / Fuel; Registered+.",
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "gasolina",
                "electrico",
                "hibrido",
                "glp",
                "gnc"
              ]
            }
          },
          "gearbox": {
            "description": "Cambio. Plan Registrado+. / Gearbox; Registered+.",
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ]
          },
          "mileage_max": {
            "description": "Kilómetros máximos. Plan Registrado+. / Maximum km; Registered+.",
            "type": "number",
            "minimum": 0
          },
          "surface_min": {
            "description": "Superficie mínima m². Plan Pro. / Minimum surface m²; Pro.",
            "type": "number",
            "minimum": 0
          },
          "surface_max": {
            "description": "Superficie máxima m². Plan Pro. / Maximum surface m²; Pro.",
            "type": "number",
            "minimum": 0
          },
          "price_m2_max": {
            "description": "Precio máximo por m². Plan Pro. / Maximum price per m²; Pro.",
            "type": "number",
            "minimum": 0
          },
          "min_discount": {
            "description": "Descuento mínimo % sobre tasación. Plan Pro. / Minimum % below valuation; Pro.",
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "occupation": {
            "description": "Ocupación del inmueble. Plan Pro. / Occupation; Pro.",
            "type": "string",
            "enum": [
              "free",
              "occupied"
            ]
          },
          "visitable": {
            "description": "Solo inmuebles visitables. Plan Pro. / Only visitable properties; Pro.",
            "type": "boolean"
          },
          "full_ownership": {
            "description": "true = pleno dominio 100 %, false = participaciones. Plan Pro. / true = 100% ownership; Pro.",
            "type": "boolean"
          },
          "sort": {
            "description": "Orden; por defecto 'ending_soon'. / Sort, default 'ending_soon'.",
            "type": "string",
            "enum": [
              "ending_soon",
              "newest",
              "price_asc",
              "price_desc"
            ]
          },
          "page": {
            "description": "Página, empezando en 1. / Page number, from 1.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "per_page": {
            "description": "Resultados por página (máx. 50, por defecto 20). / Results per page, max 50.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "obtener_subasta",
      "description": "Detalle completo de una subasta (precios, fechas, descripción, ubicación, datos registrales) por slug, id o enlace de subastio.com. Los campos Pro se ocultan en planes inferiores. / Full details of one Subastio auction by slug, id or link; Pro-only fields are hidden on lower plans.",
      "title": "Ver subasta / Get auction details",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "auction": {
            "type": "string",
            "minLength": 3,
            "maxLength": 300,
            "description": "Slug (p. ej. 'garajes-igualada-ad70a'), id o enlace https://subastio.com/subasta/... / Auction slug, id or link."
          }
        },
        "required": [
          "auction"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "obtener_mi_cuenta",
      "description": "Nombre, email y plan de Subastio del usuario, qué desbloquea su plan y cuántos favoritos y alertas tiene. / The signed-in user's name, email, plan, what it unlocks, and favorite and alert counts.",
      "title": "Mi cuenta / My Subastio account",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "listar_favoritos",
      "description": "Subastas que el usuario guardó como favoritas en Subastio, con estado y precio. / Auctions the user saved as favorites, with status and price.",
      "title": "Mis favoritos / List my favorites",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "include_ended": {
            "description": "Incluir también finalizadas o canceladas (por defecto true). / Also return ended or cancelled auctions.",
            "type": "boolean"
          },
          "page": {
            "description": "Página, empezando en 1. / Page number, from 1.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "per_page": {
            "description": "Resultados por página (máx. 50, por defecto 20). / Results per page, max 50.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "guardar_favorito",
      "description": "Guarda una subasta en los favoritos del usuario (la misma lista que subastio.com/favoritos). / Save an auction to the user's favorites (same list as on the website).",
      "title": "Guardar en favoritos / Save to favorites",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "auction": {
            "type": "string",
            "minLength": 3,
            "maxLength": 300,
            "description": "Slug, id o enlace de subastio.com de la subasta. / Auction slug, id or subastio.com link."
          }
        },
        "required": [
          "auction"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "quitar_favorito",
      "description": "Quita una subasta de los favoritos del usuario; la subasta no cambia. / Remove an auction from the user's favorites; the auction itself is not affected.",
      "title": "Quitar de favoritos / Remove from favorites",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "auction": {
            "type": "string",
            "minLength": 3,
            "maxLength": 300,
            "description": "Slug, id o enlace de subastio.com de la subasta. / Auction slug, id or subastio.com link."
          }
        },
        "required": [
          "auction"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "listar_alertas",
      "description": "Alertas de búsqueda del usuario con sus criterios, si están activas y cuántas subastas han coincidido. / The user's search alerts with criteria, active state and match count.",
      "title": "Mis alertas / List my alerts",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "page": {
            "description": "Página, empezando en 1. / Page number, from 1.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "per_page": {
            "description": "Resultados por página (máx. 50, por defecto 20). / Results per page, max 50.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "obtener_coincidencias_alerta",
      "description": "Subastas que coincidieron con una alerta del usuario, de más reciente a más antigua. Los ids salen de listar_alertas. / Auctions that matched one of the user's alerts, newest first; ids come from listar_alertas.",
      "title": "Coincidencias de alerta / Alert matches",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "alert_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Id de la alerta (de listar_alertas). / Alert id from listar_alertas."
          },
          "page": {
            "description": "Página, empezando en 1. / Page number, from 1.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "per_page": {
            "description": "Resultados por página (máx. 50, por defecto 20). / Results per page, max 50.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [
          "alert_id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "crear_alerta",
      "description": "Crea una alerta: el usuario recibe un email diario con las subastas nuevas que cumplan los criterios. El plan gratuito permite 1 alerta sin filtros de vehículo/inmueble; Pro, alertas ilimitadas con todos los filtros. / Create an alert: daily email with new matching auctions. Free plan: 1 alert without vehicle/property filters; Pro: unlimited with all filters.",
      "title": "Crear alerta / Create search alert",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80,
            "description": "Nombre corto, p. ej. 'Pisos en Valencia < 150k'. / Short alert name."
          },
          "category": {
            "type": "string",
            "enum": [
              "inmuebles",
              "vehiculos",
              "maquinaria",
              "electronica",
              "otros-bienes",
              "viviendas",
              "garajes",
              "locales",
              "naves",
              "solares",
              "terrenos",
              "trasteros",
              "coches",
              "motos",
              "furgonetas",
              "camiones",
              "remolques",
              "tractores",
              "patinetes",
              "maquinaria-industrial",
              "carretillas",
              "mecanizado",
              "equipos-laboratorio",
              "informatica",
              "moviles",
              "imagen-sonido",
              "camaras-fotografia",
              "videojuegos",
              "acciones",
              "aeronaves",
              "alimentacion-y-bebidas",
              "arte-antiguedades",
              "embarcaciones",
              "existencias",
              "ferreteria-y-suministros",
              "hogar-y-electrodomesticos",
              "joyas-relojes",
              "metales-y-chatarra",
              "mobiliario",
              "moda-y-textil"
            ],
            "description": "Categoría (slug). Las principales incluyen sus subcategorías: inmuebles, vehiculos, maquinaria, electronica, otros-bienes. / Category slug; main categories include their subcategories."
          },
          "province": {
            "type": "string",
            "enum": [
              "a-coruna",
              "alava",
              "albacete",
              "alicante",
              "almeria",
              "asturias",
              "avila",
              "badajoz",
              "barcelona",
              "bizkaia",
              "burgos",
              "caceres",
              "cadiz",
              "cantabria",
              "castellon",
              "ceuta",
              "ciudad-real",
              "cordoba",
              "cuenca",
              "gipuzkoa",
              "girona",
              "granada",
              "guadalajara",
              "huelva",
              "huesca",
              "illes-balears",
              "jaen",
              "la-rioja",
              "las-palmas",
              "leon",
              "lleida",
              "lugo",
              "madrid",
              "malaga",
              "melilla",
              "murcia",
              "navarra",
              "ourense",
              "palencia",
              "pontevedra",
              "salamanca",
              "santa-cruz-de-tenerife",
              "segovia",
              "sevilla",
              "soria",
              "tarragona",
              "teruel",
              "toledo",
              "valencia",
              "valladolid",
              "zamora",
              "zaragoza"
            ],
            "description": "Provincia española (slug), p. ej. madrid, bizkaia, illes-balears. / Spanish province slug."
          },
          "keywords": {
            "description": "Cualquiera de estas palabras en el título. / Any of these words in the title.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 40,
              "pattern": "^[\\p{L}\\p{N} .'-]+$"
            }
          },
          "price_min": {
            "type": "number",
            "minimum": 0
          },
          "price_max": {
            "type": "number",
            "minimum": 0
          },
          "near_lat": {
            "description": "Latitud para alerta por radio (con near_lng). / Latitude for a radius alert.",
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "near_lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "radius_km": {
            "description": "Radio en km, por defecto 25. / Radius km, default 25.",
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "location_name": {
            "description": "Nombre del centro del radio, p. ej. 'Sabadell'. / Label for the radius centre.",
            "type": "string",
            "maxLength": 80
          },
          "brands": {
            "description": "Marcas de vehículo; solo alertas Pro. / Vehicle brands; Pro alerts only.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 40
            }
          },
          "year_min": {
            "type": "integer",
            "minimum": 1900,
            "maximum": 2100
          },
          "year_max": {
            "type": "integer",
            "minimum": 1900,
            "maximum": 2100
          },
          "fuel_types": {
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "gasolina",
                "electrico",
                "hibrido",
                "glp",
                "gnc"
              ]
            }
          },
          "gearbox": {
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ]
          },
          "mileage_max": {
            "type": "number",
            "minimum": 0
          },
          "occupation": {
            "description": "Solo alertas Pro. / Pro alerts only.",
            "type": "string",
            "enum": [
              "free",
              "occupied"
            ]
          },
          "visitable": {
            "description": "Solo alertas Pro. / Pro alerts only.",
            "type": "boolean"
          },
          "full_ownership": {
            "description": "Solo alertas Pro. / Pro alerts only.",
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    }
  ]
}