MCP server
Connect any MCP client to Avanza Fibra to quote, check coverage and contract with the tools below.
The server speaks MCP over streamable HTTP and lives on the same host as the REST API.
https://agents.avanzafibra.com/mcpIt is public for reads: any client can connect, list the tools and call the public reads.
Pick your client and add the server.
claude mcp add --transport http avanzafibra https://agents.avanzafibra.com/mcpTo call the tools that need a credential, add the server to your project .mcp.json instead and keep the token in AVANZA_AGENT_TOKEN.
{
"mcpServers": {
"avanzafibra": {
"type": "http",
"url": "https://agents.avanzafibra.com/mcp",
"headers": {
"Authorization": "Bearer ${AVANZA_AGENT_TOKEN}"
}
}
}
}{
"mcpServers": {
"avanzafibra": {
"url": "https://agents.avanzafibra.com/mcp"
}
}
}With a credential, add the Authorization header and keep the token in AVANZA_AGENT_TOKEN.
{
"mcpServers": {
"avanzafibra": {
"url": "https://agents.avanzafibra.com/mcp",
"headers": {
"Authorization": "Bearer ${env:AVANZA_AGENT_TOKEN}"
}
}
}
}{
"servers": {
"avanzafibra": {
"type": "http",
"url": "https://agents.avanzafibra.com/mcp"
}
}
}With a credential, add the Authorization header and keep the token in AVANZA_AGENT_TOKEN.
{
"servers": {
"avanzafibra": {
"type": "http",
"url": "https://agents.avanzafibra.com/mcp",
"headers": {
"Authorization": "Bearer ${env:AVANZA_AGENT_TOKEN}"
}
}
}
}codex mcp add avanzafibra --url https://agents.avanzafibra.com/mcpWith a credential, point bearer_token_env_var at AVANZA_AGENT_TOKEN in ~/.codex/config.toml.
[mcp_servers.avanzafibra]
url = "https://agents.avanzafibra.com/mcp"
bearer_token_env_var = "AVANZA_AGENT_TOKEN"https://agents.avanzafibra.com/mcphttps://agents.avanzafibra.com/mcpIf your client accepts a headers property, send your credential like this and keep the token in AVANZA_AGENT_TOKEN.
{
"avanzafibra": {
"url": "https://agents.avanzafibra.com/mcp",
"headers": {
"Authorization": "Bearer ${AVANZA_AGENT_TOKEN}"
}
}
}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.
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 with public access need no credential. The others need a credential that holds the capability shown.
| Tool | Description | Access |
|---|---|---|
products_list | List the public catalog: fibre, mobile, TV, landline, alarms and packs. | Public |
product_get | Get the detail of one product by identifier. | Public |
packs_list | List the active packs. | Public |
packs_applicable | List the packs that apply to a configuration. Read-only. | Public |
pricing_calculate | Quote a configuration with the pricing engine. The total is the one order_create expects. | Public |
discount_validate | Validate a discount code. Read-only: it does not consume the code. | Public |
campaign_info | Get the public information of an active campaign. | Public |
worker_public_profile | Get the public profile of an associate by slug. | Public |
coverage_check | Check whether an address has fibre coverage. | catalog:read |
coverage_search | Address autocomplete: search towns and streets. | catalog:read |
draft_create | Leave a configured draft and get the customer's signed link (72 h). orders:write also opens it. | drafts:write |
payment_link_create | Create the secure link (30 minutes) the customer opens to type their IBAN. You never see it. | orders:write |
payment_link_status | Check a payment link: pending, completed or expired. On completed it returns paymentRef and the masked IBAN. | orders:write |
order_create | Create an order on behalf of a customer. Requires paymentRef and conditions.userConfirmedAt; accepts an idempotency key.Human confirmation | orders:write |
order_status_get | Follow the progress of an order, without personal data. | orders:write |
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
paymentRefthat link returns. payment_credential_tokenizeis not an MCP tool. IBAN tokenization exists only over REST, server to server, withpayment:tokenize.- Be careful when you combine this server with other MCP servers, to avoid prompt injection across tools.