# TOTVS Protheus [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mcp-dir/protheus-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/totvs-protheus

## Description
TOTVS Protheus ERP for AI: stock, sales, orders, customers and MRP. Read-only, official API.

## Tools
Capabilities this server exposes over MCP:

- **protheus_list_accounts** — Lista as instalações Protheus conectadas a este install, com id e label (host/usuário).
- **protheus_diagnostico** — Descobre quais APIs REST esta instalação Protheus realmente responde. Sonda cada API do catálogo oficial com uma consulta mínima e classifica em disponivel, ausente, sem_permissao ou erro. Rode isto primeiro numa conta nova: a TOTVS publica 125 APIs para a linha Protheus, mas cada instalação expõe um subconjunto, conforme a versão da LIB, os módulos licenciados e as customizações.
- **protheus_catalogo** — Consulta o catálogo das 125 APIs REST oficiais da linha Protheus (id, título, módulo e rotas de leitura), extraído da documentação pública da TOTVS. Serve para descobrir qual rota passar em protheus_api. É documentação, não disponibilidade: para saber o que esta instalação responde, use protheus_diagnostico.
- **protheus_api** — Faz um GET em qualquer rota REST da instalação Protheus conectada. Use para as APIs oficiais que não têm tool dedicada (descubra a rota com protheus_catalogo) e para os endpoints MVC customizados que a empresa criou. Somente leitura.
- **protheus_filiais** — Lista as empresas e filiais do grupo (API TSIBranches). É o ponto de partida prático: os códigos de empresa e filial daqui alimentam o header tenantId da conexão e os filtros branchId das demais tools.
- **protheus_modulos** — Lista os módulos do sistema Protheus nesta instalação. Indica o que está ativo e ajuda a explicar por que uma API responde ou não.
- **protheus_parametros** — Consulta os parâmetros de sistema do Protheus.
- **protheus_usuarios** — Lista os usuários do Protheus, ou consulta um usuário por id.

Bulk support: accepts ids for batched execution.
- **protheus_clientes_fornecedores** — Consulta o cadastro de clientes e fornecedores (API CustomerVendor). Sem filtro traz a coleção inteira; `tipo` separa a entidade e, junto com `id`, traz um registro específico.

Bulk support: accepts ids for batched execution.
- **protheus_contatos** — Lista os contatos do CRM, ou consulta um contato por id.

Bulk support: accepts ids for batched execution.
- **protheus_vendedores** — Lista os vendedores cadastrados, ou consulta um vendedor pelo código.

Bulk support: accepts ids for batched execution.
- **protheus_oportunidades** — Lista as oportunidades comerciais do CRM, ou consulta uma oportunidade pelo id interno.

Bulk support: accepts ids for batched execution.
- **protheus_propostas_comerciais** — Lista as propostas comerciais de uma oportunidade, ou consulta uma proposta específica. No Protheus a proposta vive dentro da oportunidade, então `oportunidade_id` é obrigatório.

Bulk support: accepts oportunidade_ids, ids for batched execution.
- **protheus_tabela_precos** — Consulta as tabelas de preço. Sem argumentos lista os cabeçalhos; com `codigo` traz uma tabela; com `codigo` e `itens` traz os itens e preços dela.
- **protheus_condicoes_pagamento** — Lista as condições de pagamento cadastradas, ou consulta uma pelo id interno.

Bulk support: accepts ids for batched execution.
- **protheus_limite_credito** — Consulta o limite de crédito dos clientes. Com `cliente_id` traz o limite de um cliente específico.

Bulk support: accepts cliente_ids for batched execution.
- **protheus_comissoes** — Consulta as comissões de venda, ou uma comissão pelo id interno.

Bulk support: accepts ids for batched execution.
- **protheus_transportadoras** — Lista as transportadoras cadastradas, ou consulta uma pelo id interno.

Bulk support: accepts ids for batched execution.
- **protheus_centros_custo** — Lista os centros de custo da contabilidade, ou consulta um pelo id interno.

Bulk support: accepts ids for batched execution.
- **protheus_produtos** — Consulta o cadastro de produtos. O Protheus expõe produto por módulo, então escolha a fonte: varejo (API de produtos do varejo) ou mrp (produto do planejamento de manufatura). São cadastros diferentes, não duas visões do mesmo.
- **protheus_estoque** — Consulta o saldo em estoque. Escolha a fonte: varejo (saldo em estoque do varejo) ou mrp (estoque do MRP, com armazém, lote e saldos bloqueado, consignado e em controle de qualidade). São módulos distintos e podem divergir.
- **protheus_vendas_varejo** — Consulta as vendas do varejo, ou uma venda pelo id interno. Exige o módulo de varejo publicado nesta instalação.

