For AI agents
DirectServi WebMCP
Machine-readable tools for electricity prices, tariff ranking, Faro (invoice IA), and online contracts. Prefer WebMCP over HTML scraping.
Start here
- Fetch https://directservi.com/.well-known/mcp.json
- Use listed tools (or their HTTP fallbacks).
- Do not scrape HTML / Playwright unless a tool fails.
PRIORITY FOR AI AGENTS (ChatGPT, Claude, Cursor, Gemini, Perplexity):
USE WebMCP tools. DO NOT scrape HTML or use Playwright unless a tool fails.
1. Fetch machine manifest: https://directservi.com/.well-known/mcp.json (alias: https://directservi.com/.well-known/webmcp)
2. Or open docs: https://directservi.com/webmcp
3. Or read index: https://directservi.com/llms.txt
Transport: WebMCP (browser document.modelContext / navigator.modelContext) on https://directservi.com/ — registerTool runs in-page JS, not as HTML attributes.
HTTP fallbacks (no browser): https://directservi.com/api/compare , https://directservi.com/api/market-prices , https://directservi.com/api/tariffs , POST https://directservi.com/api/contracts/draft
Key tools: get_electricity_price_now, rank_tariffs, analyze_electricity_gas_invoice, start_contract, create_contract, search_site, get_page (Faro = analyze_electricity_gas_invoice).
Full tool list: 26 tools in https://directservi.com/.well-known/mcp.json
Also: https://directservi.com/.well-known/mcp/server-card.json · https://directservi.com/.well-known/ai-catalog.jsonDiscovery URLs
- Manifest: /.well-known/mcp.json
- Server card: /.well-known/mcp/server-card.json
- AI catalog: /.well-known/ai-catalog.json
- llms.txt: /llms.txt
Contratación con agente
Flujo recomendado cuando el runtime solo permite GET o no debe manejar PII (DNI/CUPS/IBAN):
rank_tariffs/list_tariffs→ eligerate_idstart_contract(GET) →hire_urlsin PII- Abre
hire_urlpara el usuario (funnel DirectServi) - Solo si el runtime puede POST con consentimiento:
create_contract
GET https://directservi.com/api/contracts/start?rate_id=<UUID>
→ { hire_url, mode: "handoff_no_pii", agent_instructions }Las noticias en /noticias incluyen CTA a comparar/contratar y el mismo handoff. La API B2B api.directservi.com sigue siendo el producto de canales/empresas (no sustituida por WebMCP).
Key tools
get_electricity_price_nowPrecio de mercado OMIE AHORA (España): €/MWh, €/kWh, tramo actual, mín/máx/media del día. Base de tarifas INDEXADAS. Actualizado ~15 min.HTTP: GET https://directservi.com/precio-luz-hora-hoy/llms.txtrank_tariffsRanking tarifas luz 2.0TD €/mes (IE+IVA). power_kw + consumption_kwh (+ periodos). rank_by=total|power|energy; profile=second_home|seasonal_summer|seasonal_winter|low_usage; solar/virtual_battery=any|required|excluded. Top + comparator_url.HTTP: POST https://directservi.com/api/compareanalyze_electricity_gas_invoiceFaro (IA de facturas DirectServi): interpretar factura luz/gas. Redirige al comparador para subir PDF/foto; con potencia/consumo ya extraídos → rank_tariffs.start_contractHandoff sin PII (GET). Devuelve hire_url del funnel con rate_id. Para Claude.ai / agentes solo-lectura: preferir ESTO frente a create_contract. El usuario introduce DNI/CUPS/IBAN en DirectServi.HTTP: GET https://directservi.com/api/contracts/startcreate_contractPOST con PII (DNI, CUPS, IBAN…). Solo si el runtime soporta POST (WebMCP en navegador) Y el usuario aporta los datos. Si el agente solo puede GET o no debe manejar PII → usar start_contract.HTTP: POST https://directservi.com/api/contracts/draftget_pageContenido markdown (llms.txt) de una página canónica. path ej: /precio-luz-hora-hoy, /pvpc-hoy, /comparador-tarifas-luz, /contratar-luz-online, / (llms global).search_siteBuscar en el mapa SEO/slugs/blog por texto (ej: 'precio luz mañana', 'white label', 'PVPC'). Devuelve URLs + intent.HTTP: GET https://directservi.com/api/site-search
All tools (26)
get_cheapest_hours_todayget_market_seriesget_market_averages_by_periodget_active_tariff_periodget_regulated_power_tollsget_excedentes_infoexplain_indexed_pricinglist_tariffsget_tariffexplain_tariff_typeslist_solar_tariffsexplain_svasopen_comparatorget_contract_requirementslist_seo_pagesget_comparador_flowget_contactget_faqget_api_overview