---
title: "APIs without a spec (HAR and capture) | FluxOS MCP documentation"
description: "No OpenAPI or Postman? Open the system's page or upload a HAR file from your browser, and FluxOS MCP proposes one MCP tool per API call."
url: "https://www.fluxosmcp.com/en/docs/origens/har"
lang: "en-US"
---

Documentation

# APIs without a spec (HAR and capture)

The FluxOS MCP dashboard is currently in Portuguese. Screen labels appear here as you will see them, with the English meaning alongside.

Many systems have a web interface that already consumes an API, but nobody maintains a specification for it. **Automatic discovery** reads the calls that page makes, the way the **Network** tab in DevTools (F12) shows them, and proposes one MCP tool per call.

## What gets imported

API calls (`XHR` and `fetch`) made by the page, in a **HAR** document (the format browsers export). The HAR can come in two ways:

- **Abrir página** (Open page): the server opens the URL in a headless Chromium, waits for the network to go idle, and records the calls.
- **Arquivo HAR** (HAR file): you export it from your browser (or paste the content). Use this for pages that require a login or clicks.

Left out: the HTML document, scripts, styles, images, fonts, `OPTIONS` (preflight) and `HEAD` requests, calls with no response, and well-known analytics and advertising services (Google Analytics, Hotjar, Sentry, and others).

## What you need on hand

- For **Abrir página**: the page URL. It must be reachable by the server, with no login. The installation must have the capture browser configured; without it, the system responds that you need to upload a HAR.
- For **Arquivo HAR**: the file. In your browser, open the page, press F12, go to the **Network** tab, use the page normally, and export with **Export HAR** (or right-click, **Save all as HAR**).
- A **system credential** to actually call the API (the page’s own credential is not stored, see below).
- The **base URL** is optional. With it, only calls to that server are proposed and the credential only goes to it. Without it, every origin the page called is included.

## Step by step on screen

1. **Sistemas → Novo sistema** (Systems → New system), type **Descoberta automática** (Automatic discovery). Enter the base URL (optional) and the credential.
![New discovery system](https://www.fluxosmcp.com/_astro/30-descoberta-novo-sistema.CDjmqAAR_cB5P9.webp)
2. **Criar e importar** (Create and import). Under **Abrir página**, enter the URL and click **Descobrir chamadas** (Discover calls). It takes a few seconds.
![Open page](https://www.fluxosmcp.com/_astro/31-descoberta-abrir-pagina.CsVG1GUQ_Z1NOvWg.webp)
Or, on the **Arquivo HAR** tab (or **Colar HAR**, Paste HAR), upload the file and click **Ler HAR** (Read HAR). Before uploading, the screen itself discards images, scripts, and large bodies, and tells you how many requests could be API calls.
![HAR file](https://www.fluxosmcp.com/_astro/33-descoberta-arquivo-har.DDO2Ym0Q_Z2jP7CL.webp)
3. Choose the calls. Each one appears with its method, route, observed status and, under **Ver resposta** (View response), a reduced sample and the inferred schema.
![Discovered calls](https://www.fluxosmcp.com/_astro/32-descoberta-chamadas.OTra2Se0_10blxG.webp)
4. Adjust the name and description, choose the client filter (or **Global**), and create the tools.

## How calls become MCP tools

- **Input:** path segments that look like identifiers (numbers, UUIDs, hexadecimal ids) become required parameters: `/pedidos/42` and `/pedidos/43` are the same tool, `/pedidos/{id}`. Query parameters and top-level body fields (JSON or form) become optional arguments, with the observed value as the `default`. Parameters that only bust the cache (`_`, `_t`, timestamps) are ignored.
- **API-specific headers** (such as `X-Tenant`) are fixed to the observed value and can be chosen as the client filter.
- **Name:** derived from the method and the path (`get_pedidos_por_id`).
- **Output:** the tool returns the response body. The observed response is summarized in the description (“Devolve objeto com itens (lista de objetos com id, status, valor)”, meaning it returns an object with items, a list of objects with id, status, and value), which helps the AI choose the tool.
- **Type:** `GET` is a read; the other methods are writes, marked as destructive. Only reads with a successful response come selected.
- **Client filter:** `path:nome`, `query:nome`, `header:Nome`, or `body:nome`.

## Capture security

- **The browser does not access the network.** Every request from the page is intercepted and made by the server, with the same protection against access to internal addresses (SSRF) as the other imports. Images, fonts, and media are refused without going to the network; anything that escapes interception (WebSocket, workers) fails.
- **In production, the browser runs in a separate container, on an internal network with no route to the internet**, and only the API talks to it.
- **No stored credentials.** Before storing the HAR in the system, the server removes cookies, `Authorization`, browser headers, and parameters and fields whose name or value looks like a secret, and reduces responses to short samples (3 items per list). The **names** of what was removed appear in the tool’s description; the values never do. In one of our tests, the `Authorization` header the page was sending was removed and the description now said “Credenciais da captura omitidas (Authorization)” (capture credentials omitted). Tool authentication uses the system’s credential.

## Limits and precautions

- **Capture limits:** 25 seconds, 400 requests, 15 MB per response, 2 simultaneous captures. The stored HAR keeps up to 300 entries, at most 5 per distinct call.
- **The capture only sees what the page does on its own** when it opens. Flows with a login, clicks, or forms require the HAR from your browser.
- **Check the HAR before uploading it.** A file exported from a logged-in session carries the personal data the page displayed. The stored samples are reduced and free of secrets, but the original file is yours.
- **The output schema is inferred from a sample:** fields that did not show up in the capture are not in it.
- **Review the client filter.** The screen preselects the first option; for `/pedidos/{id}` it was `path:id`, which is the order id and not the client’s. Change it or mark the tool as **Global**.
- **GraphQL and WebSocket** do not become dedicated tools: a GraphQL POST becomes an HTTP tool with `query` and `variables` as arguments. For GraphQL, prefer the [GraphQL source](https://www.fluxosmcp.com/en/docs/origens/graphql).
- Calls that depend on the page’s session cookie do not work with the system’s credential alone (Bearer, Basic, or API key).

## Other options for APIs without a spec

The source type also accepts **cURL** (pasted commands, one per block; nothing is executed, the text is only read) and **Postman** (an exported v2.0 or v2.1 collection). In both, credentials from the command or the collection are omitted and values marked as `{{nome}}`, `<nome>`, or `:nome` become parameters. These two importers were tested with sample files, not with real systems.
