---
title: "Tutorial: no API documentation? Discover the API from your browser | FluxOS MCP Blog"
description: "With no OpenAPI spec or WSDL, you can still create MCP tools from the calls your browser makes. A step-by-step guide using a HAR file and public postal code data."
url: "https://www.fluxosmcp.com/en/blog/tutorial-no-api-documentation-discover-the-api-from-your-browser"
lang: "en-US"
---

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

# Tutorial: no API documentation? Discover the API from your browser

[Leia este artigo em português](https://www.fluxosmcp.com/blog/tutorial-a-api-nao-tem-documentacao-descubra-pelo-navegador)

Some systems have no documentation. The API exists, the screen works, but nobody wrote the specification, or whoever wrote it left the company in 2019.

But there is one witness that knows exactly how the API works: **the browser**. Every time the screen loads a piece of data, it makes a call and records the address, the parameters and the response. That record can be exported to a file called a **HAR**.

FluxOS MCP reads that file and proposes one tool for each call. In this tutorial you do it with public CEP (Brazilian postal code) data, to learn the path with no risk.

## Step 1: generate the calls

Normally you would just use the system’s screen and let the browser record. Since here we want an example anyone can reproduce, we’ll fire the calls by hand.

1. Open `https://brasilapi.com.br` in Chrome.
2. Press **F12** and go to the **Network** tab.
3. Go to the **Console** tab and paste, one line at a time:

```js
fetch('/api/cep/v2/01001000')
fetch('/api/cep/v2/20040020')
fetch('/api/feriados/v1/2026')
fetch('/api/taxas/v1')

```

1. Go back to the **Network** tab. The four calls are there.
2. Right-click the list and choose **Save all as HAR** (or use the **Export HAR** button).
![F12 > Network > Export HAR](https://www.fluxosmcp.com/api/public/blog/images/0cc0e2e2d57e6b4093d1793f2bd94392)

You have just done, in miniature, what you would do on your company’s system: use the screen and save what the browser saw.

## Step 2: create the system

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

- **Nome** (Name): BrasilAPI (discovery)
- **Tipo de origem** (Source type): Descoberta automática (Automatic discovery)
- **URL base** (Base URL): `https://brasilapi.com.br`
- **Credencial da empresa** (Company credential): Nenhuma (None)

The base URL is optional, but it helps: with it, only the calls to that server are proposed. Anything else the page loaded is left out.

## Step 3: upload the HAR

Click **Criar e importar** (Create and import), go to the **Arquivo HAR** (HAR file) tab, choose the file and click **Ler HAR** (Read HAR).

Before uploading, the screen itself discards images, scripts and style sheets. What’s left is what matters.

## Step 4: see what was discovered

You made four calls, but **three** tools show up:

- `get_api_cep_v2_por_id`, observed 2 times
- `get_api_feriados_v1_por_id`
- `get_api_taxas_v1`

The importer noticed that `/cep/v2/01001000` and `/cep/v2/20040020` are the same call with a different value in the path, and turned that segment into an argument. This is how it infers an API’s parameters without anyone having told it.

Under **Ver resposta** (View response), each tool shows a sample of what the API returned, and the description already comes with a summary: “Devolve objeto com cep, city, ibge, location, neighborhood…” (Returns an object with cep, city, ibge, location, neighborhood…)

## Step 5: fix what the machine has no way of knowing

Discovery sees the shape, not the meaning. Three adjustments:

**Names and argument.** The argument is called `id`, because all the importer saw was a number in the path. Make that clear in the description:

- `consultar_cep`: “Returns the address for a CEP (Brazilian postal code). Provide the 8-digit CEP in `id`, numbers only.”
- `listar_feriados`: “Lists the national holidays. Provide the 4-digit year in `id`.”
- `listar_taxas`: “Returns the Selic, CDI and IPCA rates (Brazil’s benchmark interest rate, interbank rate and inflation index).”

**Global.** The screen offers `path:id` as the client filter. Here it isn’t one: mark all three as **Global**.

**Server.** Create “Public data (discovery)”, with the address `dados-descoberta`.

## 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 address for CEP 20040-020?”
- “How many national holidays does 2026 have?”

## On your company’s system: what changes

- **The HAR carries secrets.** A file exported from a system with a login contains cookies and tokens. FluxOS MCP removes cookies, `Authorization` and values that look like secrets before storing anything, and reduces the responses to short samples. Even so, **treat the file as confidential** and delete it after importing.
- **The browser session is not reused.** To actually call the API, you register a dedicated credential for the system.
- **Only what you used gets in.** If you didn’t click the export report button, that call is not in the HAR.
- **Writes come unchecked.** Calls that change data show up flagged as destructive and you decide on them one by one.
- **The client filter calls for extra care.** The screen offers the fields it found, and the first one on the list may be just any `id`. Check before publishing.

There is also a second mode, **Abrir página** (Open page), in which the server itself opens the URL and records the calls, with no HAR. It is meant for public pages, with no login, and depends on the installation having the capture browser configured.

## Wrapping up the series

With this one, you have covered five paths to the same destination:

- [OpenAPI](https://www.fluxosmcp.com/en/blog/tutorial-postal-codes-holidays-and-rates-in-your-ai-assistant-with-openapi), when there is a specification;
- [cURL](https://www.fluxosmcp.com/en/blog/tutorial-stock-quotes-in-your-ai-assistant-with-a-curl-command), when there is an example in the documentation;
- [GraphQL](https://www.fluxosmcp.com/en/blog/tutorial-turn-a-public-graphql-api-into-an-ai-tool), when the API describes itself;
- [SOAP](https://www.fluxosmcp.com/en/blog/tutorial-soap-isnt-dead-connect-brazils-central-bank-to-your-ai-assistant), when the service is legacy;
- and discovery from the browser, when there is nothing at all.

The system changes, the script doesn’t: connect, choose a few tools, describe them well, publish and hand over a key with a limit. Before doing this with data that isn’t public, go through the [seven security questions](https://www.fluxosmcp.com/en/blog/7-questions-to-ask-before-connecting-ai-to-your-companys-data).
