---
title: "Tutorial: turn your Postman collection into AI tools | FluxOS MCP Blog"
description: "Export a Postman collection, import it into FluxOS MCP, and every request becomes an MCP tool. A step-by-step guide using open BrasilAPI endpoints, no key needed."
url: "https://www.fluxosmcp.com/en/blog/tutorial-turn-your-postman-collection-into-ai-tools"
lang: "en-US"
---

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

# Tutorial: turn your Postman collection into AI tools

[Leia este artigo em português](https://www.fluxosmcp.com/blog/tutorial-sua-colecao-do-postman-vira-ferramentas-de-ia)

A lot of APIs have no OpenAPI spec. What they do have is a Postman collection that someone on the team built, tested and keeps up to date, because it is what everyone actually works with.

That collection already holds almost everything an MCP server needs: the URLs, the parameters and a name for each call. In this tutorial you will import a collection and walk away with three tools that look up a CNPJ (Brazilian company tax ID), a bank, and the cities covered by a DDD (Brazilian area code).

## What you need

- A team account on FluxOS MCP (the kind used by people who build servers).
- An AI assistant that supports remote MCP servers.
- No key: all three lookups come from [BrasilAPI](https://brasilapi.com.br/) and are open.

You do not need Postman installed to follow along, because the collection is ready to copy below. To use your own, export it from Postman in the **Collection v2.1** format.

## Step 1: create the system

The FluxOS MCP dashboard is still in Portuguese, so this tutorial shows each on-screen label as it appears, with its meaning in parentheses. Go to **Sistemas → Novo sistema** (Systems → New system):

- **Nome** (Name): BrasilAPI (Postman)
- **Tipo de origem** (Source type): Postman
- **URL base** (Base URL): `https://brasilapi.com.br/api`
- **Credencial da empresa** (Company credential): Nenhuma (None)

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

## Step 2: paste the collection

In the **Origem** (Source) step, choose **Colar conteúdo** (Paste content) and paste the collection below. If you prefer, save it as a `.json` file and use **Enviar arquivo** (Upload file).

```json
{
  "info": {
    "name": "BrasilAPI (recorte para teste)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{token}}", "type": "string" }]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://brasilapi.com.br/api" },
    { "key": "token", "value": "" }
  ],
  "item": [
    {
      "name": "Empresas",
      "item": [
        {
          "name": "Consultar CNPJ",
          "request": {
            "method": "GET",
            "description": "Devolve razão social, situação cadastral, endereço e atividade de uma empresa pelo CNPJ.",
            "url": {
              "raw": "{{baseUrl}}/cnpj/v1/:cnpj",
              "host": ["{{baseUrl}}"],
              "path": ["cnpj", "v1", ":cnpj"],
              "variable": [{ "key": "cnpj", "value": "00000000000191" }]
            }
          }
        }
      ]
    },
    {
      "name": "Bancos",
      "item": [
        {
          "name": "Consultar banco",
          "request": {
            "method": "GET",
            "description": "Devolve o nome e o ISPB de um banco pelo código de compensação.",
            "url": {
              "raw": "{{baseUrl}}/banks/v1/:codigo",
              "host": ["{{baseUrl}}"],
              "path": ["banks", "v1", ":codigo"],
              "variable": [{ "key": "codigo", "value": "1" }]
            }
          }
        }
      ]
    },
    {
      "name": "Telefonia",
      "item": [
        {
          "name": "Cidades por DDD",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/ddd/v1/:ddd",
              "host": ["{{baseUrl}}"],
              "path": ["ddd", "v1", ":ddd"],
              "variable": [{ "key": "ddd", "value": "11" }]
            }
          }
        }
      ]
    }
  ]
}

```

Click **Ler origem** (Read source).

One detail: the Postman importer reads pasted content or an uploaded file. The **URL** tab does not download collections.

## Step 3: see what the importer understood

The screen proposes three tools, one per request, grouped by the collection’s folders:

- `consultar_cnpj`, in the **Empresas** (Companies) group;
- `consultar_banco`, in the **Bancos** (Banks) group;
- `cidades_por_ddd`, in the **Telefonia** (Telephony) group.

Four things are worth noticing, because they explain how the importer thinks:

**The name comes from the request, not the folder.** “Consultar CNPJ” became `consultar_cnpj`: lowercase, no accents, with underscores. That is why it pays to give your requests good names in Postman.

**Every** `:variável` **in the path became an argument.** `:cnpj`, `:codigo` and `:ddd` are what the assistant will fill in. `{{baseUrl}}`, on the other hand, has a value in the collection, so it was substituted and does not show up as an argument.

**The collection’s authentication was dropped.** The sample collection has a `Bearer {{token}}` configured, on purpose. The importer does not bring in credentials from Postman: each tool’s description gets the notice “Credenciais da coleção omitidas” (Collection credentials omitted), and authentication is handled by the **credencial da empresa** registered on the system. A secret from a collection never ends up inside a tool. The same goes for headers and variables that look like a password or a token.

**All three come in as Leitura (Read).** They are `GET` calls. `POST`, `PUT` or `DELETE` requests show up as **Escrita · destrutiva** (Write · destructive) and deserve more attention.

## Step 4: adjust before creating

**Mark all three as Global.** FluxOS MCP keeps each client’s data separate, and every tool needs a client filter. Public data is the exception. The screen offers `path:cnpj`, `path:codigo` and `path:ddd` as filters. Do not pick any of them, because a CNPJ being looked up does not identify the client who is asking.

**Rewrite the descriptions.** Two of them came from the collection, with the credentials notice at the end. The third, which had no description in Postman, came in as “Chama GET /ddd/v1/{ddd}” (Calls GET /ddd/v1/{ddd}). None of them helps the assistant decide. Replace them with something like this:

- `consultar_cnpj`: “Use when the person provides a CNPJ and wants company details: legal name, registration status, address and line of business. Provide the CNPJ as 14 digits, numbers only.”
- `consultar_banco`: “Use to find a bank’s name from its Brazilian clearing code (for example, 1 or 341).”
- `cidades_por_ddd`: “Use to find the state and the cities served by a DDD (Brazilian area code). Provide the DDD as two digits.”

Click **Revisar 3 ferramentas** (Review 3 tools).

## Step 5: create the server

In the **Resumo** (Summary) step, under **Servidor MCP de destino** (Target MCP server), choose **Criar novo servidor…** (Create new server…), name it “Cadastro público” and give it the address `cadastro-publico`. Click **Criar 3 ferramentas** (Create 3 tools).

Each tool is created with its own three-block workflow: **Chamado via MCP** (Called via MCP), the HTTP request, and **Responder ao MCP** (Respond to MCP).

## Publish and hand out a key

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.
3. On the client’s **Acesso e portal** (Access and portal) tab, use **Liberar servidor** (Grant server) 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. The key goes in the `Authorization: Bearer` header.

## Test with three questions

- “What is the registration status of CNPJ 00.000.000/0001-91?”
- “Which bank has code 341?”
- “Which state does DDD 47 belong to? Name five cities.”

In the first one, notice that you wrote the CNPJ with punctuation and the tool asks for numbers only. A good assistant cleans up the value before calling, **if the description states the format**. That is what the adjustment in step 4 was for.

## With your own collection: what to watch for

- **Format.** The importer accepts Collection v2.0 and v2.1\. Older formats are rejected with a message asking you to export in one of those versions.
- **Address.** The requests must point to the same server as the system’s **URL base**. A collection that mixes two services becomes two systems.
- **Variables without a value.** A `{{variavel}}` that the collection does not define becomes a required argument of the tool. If it is something fixed in your environment, set the value in the collection before exporting.
- **Request body.** JSON, form and text bodies are imported, and variables inside the JSON become arguments. File uploads and binary bodies are left out.
- **Large collections.** A working collection usually has dozens of requests, many of them for testing. Do not import everything: use the search and selection in the **Ferramentas** (Tools) step to keep the few that answer real questions.
- **Writes.** Start with the read-only ones. The ones that change data come later, one at a time.

## Next step

The three tools in this tutorial return the API response exactly as it arrives. The CNPJ one, for example, brings back dozens of fields. In the next article, we take that same tool and turn it into a small flow: [it looks up, decides, and answers with only what matters](https://www.fluxosmcp.com/en/blog/from-endpoint-to-workflow-a-tool-that-looks-up-decides-and-answers).

If your API has a spec, the path is the [OpenAPI tutorial](https://www.fluxosmcp.com/en/blog/tutorial-postal-codes-holidays-and-rates-in-your-ai-assistant-with-openapi). If it does not even have a collection, you can [discover the calls through the browser](https://www.fluxosmcp.com/en/blog/tutorial-no-api-documentation-discover-the-api-from-your-browser).
