> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# M8 Sistemas as an MCP

> Let your AI agents use M8 Sistemas in real time through the Nekt MCP Gateway.

M8 Sistemas is an ERP and CRM platform. With this MCP, your AI agents can read and write customer data, manage accounts payable and receivable, and handle CRM opportunities, quotes, and tasks directly in M8.

| | Available |
| :- | :- |
| **Nekt Express** | Yes |
| **GCP** | Yes |
| **AWS** | Yes |

## Adding M8 Sistemas as an MCP

Before you start, make sure the [MCP Server](https://docs.nekt.com/mcp-server/setup.md) is set up. See [MCPs](https://docs.nekt.com/mcps/overview.md) for how MCPs work.

1. Go to **Activate → [MCPs](https://app.nekt.ai/mcps)**, click **New MCP** and choose **M8 Sistemas**.
2. **Name your MCP** and describe what it is used for. The agent reads the description to choose between MCPs of the same provider.
3. **Setup access**. Provide the credentials of the user account the agent will act as. Nekt securely exchanges these for a short-lived token and renews it automatically; your password is never passed to the agent.
   * **Tenant**: The part of your M8 address after app.erpm8.cloud/ (e.g. for app.erpm8.cloud/acme, use acme). Required.
   * **Username**: The username you use to sign in to M8. Required.
   * **Password**: The password of that M8 user. Required.
   * **Company**: The ID of the establishment (company) the user works in, as shown in M8. Required.
   * **Domain**: Only if your M8 runs on another address. Leave empty for app.erpm8.cloud.
4. **Select tools**. Pick the tools your agents can use. See [Available tools](#available-tools) below.
5. Click **Save**. On Growth and Custom plans, choose who can use it; see [Access levels](https://docs.nekt.com/mcps/overview.md#access-levels).

## Example prompts

* "List the open accounts payable that are due next week."
* "Create a new CRM task for me to follow up on the new proposal, and set the priority to High."
* "Update the email address for the customer Acme Corp in the system."
* "Register the payment for the first installment of the invoice we received from Tech Supplies."

## Available tools

Choose which of these tools your agents can use in **Select tools**.

### Read tools

| Tool | Description | Parameters |
| :- | :- | :- |
| `consultar_contas_pagar` | Accounts payable by DUE DATE and situation (GET /v1/financeiro/contapagar/consulta). status: Aberto (open), Vencido (overdue), Baixado (paid) or Renegociado. M8 does not page this query, so the answer is cut at `limit` rows (max 1000): \{"data": \[title], "returned", "truncated"};… | `vencimento_final` (string, required), `vencimento_inicial` (string, required), `id` (integer), `limit` (integer), `status` (string), `documento` (string), `fornecedor_id` (integer) |
| `consultar_contas_receber` | Accounts receivable by DUE DATE and situation (GET /v1/financeiro/contareceber/consulta). status: Aberto (open), Vencido (overdue), Baixado (received) or Renegociado. Not paged by M8: cut at `limit` rows (max 1000): \{"data": \[title], "returned", "truncated"}. | `vencimento_final` (string, required), `vencimento_inicial` (string, required), `id` (integer), `limit` (integer), `status` (string), `documento` (string), `cliente_id` (integer) |
| `listar_clientes` | List M8 customers (GET /v1/configuracoes/cliente), one page at a time. Text filters (razao\_social, fantasia, cpf\_cnpj, codigo\_importacao) match by "Contains" unless kind="Equals". Dates are ISO date-times, e.g. "2026-11-01T00:00:00", and filter by last update. Returns \{"data": \[… | `id` (integer), `kind` (string), `page` (integer), `cpf_cnpj` (string), `fantasia` (string), `page_size` (integer), `razao_social` (string), `codigo_importacao` (string), `indicador_venda_id` (integer), `data_atualizacao_final` (string), `data_atualizacao_inicial` (string) |
| `listar_condicoes_pagamento` | List payment conditions (GET /v1/financeiro/condicaopagamento): the condicaoPagamentoId the titles and opportunities take. Each has id, nome, abreviatura, tipoPagamento (AVista, APrazo, Outros), meioPagamentoNome, quantidadeParcelas, intervaloParcelas. | `id` (integer), `kind` (string), `nome` (string), `page` (integer), `page_size` (integer), `meio_pagamento_id` (integer), `meio_pagamento_nome` (string), `quantidade_parcelas` (integer) |
| `listar_contas_pagar` | List accounts payable titles (GET /v1/financeiro/contapagar) by issue date, supplier or document. Returns \{"data": \[title], "page", "page\_size", "has\_more"}; each title has id, documento, fornecedorId, fornecedorNome, dataEmissao, dataEntrada, dataCompetencia, valor, saldo (what… | `id` (integer), `kind` (string), `page` (integer), `documento` (string), `page_size` (integer), `fornecedor_id` (integer), `data_emissao_final` (string), `data_emissao_inicial` (string) |
| `listar_contas_receber` | List accounts receivable titles (GET /v1/financeiro/contareceber) by issue date, customer or document. Returns \{"data": \[title], "page", "page\_size", "has\_more"}; each title has id, documento, clienteId, clienteNome, dataEmissao, dataCompetencia, valor, saldo (still open), statu… | `id` (integer), `kind` (string), `page` (integer), `documento` (string), `page_size` (integer), `cliente_id` (integer), `codigo_importacao` (string), `data_emissao_final` (string), `data_emissao_inicial` (string) |
| `listar_contatos_cliente` | List the contacts of an M8 customer (GET /v1/configuracoes/cliente/\<cliente\_id>/contato). Returns \{"data": \[contact], "page", "page\_size", "has\_more"}; each contact has id, nome, telefone, email, tipo (Padrao, Nota, Cobranca, Entrega, Retirada), cargoNome, observacao. | `cliente_id` (integer, required), `kind` (string), `page` (integer), `page_size` (integer) |
| `listar_oportunidades` | List CRM opportunities (GET /v1/crm/oportunidade). status\_oportunidade: Aberta or Fechada. etapa\_negociacao: Prospectando, VisitaTecnica, EmCotacao, EmNegociacao, FechadaConcretizada (won), FechadaPerdida (lost). Each opportunity has id, descricao, contaId, contaNome, vendedorNo… | `id` (integer), `kind` (string), `page` (integer), `conta_id` (integer), `descricao` (string), `page_size` (integer), `conta_nome` (string), `vendedor_id` (integer), `numero_pedido` (string), `numero_proposta` (string), `etapa_negociacao` (string), `status_oportunidade` (string) |
| `listar_orcamentos` | List quotes (GET /v1/crm/orcamento). status: EmAndamento, Concretizado, Perdido, Cancelado, Aprovado, Processado, Finalizado, GeradoRevisao, FinalizadoBloqueado. Each quote has id, numeroProposta, revisao, clienteId, clienteNome, descricao, status, dataEmissao, dataValidade, tot… | `id` (integer), `kind` (string), `page` (integer), `status` (string), `page_size` (integer), `cliente_id` (integer), `cliente_nome` (string), `numero_proposta` (string), `data_emissao_final` (string), `data_emissao_inicial` (string) |
| `listar_parcelas_conta_pagar` | List the installments of an accounts payable title (GET /v1/financeiro/contapagar/\<titulo\_id>/parcela). Each installment has id (the tituloParcelaId that baixar\_parcela\_conta\_pagar needs), numeroItem, vencimento, valor, saldo, meioPagamentoNome, codigoBarra. | `titulo_id` (integer, required), `page` (integer), `page_size` (integer) |
| `listar_parcelas_conta_receber` | List the installments of an accounts receivable title (GET /v1/financeiro/contareceber/\<titulo\_id>/parcela). Each installment has id (the tituloParcelaId for baixar\_parcela\_conta\_receber), numeroItem, vencimento, valor, saldo, condicaoPagamentoNome, vendedorNome, portadorNome. | `titulo_id` (integer, required), `page` (integer), `page_size` (integer) |
| `listar_tarefas` | List CRM tasks (GET /v1/crm/tarefa). Each task has id, titulo, descricao, data, prioridade (Baixa, Media, Alta, Urgente), status (Pendente, Finalizada), pessoaId, responsavelId, projetoId, dataFinal. | `id` (integer), `kind` (string), `page` (integer), `titulo` (string), `page_size` (integer), `pessoa_id` (integer), `data_final` (string), `projeto_id` (integer), `data_inicial` (string), `responsavel_id` (integer), `tarefa_status_id` (integer) |
| `obter_cliente` | Get one M8 customer by id (GET /v1/configuracoes/cliente/\<id>), with address, fiscal and credit fields (e.g. cpfCnpj, razaoSocial, logradouro, numero, bairroNome, municipioNome, ufSigla, cep, inscricaoEstadual, condicaoPagamentoId, bloqueado). | `id` (integer, required) |

### Write tools

| Tool | Description | Parameters |
| :- | :- | :- |
| `atualizar_cliente` | Change some fields of an M8 customer (PATCH /v1/configuracoes/cliente/\<id>). Partial: send in campos only what changes, with M8's field names, e.g. \{"razaoSocial": "...", "email": "..."}; fields left out keep their value. Unknown names are refused with the list of accepted ones.… | `id` (integer, required), `campos` (object, required) |
| `atualizar_conta_pagar` | REPLACE an accounts payable title (PUT /v1/financeiro/contapagar/\<id>). Not partial: M8 takes the whole title, so send every required field again (read it first with listar\_contas\_pagar) plus every optional field that should keep its value. Same fields as criar\_conta\_pagar. Retu… | `id` (integer, required), `valor` (number, required), `moeda_id` (integer, required), `documento` (string, required), `empresa_id` (integer, required), `data_emissao` (string, required), `data_entrada` (string, required), `fornecedor_id` (integer, required), `data_competencia` (string, required), `condicao_pagamento_id` (integer, required), `operacao_financeira_id` (integer, required), `campos_opcionais` (object) |
| `atualizar_conta_receber` | REPLACE an accounts receivable title (PUT /v1/financeiro/contareceber/\<id>). Not partial: send every required field again plus every optional field that should keep its value. Same fields as criar\_conta\_receber. Returns \{"id", "ids"}. | `id` (integer, required), `valor` (number, required), `moeda_id` (integer, required), `documento` (string, required), `cliente_id` (integer, required), `empresa_id` (integer, required), `especie_id` (integer, required), `data_emissao` (string, required), `data_entrada` (string, required), `condicao_pagamento_id` (integer, required), `operacao_financeira_id` (integer, required), `campos_opcionais` (object) |
| `baixar_parcela_conta_pagar` | Register the PAYMENT of one installment of an accounts payable title (POST /v1/financeiro/contapagar/\<titulo\_id>/baixa/parcela/\<titulo\_parcela\_id>). titulo\_parcela\_id comes from listar\_parcelas\_conta\_pagar; data is the payment date (ISO). Optional: valorJuros, valorMulta, valorD… | `data` (string, required), `valor` (number, required), `titulo_id` (integer, required), `historico_id` (integer, required), `conta_contabil_id` (integer, required), `meio_pagamento_id` (integer, required), `titulo_parcela_id` (integer, required), `campos_opcionais` (object) |
| `baixar_parcela_conta_receber` | Register the RECEIPT of one installment of an accounts receivable title (POST /v1/financeiro/contareceber/\<titulo\_id>/baixa/parcela/\<titulo\_parcela\_id>). titulo\_parcela\_id comes from listar\_parcelas\_conta\_receber; data is the receipt date (ISO). Optional: valorJuros, valorMulta,… | `data` (string, required), `valor` (number, required), `titulo_id` (integer, required), `historico_id` (integer, required), `conta_contabil_id` (integer, required), `meio_pagamento_id` (integer, required), `titulo_parcela_id` (integer, required), `campos_opcionais` (object) |
| `criar_cliente` | Create an M8 customer (POST /v1/configuracoes/cliente). The seven parameters are the fields M8 requires. Anything else goes in campos\_opcionais, with M8's own field names, e.g. \{"fantasia": "...", "email": "...", "telefone": "...", "bairroNome": "Centro", "municipioNome": "Chape… | `cep` (string, required), `numero` (string, required), `cpf_cnpj` (string, required), `logradouro` (string, required), `razao_social` (string, required), `tipo_pessoa_id` (integer, required), `classificacao_id` (integer, required), `campos_opcionais` (object) |
| `criar_conta_pagar` | Create an accounts payable title (POST /v1/financeiro/contapagar). The parameters are the fields M8 requires; dates are ISO date-times. condicao\_pagamento\_id comes from listar\_condicoes\_pagamento. Optional fields go in campos\_opcionais with M8's names, e.g. \{"especieId": 1, "cen… | `valor` (number, required), `moeda_id` (integer, required), `documento` (string, required), `empresa_id` (integer, required), `data_emissao` (string, required), `data_entrada` (string, required), `fornecedor_id` (integer, required), `data_competencia` (string, required), `condicao_pagamento_id` (integer, required), `operacao_financeira_id` (integer, required), `campos_opcionais` (object) |
| `criar_conta_receber` | Create an accounts receivable title (POST /v1/financeiro/contareceber). The parameters are the fields M8 requires; dates are ISO date-times. Optional fields in campos\_opcionais with M8's names, e.g. \{"dataCompetencia": "...", "pessoaVendaId": 7, "centroCustoId": 3, "observacao":… | `valor` (number, required), `moeda_id` (integer, required), `documento` (string, required), `cliente_id` (integer, required), `empresa_id` (integer, required), `especie_id` (integer, required), `data_emissao` (string, required), `data_entrada` (string, required), `condicao_pagamento_id` (integer, required), `operacao_financeira_id` (integer, required), `campos_opcionais` (object) |
| `criar_oportunidade` | Create a CRM opportunity (POST /v1/crm/oportunidade). The parameters are the fields M8 requires; dates and hora\_abertura are ISO date-times. Optional fields in campos\_opcionais with M8's names, e.g. \{"valorPrevisto": 15000.0, "vendedorId": 4, "probabilidade": 60, "contatoPessoaI… | `conta_id` (integer, required), `descricao` (string, required), `origem_id` (integer, required), `data_abertura` (string, required), `hora_abertura` (string, required), `empresa_grupo_id` (integer, required), `etapa_negociacao` (string, required), `previsao_fechamento` (string, required), `tipo_oportunidade_id` (integer, required), `campos_opcionais` (object) |
| `criar_tarefa` | Create a CRM task (POST /v1/crm/tarefa). data is an ISO date-time. Optional fields in campos\_opcionais with M8's names, e.g. \{"prioridade": "Alta", "pessoaId": 12, "responsavelId": 3, "dataFinal": "...", "detalhamento": "..."} (prioridade: Baixa, Media, Alta, Urgente; status: Pe… | `data` (string, required), `titulo` (string, required), `descricao` (string, required), `campos_opcionais` (object) |
| `excluir_conta_pagar` | Delete an accounts payable title (DELETE /v1/financeiro/contapagar/\<id>). Returns \{"deleted": id}. | `id` (integer, required) |
| `excluir_conta_receber` | Delete an accounts receivable title (DELETE /v1/financeiro/contareceber/\<id>). Returns \{"deleted": id}. | `id` (integer, required) |

## Troubleshooting

* **Access expired or revoked:** If the MCP shows that it needs to reconnect, the user password may have changed or the session was revoked. Go to the MCP's page and sign in again to restore access.
* **Missing permissions:** The agent performs actions with the permissions of the M8 user you provided during setup. If the agent is refused access to a specific record or is unable to create new entries, ensure that the user has the appropriate rights in M8.
* **Incorrect company ID:** A connection is strictly tied to a single M8 establishment. If the agent cannot find expected records, verify that the provided Company ID matches the establishment where those records exist.

## Need help?

Contact our support team if you have trouble connecting M8 Sistemas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.