MCPサーバー

CIGAM

io.github.mcp-dir/cigam-mcp

このMCPでできること

Connects to CIGAM ERP data for retail and industrial operations, including sales, purchases, inventory, cash flow, payables, receivables, invoices, and management reports.

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.
冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'token': {'type': 'string'}}}
cigam_caixa
Lista fechamentos de caixa por período. Entradas, saídas, fundo de caixa, vendas líquidas/do dia, saldo.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'numero_caixa': {'type': 'string'}}}
cigam_compras
Compras de uma loja por período (notas fiscais de entrada do tipo Compra). Retorna as NFs de compra + `resumo` com quantidade e valor total.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_consulta
Consulta genérica ao gateway do CIGAM (ObterCarga) para listas auxiliares (planos de conta, formas de pagamento, marcas, etc.). Informe o `guid` e os `params`.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['guid'], 'properties': {'guid': {'type': 'string'}, 'params': {'type': 'string'}, 'account': {'type': 'string'}}}
cigam_contas_pagar
Lista contas a pagar por período. Fornecedor, vencimento, plano de contas, nota fiscal/duplicata, valores, juros.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'duplicata': {'type': 'string'}, 'numero_nf': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'cod_fornecedor': {'type': 'string'}, 'cod_plano_contas': {'type': 'string'}}}
cigam_contas_receber
Lista contas a receber por período. Cliente, vencimento, forma de pagamento, valores, parcelas, NSU/autorização de cartão.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'situacao': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'cod_cliente': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_devolucoes
Devoluções de uma loja por período (notas fiscais com movimento de devolução, entrada e saída). Retorna as NFs + `resumo` com quantidade e valor total.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_estoque
Posição atual de estoque (saldo por código de barras). Operação LENTA (gera um relatório, ~1 min); espera até `aguardar_segundos`, senão retorna um job_id (busque com cigam_job). Informe `codigo_barra` para o saldo de um produto específico, ou nada para um resumo (total de SKUs, SKUs com saldo, unidades) + amostra dos itens com saldo. Obs.: traz só o código de barras, sem nome de produto.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'codigo_barra': {'type': 'string'}, 'aguardar_segundos': {'type': 'number'}}}
cigam_fluxo_caixa
Fluxo de caixa projetado de uma loja por período: total a receber (contas a receber em aberto) vs total a pagar (contas a pagar), e o saldo projetado. Janela máxima de 60 dias.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_formas_pagamento
Mix de formas de recebimento de uma loja por período: total recebido por forma de pagamento, por bandeira de cartão e por adquirente (maquininha). Janela máxima de 60 dias.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_fornecedores
Lista/pesquisa fornecedores cadastrados. Razão social, nome fantasia, CNPJ, endereço, contato, situação.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'cnpj': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}}}
cigam_inadimplencia
Contas a receber vencidas e ainda em aberto (inadimplência). Cada item traz dias de atraso e valor em aberto, ordenados do mais atrasado. Default: vencimentos dos últimos 60 dias (janela máxima de 60 dias por consulta).
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_job
Busca o resultado de um job assíncrono (ex.: relatório) pelo `job_id` retornado por outra tool. Espera inline até `aguardar_segundos`. Sem polling: só chame de novo se voltar status 'running'. Bulk support: accepts job_ids for batched execution.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['job_id'], 'properties': {'job_id': {'type': 'string'}, 'account': {'type': 'string'}, 'job_ids': {'type': 'array', 'items': {'type': 'string'}}, 'aguardar_segundos': {'type': 'number'}}}
cigam_lancamentos
Lista lançamentos financeiros por período. Competência, plano de contas, histórico, valor, forma de pagamento, tipo (débito/crédito).
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'tipo_data': {'type': 'string'}, 'data_final': {'type': 'string'}, 'tipo_conta': {'type': 'string'}, 'data_inicial': {'type': 'string'}, 'cod_plano_contas': {'type': 'string'}}}
cigam_list_accounts
Lista as contas CIGAM conectadas a este install — id, label (instância/usuário).
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}}}
cigam_listar_lojas
Lista as lojas/empresas que a conta enxerga (código, nome, CNPJ). Use o `loja` retornado nos demais filtros.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'account': {'type': 'string'}}}
cigam_notas_fiscais
Lista notas fiscais de uma loja por período. Retorna número, série, destinatário, valor, status, chave NF-e, etc.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'status': {'type': 'array', 'items': {'type': 'number'}}, 'account': {'type': 'string'}, 'numero_nf': {'type': 'number'}, 'data_final': {'type': 'string'}, 'referencia': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_ranking_clientes
Ranking de clientes por valor vendido no período (agrupa as vendas por destinatário/CNPJ-CPF). Retorna os maiores compradores ordenados por valor.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'top': {'type': 'number'}, 'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_relatorio
Gera um relatório do CIGAM (operação LENTA, ~2 min, produz um arquivo Excel). Espera inline até `aguardar_segundos`; se não ficar pronto, retorna um `job_id` (busque depois com cigam_job, sem ficar repetindo). Retorna `arquivo_url` (link temporário do Excel). Ex. de report_id: REL_201 (Vendas por Período), REL_610 (posição atual de estoque). Bulk support: accepts report_ids for batched execution.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['report_id'], 'properties': {'account': {'type': 'string'}, 'filtros': {'type': 'string'}, 'report_id': {'type': 'string'}, 'report_ids': {'type': 'array', 'items': {'type': 'string'}}, 'aguardar_segundos': {'type': 'number'}}}
cigam_resultado
Resultado gerencial simplificado de uma loja por período: receita (vendas faturadas líquidas de devolução) menos despesas (lançamentos financeiros por plano de contas), com o detalhe das despesas por categoria.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas
Vendas de uma loja por período (notas fiscais de saída do tipo Venda). Retorna as NFs de venda (data, destinatário, valor) + `resumo` com quantidade e valor total do período.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'page': {'type': 'number'}, 'limit': {'type': 'number'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas_por_dia
Série de vendas por dia no período (quantidade e valor por data) + resumo com total e ticket médio.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
cigam_vendas_resumo
Panorama do período numa loja: totais de vendas, compras e devoluções (quantidade e valor de cada). Um único resumo, sem listar as notas.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['loja'], 'properties': {'loja': {'type': 'string'}, 'account': {'type': 'string'}, 'data_final': {'type': 'string'}, 'data_inicial': {'type': 'string'}}}
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.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
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.
外部アクセスあり
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'number', 'default': 10}, 'query': {'type': 'string', 'default': ''}, 'action': {'enum': ['search', 'describe', 'install', 'uninstall', 'subscribe', 'cancel', 'resume', 'report_bug', 'request_mcp', 'list_tools', 'invoke', 'search_prompts', 'get_prompt', 'publish_prompt'], 'type': 'string', 'default': 'search'}, 'mcp_id': {'type': 'string', 'default': ''}, 'message': {'type': 'string', 'default': ''}, 'tool_id': {'type': 'string', 'default': ''}, 'arguments': {'type': 'string', 'default': '{}'}, 'immediate': {'type': 'boolean', 'default': False}, 'tier_slug': {'type': 'string', 'default': ''}, 'prompt_body': {'type': 'string', 'default': ''}, 'prompt_slug': {'type': 'string', 'default': ''}, 'prompt_tool': {'type': 'string', 'default': ''}, 'prompt_vars': {'type': 'string', 'default': '{}'}, 'conversation': {'type': 'string', 'default': '[]'}, 'prompt_title': {'type': 'string', 'default': ''}, 'request_name': {'type': 'string', 'default': ''}, 'cancel_reason': {'enum': ['too_expensive', 'missing_features', 'switched_service', 'unused', 'customer_service', 'too_complex', 'low_quality', 'other'], 'type': 'string'}, 'cancel_comment': {'type': 'string', 'default': ''}, 'prompt_targets': {'type': 'array', 'items': {'enum': ['claude', 'chatgpt', 'cursor', 'lovable'], 'type': 'string'}, 'default': []}, 'report_context': {'type': 'string', 'default': ''}, 'prompt_category': {'type': 'string', 'default': ''}, 'request_details': {'type': 'string', 'default': ''}, 'prompt_description': {'type': 'string', 'default': ''}}}
report_bug
Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['message'], 'properties': {'context': {'type': 'string', 'default': ''}, 'message': {'type': 'string'}, 'conversation': {'type': 'string', 'default': '[]'}}}
show_version
Show the current MCP platform and adapter versions.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
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.
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
追加
authenticate
2026年9月17日12:43
追加
marketplace
2026年9月17日12:43
追加
toolkit_info
2026年9月17日12:43
追加
connect
2026年9月17日12:43
追加
report_bug
2026年9月17日12:43
追加
show_version
2026年9月17日12:43
追加
cigam_consulta
2026年9月17日12:43
追加
cigam_fornecedores
2026年9月17日12:43
追加
cigam_lancamentos
2026年9月17日12:43
追加
cigam_caixa
2026年9月17日12:43
追加
cigam_contas_pagar
2026年9月17日12:43
追加
cigam_contas_receber
2026年9月17日12:43
追加
cigam_estoque
2026年9月17日12:43
追加
cigam_job
2026年9月17日12:43
追加
cigam_relatorio
2026年9月17日12:43
追加
cigam_formas_pagamento
2026年9月17日12:43
追加
cigam_resultado
2026年9月17日12:43
追加
cigam_inadimplencia
2026年9月17日12:43
追加
cigam_vendas_por_dia
2026年9月17日12:43
追加
cigam_ranking_clientes
2026年9月17日12:43
追加
cigam_fluxo_caixa
2026年9月17日12:43
追加
cigam_vendas_resumo
2026年9月17日12:43
追加
cigam_devolucoes
2026年9月17日12:43
追加
cigam_compras
2026年9月17日12:43
追加
cigam_vendas
2026年9月17日12:43
追加
cigam_notas_fiscais
2026年9月17日12:43
追加
cigam_listar_lojas
2026年9月17日12:43
追加
cigam_list_accounts
2026年9月17日12:43