---
title: "OpenAPI to MCP: turn your REST API into an MCP server | FluxOS MCP"
description: "Import your REST API's OpenAPI 3.x spec and publish an MCP server with no code: one tool per operation, credentials in a vault and per-client isolation."
url: "https://www.fluxosmcp.com/en/servidor-mcp/openapi"
lang: "en-US"
---

OpenAPI and REST APIs

# From an OpenAPI spec to an MCP server, with no code

Give the spec URL, paste the content or upload the file. FluxOS MCP reads your REST API's operations and proposes one MCP tool for each. You choose what to expose and publish.

[Talk to us](mailto:contato@fluxosmcp.com) [Documentation for this source](https://www.fluxosmcp.com/en/docs/origens/rest-openapi)

## How the source becomes MCP tools

| In the spec                       | In the MCP tool                                                                                                |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| operationId                       | Name in snake\_case: listOrders becomes list\_orders. Without it, the name comes from the method and the path. |
| summary and description           | The tool description, which you can adjust before creating it.                                                 |
| GET and HEAD                      | Read tool.                                                                                                     |
| POST, PUT, PATCH and DELETE       | Write tool, flagged as destructive in MCP and unchecked by default.                                            |
| Path, query and header parameters | Tool arguments. Path parameters are required.                                                                  |
| JSON body                         | Each top-level property becomes an argument.                                                                   |

Step by step

## From the source to an MCP server in four steps

1. ### Register the system
Type OpenAPI, the API's base URL and the company credential: Bearer token, username and password, or API key. It is stored in the encrypted vault.
2. ### Read the spec
By URL, pasted content or a JSON or YAML file. Operations are grouped by their first tag.
3. ### Choose the tools
Adjust names and descriptions, check what you want to expose and set the field that identifies the client in each operation.
4. ### Publish the MCP server
Pick or create the target server, publish it and generate a key for each client, with limits and the tools each key may call.

In every server

## What the MCP server already includes

### Per-client isolation

Every call carries who the client is. Each tool filters by the identifier of the key's owner, which the assistant cannot choose or change.

### Keys with limits

Per-minute and per-day limits, tools allowed per key, rotation with a grace period and instant revocation.

### Metered usage

Calls, errors and rejections by day, key and tool. That same metering checks the plan's included calls and, when it applies, the overage.

## Limits and things to watch

- OpenAPI 3.x specs, in JSON or YAML, up to 10 MB.
- Swagger 2.0 is not supported: convert the spec to OpenAPI 3 before importing.
- External references (`$ref` to another file) are not followed: use a self-contained spec.
- Only read operations come checked. You check write operations one by one.

## Going deeper

- [Documentation for this source](https://www.fluxosmcp.com/en/docs/origens/rest-openapi)
- [Tutorial: postal codes, holidays and rates in your AI assistant with OpenAPI](https://www.fluxosmcp.com/en/blog/tutorial-postal-codes-holidays-and-rates-in-your-ai-assistant-with-openapi)

## Other sources

- [SQL database](https://www.fluxosmcp.com/en/servidor-mcp/banco-de-dados-sql): PostgreSQL, MySQL and SQL Server: tools per table, with no SQL to write.
- [GraphQL](https://www.fluxosmcp.com/en/servidor-mcp/graphql): Each query and each mutation in the schema becomes an MCP tool.
- [SOAP and WSDL](https://www.fluxosmcp.com/en/servidor-mcp/soap): Legacy services with a WSDL become tools, with JSON responses.
- [Postman and cURL](https://www.fluxosmcp.com/en/servidor-mcp/postman-e-curl): No OpenAPI? Each request in the collection or each command becomes a tool.
- [Undocumented API (HAR)](https://www.fluxosmcp.com/en/servidor-mcp/api-sem-documentacao): Record a HAR file in the browser and get one tool per API call.

Frequently asked questions

## Questions about this source

Does it work with Swagger 2.0?

No. The importer reads OpenAPI 3.x and tells you when it receives Swagger 2.0\. Convert the spec to OpenAPI 3 and import the result.

Does the AI assistant see the API credential?

No. Authentication headers and parameters named like credentials are left out of the tools' input schema. The system credential stays in the vault and FluxOS MCP sends it on every call.

What if my API has no OpenAPI spec?

Import a Postman collection, paste cURL commands or upload a HAR file recorded in the browser. Each request becomes a tool in the same way.

## Publish your first MCP server

Connect the system, choose the tools and hand each client a key with limits.

[ Talk to us ](mailto:contato@fluxosmcp.com) [Log in](https://app.fluxosmcp.com/entrar)