Bulk support: accepts ids for batched execution.
- **protheus_pedidos_varejo** — Lista os pedidos de venda do varejo. Com `id`, retorna os itens daquele pedido.

Bulk support: accepts ids for batched execution.
- **protheus_notas_totais** — Consulta os totais de notas fiscais de saída ou de entrada do varejo, incluindo a visão de notas canceladas.
- **protheus_ordens_producao** — Consulta as ordens de produção do MRP. Aceita filtros da própria API em `params` (branchId, product, warehouse, deliveryDate, startDate). Com `branch_id` e `codigo` traz uma ordem específica.

Bulk support: accepts branch_ids for batched execution.
- **protheus_compras_mrp** — Consulta os pedidos de compra ou as solicitações de compra do MRP. Aceita filtros da API em `params` (branchId, product, deliveryDate, warehouse). Com `branch_id` e `codigo` traz um registro específico.

Bulk support: accepts branch_ids for batched execution.
- **show_version** — Show the current MCP platform and adapter versions.
- **report_bug** — Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
- **connect** — Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
- **toolkit_info** — Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
- **marketplace** — The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.
- **authenticate** — MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "totvs-protheus": {
    "url": "https://api.mcp.ai/p_protheus"
  }
}
```

## Documentation

## What the TOTVS Protheus MCP server does

The TOTVS Protheus MCP server exposes read-only access to business information in a company's own TOTVS Protheus installation. It is an independent MCP service, not an official TOTVS product, and communicates with the installation through its official REST API.

The available coverage includes organizational data, master records, commercial information, inventory, sales, invoicing, manufacturing, and purchasing. Examples include branches and companies, modules, parameters, users, customers and vendors, CRM contacts, sales representatives, price lists, payment terms, credit limits, products, retail stock, MRP stock, retail sales and orders, invoice totals, production orders, and MRP purchase requests or orders.

All operations are read-only. The tools issue GET requests and do not create orders, settle invoices, modify records, or otherwise write to Protheus.

## How it works

Connect an MCP client to the hosted HTTP endpoint or another supported MCP connection method, then provide the REST service URL and Protheus credentials for the target installation. Requests go to that installation rather than to a shared ERP database or intermediary business-data source.

The diagnostic capability is useful before querying business records. Protheus deployments can differ by LIB version, licensed modules, and customizations, so an API documented by TOTVS may not be available on a particular installation. The diagnostic reports which APIs respond and whether access is available to the connected user. The catalog tool lists the documented Protheus REST APIs and their read routes, while the general API tool can issue a GET request to a route exposed by the installation, including custom routes.

The response data is passed to the MCP client and its selected LLM host. Access therefore depends on both the Protheus user's permissions and the data-handling policies of the client or model provider.

## Setup and configuration

Your IT team must make the Protheus REST service reachable by the service. HTTPS, IP restrictions, or a VPN may be appropriate for the deployment, but the network configuration is specific to the installation.

The hosted MCP endpoint is `https://api.mcp.ai/p_protheus`. Configuration requires the Protheus REST URL, username, and password.

## Tools and capabilities

The tool set contains 26 read-oriented operations, including:

- Discovering connected installations, available APIs, modules, parameters, users, branches, and companies.
- Calling any available Protheus REST route with a GET request.
- Querying customers, vendors, contacts, sellers, carriers, cost centers, products, and CRM opportunities.
- Reading price lists, payment conditions, commissions, credit limits, and commercial proposals.
- Checking retail and MRP inventory, including MRP warehouse, lot, and status details where supported.
- Reading retail sales, sales orders, inbound and outbound invoice totals, production orders, and MRP purchasing records.

Use the specialized tools when their supported data model matches the question. Use the generic API tool for routes that are available in the installation but are not covered by a specialized tool.

## Limitations and notes

Availability is installation-specific. A route can be present in TOTVS documentation but absent from a company's deployment because of version, licensing, module, or customization differences. The connected Protheus user also determines which records and endpoints can be seen.

The TOTVS Protheus MCP server does not replace REST exposure or network access requirements. If the installation's REST service is not reachable, the MCP connection cannot query it. It is also not affiliated with TOTVS.

_Full upstream README: https://allmcps.com/mcp/totvs-protheus/readme_

