Saltar al contenido

MCP server

Connect any MCP client to Avanza Fibra to quote, check coverage and contract with the tools below.

View as Markdown

Endpoint

The server speaks MCP over streamable HTTP and lives on the same host as the REST API.

text
https://agents.avanzafibra.com/mcp

It is public for reads: any client can connect, list the tools and call the public reads.

Set up your client

Pick your client and add the server.

Run this command to add the server. It gives you the public reads.
bash
claude mcp add --transport http avanzafibra https://agents.avanzafibra.com/mcp

To call the tools that need a credential, add the server to your project .mcp.json instead and keep the token in AVANZA_AGENT_TOKEN.

With a credential
{
  "mcpServers": {
    "avanzafibra": {
      "type": "http",
      "url": "https://agents.avanzafibra.com/mcp",
      "headers": {
        "Authorization": "Bearer ${AVANZA_AGENT_TOKEN}"
      }
    }
  }
}

Authentication

Public reads need no credential: any client can connect, list the tools and call them, within per-client and per-tool usage caps. Every other tool call carries your own credential in the Authorization header. There is no shared token.

text
Authorization: Bearer <token>

Credentials are issued by a person on request. See Credentials and capabilities for the capability each credential carries and how to ask for one.

Tools

Tools with public access need no credential. The others need a credential that holds the capability shown.

ToolDescriptionAccess
products_listList the public catalog: fibre, mobile, TV, landline, alarms and packs.Public
product_getGet the detail of one product by identifier.Public
packs_listList the active packs.Public
packs_applicableList the packs that apply to a configuration. Read-only.Public
pricing_calculateQuote a configuration with the pricing engine. The total is the one order_create expects.Public
discount_validateValidate a discount code. Read-only: it does not consume the code.Public
campaign_infoGet the public information of an active campaign.Public
worker_public_profileGet the public profile of an associate by slug.Public
coverage_checkCheck whether an address has fibre coverage.catalog:read
coverage_searchAddress autocomplete: search towns and streets.catalog:read
draft_createLeave a configured draft and get the customer's signed link (72 h). orders:write also opens it.drafts:write
payment_link_createCreate the secure link (30 minutes) the customer opens to type their IBAN. You never see it.orders:write
payment_link_statusCheck a payment link: pending, completed or expired. On completed it returns paymentRef and the masked IBAN.orders:write
order_createCreate an order on behalf of a customer. Requires paymentRef and conditions.userConfirmedAt; accepts an idempotency key.Human confirmationorders:write
order_status_getFollow the progress of an order, without personal data.orders:write

Safety

Review what your agent does

  • Turn on tool approval in your client so you can review calls before they run, especially the tools marked for human confirmation.
  • Never put an IBAN or full personal data in tool arguments. The server rejects raw IBANs: payment goes through the secure link the customer opens, or through the paymentRef that link returns.
  • payment_credential_tokenize is not an MCP tool. IBAN tokenization exists only over REST, server to server, with payment:tokenize.
  • Be careful when you combine this server with other MCP servers, to avoid prompt injection across tools.
Personaliza tu tarifa