TOTVS Protheus
MCP serverDev toolsOnce added, your AI can answer questions using data from your TOTVS Protheus ERP, covering stock, sales, orders, customers and materials planning (MRP). It reads data through the official Protheus API and cannot change anything, since access is read-only. This lets you ask about your business information in plain language instead of digging through the ERP yourself.
Use TOTVS Protheus in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add TOTVS Protheus and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the protheus list accounts tool from TOTVS Protheus
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
Details
Available today. Use it from your connected AI after setup.
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
After adding it, ask your AI things like how much stock is on hand, which orders are open, or what your sales look like. Since it can only read data, use it for lookups and questions rather than changes.
What your AI can do with it
- Check current stock levels
- Review sales data
- Look up orders and their details
- Find customer information
- Answer questions about materials planning (MRP)
Install TOTVS Protheus
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user totvs-protheus 'https://api.mcp.ai/p_protheus'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://api.mcp.ai/p_protheusAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=totvs-protheus&config=eyJ1cmwiOiJodHRwczovL2FwaS5tY3AuYWkvcF9wcm90aGV1cyJ9Open the link and Cursor adds the server at that address.
ChatGPT
https://api.mcp.ai/p_protheusIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add totvs-protheus --url 'https://api.mcp.ai/p_protheus'Run it once, then sign in with codex mcp login totvs-protheus if the server asks for an account.
From the project's README
As published by mcp-dir/protheus-mcp in README.md.
TOTVS Protheus MCP, your ERP answering in plain language
Talk to your company's TOTVS Protheus ERP from Claude, ChatGPT or any MCP client. It runs on the official TOTVS REST API, against your own installation: you provide the REST service URL and your Protheus user and password, and nothing goes through an ERP middleman. Unlike the Protheus MCPs that already exist, which are developer tools (compiling AdvPL, searching the TDN), this one reads business data: branches, customers and vendors, products, stock, price lists, sales and orders, invoice totals, production orders and MRP purchasing. Read-only. Not affiliated with TOTVS.
- 🏢 Your Protheus, not a middleman — connects to your company's installation through the official TOTVS REST API
- 🔎 Finds out what YOUR installation answers — every Protheus publishes a different set of APIs, and the diagnostic maps it in one question
- 📦 Business data, not a dev tool — branches, customers and vendors, products, stock, price lists, sales, orders, invoice totals, production orders and MRP purchasing
- 🧩 Calls any REST route, including the custom endpoints your company built in Protheus
- 🔒 Read-only — v1 only queries, it never writes to the ERP
- 💬 Works with any MCP client: Claude Desktop, ChatGPT, Cursor, VS Code, Cline, Continue
Versão em português · Full docs (PT-BR) · Agent skill
One-click install
Claude (Web and Desktop)
Anthropic unified MCP installation at claude.ai/customize/connectors. The same link works for Claude Web and Claude Desktop (just be logged in):
Manual (if the deeplink does not open): claude.ai/customize/connectors → + → Add custom connector → paste Name TOTVS Protheus and URL https://api.mcp.ai/p_protheus.
Cursor
➕ Install TOTVS Protheus in Cursor
VS Code (Copilot Chat)
➕ Install TOTVS Protheus in VS Code
ChatGPT, Manus, OpenClaw and 40+ other clients
Works with any MCP client that speaks MCP over HTTP. The server URL is always:
https://api.mcp.ai/p_protheus
Per-client details: INSTALL.md.
Example prompts
Which Protheus APIs does my installation answer?
List the group's branches with their company codes
What is today's stock balance by product?
Show price list 001 with its items
Which production orders are scheduled for this week?
What is customer X's credit limit?
26 tools available
| Tool | Description |
|---|---|
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. |
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. |
protheus_api | Faz um GET em qualquer rota REST da instalação Protheus conectada. |
protheus_filiais | Lista as empresas e filiais do grupo (API TSIBranches). |
protheus_modulos | Lista os módulos do sistema Protheus nesta instalaçã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. |
protheus_clientes_fornecedores | Consulta o cadastro de clientes e fornecedores (API CustomerVendor). |
protheus_contatos | Lista os contatos do CRM, ou consulta um contato por id. |
protheus_vendedores | Lista os vendedores cadastrados, ou consulta um vendedor pelo código. |
protheus_oportunidades | Lista as oportunidades comerciais do CRM, ou consulta uma oportunidade pelo id interno. |
protheus_propostas_comerciais | Lista as propostas comerciais de uma oportunidade, ou consulta uma proposta específica. |
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. |
protheus_limite_credito | Consulta o limite de crédito dos clientes. |
protheus_comissoes | Consulta as comissões de venda, ou uma comissão pelo id interno. |
protheus_transportadoras | Lista as transportadoras cadastradas, ou consulta uma pelo id interno. |
protheus_centros_custo | Lista os centros de custo da contabilidade, ou consulta um pelo id interno. |
protheus_produtos | Consulta o cadastro de produtos. |
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 div… |
protheus_vendas_varejo | Consulta as vendas do varejo, ou uma venda pelo id interno. |
protheus_pedidos_varejo | Lista os pedidos de venda do varejo. |
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. |
protheus_compras_mrp | Consulta os pedidos de compra ou as solicitações de compra do MRP. |
Details for each tool: docs/ferramentas.md (PT-BR)
What you can ask
| Area | Coverage |
|---|---|
| Discovery | Group branches and companies, system modules, parameters, users |
| Master data | Customers and vendors, contacts, sales reps, carriers, cost centers |
| Commercial | Opportunities, commercial proposals, price lists, payment terms, commissions, credit limits |
| Products and stock | Products and stock balance, from both sources (retail and MRP) |
| Sales | Retail sales and orders, inbound and outbound invoice totals |
| Manufacturing | Production orders, MRP purchase orders and requests |
| Wildcard | Any REST route on your installation, including custom endpoints |
An honest note before you connect
Protheus is not a SaaS with a single address: every company runs its own installation. Two practical consequences:
- The REST service has to be published. Your IT team enables REST in
appserver.ini, allocates the threads (which consume licenses) and opens the port. Without that there is nothing to connect to, with any tool. - Each installation answers a subset of the APIs. TOTVS publishes 125 APIs for the Protheus line, but what yours answers depends on the LIB version, the licensed modules and your customizations. That is why the first question to ask is the diagnostic: it probes your installation and reports, API by API, what is available, what does not exist there, and what your user cannot see.
Pricing
Plans start at a free tier. See docs/precos.md (PT-BR).
Privacy & data protection
- Read-only, no tool changes data at the source.
- Sub-processors: TOTVS, the LLM host you choose (Claude, ChatGPT, Cursor, your own agent). Full list in docs/privacidade-lgpd.md.
- Data returned by the tools is sent to the LLM host you choose, a sub-processor outside our control. We recommend plans with training opt-out.
FAQ
Is this the official TOTVS MCP? No. This is an independent MCP that talks to your own company's official Protheus REST API using your credentials. It is not affiliated with TOTVS and implies no partnership. TOTVS and Protheus are trademarks of TOTVS S.A., referenced here nominatively.
What data do you access? Only what your Protheus user can already see, and only for reading. v1 issues GET requests exclusively: it creates no orders, settles no invoices, and writes nothing to the ERP.
Do I have to expose my Protheus to the internet? The REST service must be reachable by our platform. That is usually done by publishing the endpoint over HTTPS and restricting access by IP or VPN, together with your IT team. If REST is not up today, that is step one, and it applies to any integration, not just ours.
Why does one question work and another says the route does not exist? Because the API is shared but the deployment is yours. TOTVS publishes the contract for 125 Protheus-line APIs; your installation answers the ones your LIB version and licensed modules enable. When a route does not exist there, the answer says exactly that instead of pretending there are no records. Run the diagnostic to see the full map of your installation.
What about the endpoints my company built in Protheus? They work. There is a wildcard tool that calls any REST route on your installation, so your in-house custom MVC APIs are reachable without us shipping anything new.
Where do my password and ERP URL live? Encrypted, and used only to request the token from your own installation's oAuth2 API. The Protheus access token is transient (it expires in an hour) and is not stored.
My user has two-factor authentication. Does it work? Not yet. Use an integration user without a second factor, permissioned only for what you want to expose. That is the recommended practice anyway: access stays auditable and scoped inside Protheus itself.
Does it work for Datasul, RM or Logix? No. This MCP targets the Protheus line. The other TOTVS lines have their own APIs and would be a separate MCP.
Support
License
MIT — see LICENSE. The MCP server at api.mcp.ai/p_protheus is proprietary (hosted); this repo (manifests, docs, skills) is MIT.
Tools it offers (32)
What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.
protheus_list_accountsprotheus_diagnosticoprotheus_catalogoprotheus_apiprotheus_filiaisprotheus_modulosprotheus_parametrosprotheus_usuariosprotheus_clientes_fornecedoresprotheus_contatosprotheus_vendedoresprotheus_oportunidadesprotheus_propostas_comerciaisprotheus_tabela_precosprotheus_condicoes_pagamentoprotheus_limite_creditoprotheus_comissoesprotheus_transportadorasprotheus_centros_custoprotheus_produtosprotheus_estoqueprotheus_vendas_varejoprotheus_pedidos_varejoprotheus_notas_totaisprotheus_ordens_producaoprotheus_compras_mrpshow_versionreport_bugconnecttoolkit_info
Signals
- Last commit
- Aug 2026
Advanced
- Delivery
- protheus-mcp MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-mcp-dir-protheus-mcp- Source
- github.com/mcp-dir/protheus-mcp
- Hosted endpoint
https://api.mcp.ai/p_protheus
github.com/mcp-dir/protheus-mcp