---
title: "Tutorial: SOAP isn't dead. Connect Brazil's Central Bank to your AI assistant | FluxOS MCP Blog"
description: "Brazil's central bank publishes its economic series through a SOAP service. See how to import the WSDL and let your AI assistant query the Selic rate, with no rewrite."
url: "https://www.fluxosmcp.com/en/blog/tutorial-soap-isnt-dead-connect-brazils-central-bank-to-your-ai-assistant"
lang: "en-US"
---

[Blog](https://www.fluxosmcp.com/en/blog) · Nov 25, 2026 · FluxOS MCP Team

# Tutorial: SOAP isn't dead. Connect Brazil's Central Bank to your AI assistant

[Leia este artigo em português](https://www.fluxosmcp.com/blog/tutorial-soap-nao-morreu-ligue-o-banco-central-ao-seu-assistente-de-ia)

Every company more than ten years old has a SOAP service tucked away somewhere: that XML nobody wants to touch, but that keeps working and keeps holding important information.

The good news is that you don’t need to rewrite it for an AI assistant to use it. A SOAP service comes with a contract, the **WSDL**, and that contract is enough to generate the tools.

To prove it, we’ll use a real, public SOAP service: the one from the **Sistema Gerenciador de Séries Temporais (SGS, the Time Series Management System) of the Banco Central**, Brazil’s central bank. It has been online for many years and carries the country’s official economic series.

## Step 1: create the system

In **Sistemas → Novo sistema** (Systems → New system):

- **Nome** (Name): Banco Central (SOAP)
- **Tipo de origem** (Source type): SOAP
- **URL base** (Base URL): `https://www3.bcb.gov.br`
- **Credencial da empresa** (Company credential): Nenhuma (None)

Click **Criar e importar** (Create and import).

## Step 2: provide the WSDL

In the **URL do WSDL** (WSDL URL) field, paste:

```
https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl

```

Click **Ler origem** (Read source). The importer finds seven operations, all of them queries: `get_ultimo_valor_xml`, `get_ultimo_valor_vo`, `get_valor`, `get_valor_especial`, `get_ultimos_valores_serie_vo`, `get_valores_series_xml` and `get_valores_series_vo`.

## Step 3: choose just one

This is where legacy shows its face. The arguments are called `in0`, `in1`, `in2`. The contract doesn’t say what they mean, and the description for all of them is “Operação SOAP …” (SOAP operation …). An assistant can’t use that.

Keep **`get_ultimo_valor_xml`**, which takes a single argument (`in0`, the series code) and returns the last published value. Uncheck the other six.

Now translate it into human language:

- **Nome**: `consultar_indicador_banco_central`
- **Descrição** (Description): “Returns the most recent value of a Banco Central series, with name, unit and date. Provide the series code in `in0`: 432 for the Selic rate target, 433 for monthly IPCA, 1 for the PTAX dollar selling rate.”

(The Selic is Brazil’s benchmark interest rate, the IPCA is its official inflation index and PTAX is the official exchange rate.) Mark it as **Global**: the screen offers `in0` as the client filter, but a series code doesn’t identify any client.

Create the “Indicators” server, with the address `indicadores`.

## What FluxOS MCP does for you

When the assistant calls the tool with `in0 = 432`, the SOAP block builds the envelope:

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getUltimoValorXML xmlns="http://publico.ws.casosdeuso.sgs.pec.bcb.gov.br">
      <in0>432</in0>
    </getUltimoValorXML>
  </soap:Body>
</soap:Envelope>

```

It sends that to the service and converts the response to JSON. We sent exactly this envelope to the Banco Central while preparing this tutorial, and it answered with the series “Taxa de juros - Meta Selic definida pelo Copom” (Interest rate: Selic target set by Copom, the monetary policy committee), the unit (% per year), the date and the value.

The assistant never sees envelope XML, namespaces or `soapAction`.

## Publish and hand over a key

From here on, the path is the same as for any server:

1. In **Servidores MCP** (MCP servers), open the server and click **Publicar** (Publish).
2. In **Clientes → Novo cliente** (Clients → New client), create a test client (it can be “Internal test”).
3. On the client’s **Acesso e portal** (Access and portal) tab, use **Liberar servidor** (Grant server access) and set a low cap, for example 10 calls per minute.
4. On the **Chaves** (Keys) tab, create a **Nova chave** (New key). It is shown only once: copy it right away.

The server’s **Conexão** (Connection) tab shows the MCP address and a sample configuration. The key goes in the `Authorization: Bearer` header. Make sure your assistant lets you set that header: FluxOS MCP authenticates by key and does not use OAuth.

## Test

- “What is the Selic target today?”
- “What was the IPCA for the latest published month?”
- “On what date was the latest PTAX dollar rate published?”

## Where legacy takes its toll

Three truths, so your own company’s service doesn’t catch you by surprise:

- **This operation’s response is XML inside a string.** The Banco Central returns the result as a character string with XML in it. The assistant reads it without trouble, but it isn’t tidy JSON.
- **The other operations are rougher.** They use an old serialization format, with internal references between elements. They work, but the response is hard to read. That is why we chose the simplest one.
- **The WSDL doesn’t say what changes data.** FluxOS MCP estimates from the name: only operations that start with query words, such as `get`, `listar` or `consultar`, arrive marked as read. When in doubt, it treats the operation as a write.

Keep in mind: the importer reads WSDL 1.1 and does not follow externally imported files. If your company’s contract is split across several files, merge them first.

## Next tutorial

And when there is no contract at all, no WSDL, no OpenAPI, no documentation? The last tutorial shows how to [discover the API by watching the browser](https://www.fluxosmcp.com/en/blog/tutorial-no-api-documentation-discover-the-api-from-your-browser).
