---
title: "REST and OpenAPI | FluxOS MCP documentation"
description: "Import an OpenAPI 3.x specification and turn each operation of your REST API into an MCP tool, with a client filter and the credential kept in the vault."
url: "https://www.fluxosmcp.com/en/docs/origens/rest-openapi"
lang: "en-US"
---

Documentation

# REST and OpenAPI

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

Use this source when your REST API has an OpenAPI specification. Each operation (an HTTP method on a path) becomes an MCP tool.

## What gets imported

- **OpenAPI 3.x** specifications, in JSON or YAML. Swagger 2.0 is not supported, and the import tells you so.
- External references (a `$ref` to another file) are not followed: use a self-contained specification.
- Maximum size of 10 MB.
- The `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, and `HEAD` methods of each path.

## What you need on hand

- The specification: a public **URL**, the pasted **content**, or a **file** (`.json`, `.yaml`, `.yml`).
- The API’s **base URL**. If you do not set one on the system, the first item under `servers` in the specification is used. With neither, creating the tools fails and asks for the base URL.
- A **credential** (Bearer token, username and password, or an API key in a header or query parameter), if the API requires authentication.
- Knowing **which parameter, header, or body field identifies the client** in each operation (for example `cliente_id`).

Internal network addresses are blocked when downloading the specification by URL, unless the installation has explicitly allowed them.

## Step by step on screen

1. **Credenciais ou Sistemas → Novo sistema** (Credentials or Systems → New system). Choose the **OpenAPI** type, then enter the name, the base URL, and the company credential (or create one right there).
![New OpenAPI system](https://www.fluxosmcp.com/_astro/02-novo-sistema.PwGOwc0d_1GVt2j.webp)
2. **Criar e importar** (Create and import). In the **Origem** (Source) step, enter the specification URL, paste the content, or upload the file, and click **Ler origem** (Read source).
![Import source](https://www.fluxosmcp.com/_astro/04-importar-origem.J0zU6qBS_Z12FYHC.webp)
3. In the **Ferramentas** (Tools) step, each operation appears grouped by its first _tag_. Adjust the name and description, choose the client filter or select **Global**, and pick what you want to expose.
![Proposed tools](https://www.fluxosmcp.com/_astro/05-ferramentas-propostas.xWZdgLrO_2nGwjg.webp)
4. In the **Resumo** (Summary) step, choose or create the MCP server and click **Criar N ferramentas** (Create N tools). Then publish the server (see the [quickstart](https://www.fluxosmcp.com/en/docs/inicio-rapido)).

## How operations become MCP tools

| In the specification                                     | In the tool                                                                                                                                                                                     |
| -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| operationId                                              | Name in snake\_case (listarPedidos becomes listar\_pedidos). Without an operationId, the name comes from the method and the path (get\_pedidos\_por\_id). Duplicate names get a numeric suffix. |
| summary and description                                  | Description (the two combined, up to 1,500 characters). With no text, the description is “Chama a operação GET /caminho da API.” (Calls the API’s GET /path operation.)                         |
| First tag                                                | Group on the import screen                                                                                                                                                                      |
| GET and HEAD                                             | **Read** tool                                                                                                                                                                                   |
| Other methods                                            | **Write** tool, marked as destructive in MCP                                                                                                                                                    |
| Path, query, and header parameters                       | Top-level arguments with the parameter’s name. Path parameters are required.                                                                                                                    |
| JSON or x-www-form-urlencoded body with known properties | **Flattened**: each top-level property becomes an argument. If the name collides with a parameter, it gets the body\_ prefix. readOnly properties are left out.                                 |
| Body in another format, a list, or a free-form object    | A single body argument                                                                                                                                                                          |

The input schema leaves out the `Authorization`, `Accept`, `Content-Type`, `Content-Length`, and `Host` headers, the ones the specification itself declares as an API key, and any header or parameter whose name looks like a credential (`token`, `secret`, `password`, `cookie`, `apikey`, and the like). The system’s credential takes care of authentication.

The tool’s result is the body of the HTTP response.

### Client filter

The screen offers the parameters and top-level body fields as client filter options, in the notation `path:nome`, `query:nome`, `header:Nome`, and `body:nome`. The ones that look like a client identifier come first. Once you choose one, the field disappears from the input schema and always receives the identifier the organization’s team registered for the key’s client. The AI cannot supply it or override it.

Tools that return the same data for everyone (a public price list, for example) should be marked as **Global**.

## Limits and precautions

- **Only reads come selected.** Write operations appear deselected and with the “Escrita · destrutiva” (Write · destructive) badge. Select only the ones you want to expose.
- **Review the client filter.** The screen preselects the first option in the list. Check that it really is the field that identifies the client.
- **Descriptions in a specification tend to be weak for the AI.** Rewrite each tool’s name and description before publishing: that is what the assistant reads to choose.
- **Too many operations make things worse.** Import only what makes sense; the screen has search and selection by group.
- **Execution:** a call has a default timeout of 30 seconds and a response of up to 10 MiB. A response with status 400 or higher becomes a tool error.
- **The credential only goes to the server of the base URL.** It is not sent to other hosts.
- **Free-text bodies** (XML or a form assembled as text) can let an argument inject structure. Prefer operations whose body is an object.
- We checked the import with sample specifications and with a local test API. No real client system was used.
