---
title: "Security | FluxOS MCP documentation"
description: "How FluxOS MCP protects credentials, keeps each client's data separate, limits access keys, and records what happens, plus the known limitations."
url: "https://www.fluxosmcp.com/en/docs/seguranca"
lang: "en-US"
---

Documentation

# Security

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

This page describes what FluxOS MCP does today, and also what it does not do yet. Every item corresponds to code that exists in the product.

## Credential vault

The credentials for your systems (token, username and password, API key, database connection URL, AI provider key) are kept in the **vault**.

- **Encryption:** AES-256-GCM. Each encrypted value is bound to the credential it belongs to: it cannot be copied into another one.
- **Master key outside the database:** the key that encrypts the vault is not stored in the database, and it can be replaced without losing the credentials.
- **The secret never comes back:** the API does not return the contents of a credential. When editing, leaving the field blank keeps the stored secret; changing it requires entering everything again.
- **Masking:** the HTTP, GraphQL, SOAP, and SQL blocks and the imports strip secret values from error messages, so they never reach the assistant or the screens.
- **Use restricted to the destination:** a system’s credential is only sent to the server of that system’s base URL, and a URL cannot carry an embedded username and password.
- **Imports:** stored content (for example, the HAR from discovery) goes through a cleanup that removes cookies, authorization headers, and values that look like secrets.

## Per-client isolation

Several companies use the same MCP server and the same credential for the source system. The isolation has layers:

1. **The client comes from the key, never from the AI.** The MCP server works out the client from the authenticated key. No tool argument or header changes that, and the execution runs in that client’s scope.
2. **A client filter on every tool.** The client’s identifier in the source system is stored in the client’s record. Tools inject it as a parameter, header, column, or argument and hide it from the schema the AI sees. In SQL, the block applies the filter to reads, updates, and deletes, and fills in the column on inserts.
3. **Publishing lock.** A tool with no client filter that is not marked as global does not publish.
4. **Optional RLS in the source database** (PostgreSQL and SQL Server): a second layer enforced by the database itself, described on the [SQL database](https://www.fluxosmcp.com/en/docs/origens/sql) page.
5. **Isolation in the platform’s own database.** The platform’s database itself keeps each organization’s and each client’s data apart. Even with a bug in the code, an operation performed on behalf of client A cannot read or write client B’s data, and one organization cannot see what belongs to another.

**What you need to review.** Be critical when you configure it:

- For **saved SQL queries**, publishing confirms that the query uses `:cliente`, not that it uses it correctly. Human review is mandatory.
- **MySQL** has no RLS: isolation depends on the client filter alone.
- A client that registered through self sign-up has no identifier in the source systems: it can only use global tools until the organization’s team registers one.

## Access keys with limits

- **Storage:** the key is random and is shown **only once**; the database stores only its hash and prefix.
- **Bound to one client and one server.** It goes in the `Authorization: Bearer` header. An MCP session is bound to the key that opened it.
- **Allowed tools:** all of them or a list, per key. A tool that is disabled, blocked, or not on the list gets the same “not found” response, without revealing which case applies.
- **Per-minute and per-day limits**, per key. The day is the calendar day in São Paulo. The refusal returns “Limite de chamadas desta chave excedido. Tente de novo em N segundos.” (Call limit for this key exceeded. Try again in N seconds.)
- **Cap per client and server (access grant):** tools, maximum per minute and per day, and number of active keys. It applies to all of the client’s keys, and anyone creating keys in the portal can only create them within it. Lowering the cap takes effect immediately, with no need to edit the keys.
- **Rotation with a grace period:** in the portal, the manager rotates a key and the old one stays valid for a grace period of 0 to 168 hours (24 by default). Once the grace period is over, the key shows as “Expirada” (Expired).
- **Immediate revocation.** A revoked key is refused on the next call.
- **Suspended or canceled client:** calls are refused (403) right at authentication; a subscription awaiting payment or with an overdue monthly invoice is refused with a 402 until it is paid.
- **Metering:** calls, errors, and refusals per day, key, and tool; the built-in tool `consultar_uso` lets the agent see its own consumption.
- **Endpoint protections:** request size is limited, arguments are validated against the published schema, origins are checked, and responses carry security headers.

## Auditing

What exists, and nothing beyond it:

- **Per-client audit log.** Every access action writes an entry with the date, who did it (the organization’s team or the client, by name), the key prefix when there is one, and a detail. The recorded actions are: key created, rotated, revoked, and changed; access grant changed and removed; portal user created and changed; subscription and invoice updated. The organization’s team sees it on the client’s **Acesso e portal** (Access and portal) tab; the client sees it on the portal’s **Atividade** (Activity) page. Entries are kept for 730 days.
- **Execution history.** Every MCP call becomes an execution, with the key and the client that made it, step by step, and can be viewed under **Execuções** (Executions). Step details are kept for 30 days.
- **Workflow versions.** Every publication is an immutable version, with a record of who published it, and you can roll back to an earlier version.

**What does not exist as a feature:** a general audit trail of “every change” in the dashboard. Changes to credentials, systems, servers, roles, and dashboard users do not generate audit entries of their own.

## Dashboard and portal access

- **Roles and permissions:** Administrador (Administrator), Editor, and Leitura (Read-only), plus custom roles. Every write action checks the permission of whoever performs it. Whoever manages roles can only grant what they have themselves.
- **Passwords:** stored with a strong hash; 12 to 200 characters and different from the email; mandatory change on first sign-in (temporary password shown once).
- **Two-step verification:** authenticator app (TOTP) and email code, with single-use recovery codes. Roles can require the second factor; Administrador does. Second-factor secrets are encrypted by the vault.
- **Session:** protected cookie with an expiration. Deactivating a user ends their sessions.
- **Sign-in attempts:** limited, with an increasing wait.
- **CSRF protection** on writes.

## Other protections

- **Access to internal networks (SSRF) is blocked by default** in imports, in the HTTP, GraphQL, and SOAP blocks, in discovery, and in SQL connections.
- **SQL parameters are always bound.** Saved queries are limited to one statement, and commands that change the session’s security context are refused.
- **Errors** come back to the assistant as a tool error, with no internal details.

## Not available yet

- OAuth on the MCP server (authentication uses a static key; the exception is servers published on the marketplace as public, which accept calls without a key, identified by a `client_id`, with their own limits).
- Social login.
