Claro Gerencial

io.github.hlgurgelPublished by GitHub account hlgurgelv0.1.0Updated Oct 25, 2026

Servidor MCP para integração com os WebServices SOAP do Claro Gerencial (Redeinova)

VerifiedSTDIODesktop onlyBusiness & Commerce

Overview

AI-generated overview

MCP server for the Claro Gerencial (Redeinova) SOAP WebService, letting an assistant query and import records.

What you can do
List the available entities and whether each is input or output. Query full or incremental records from any entity and fetch the XSD schema to validate before sending. Request generation of an FTP file from a query ticket. Send XML to import records and check the processing status of a submission.
When to use it
Use it when you need to query or import records in Claro Gerencial (the Redeinova-managed platform) and want an assistant to run those SOAP WebService operations for you. Suited to distributors that already hold Redeinova credentials and an authorized IP.
Requirements
Runs locally as a Python package (install with pip or run from PyPI with uvx). Requires the CLARO_USUARIO and CLARO_SENHA environment variables, and optionally CLARO_AMBIENTE set to homologacao or producao. Needs Redeinova-issued credentials and a source IP registered and authorized on the Redeinova side; traffic goes over HTTPS, typically through a VPN.
Before you install
Requires WebService credentials (CLARO_USUARIO, CLARO_SENHA); keep them private. CLARO_AMBIENTE can point at the production environment, so the assistant may submit or change live records; review and schema-validate data before sending. Data is sent to Redeinova's remote service.

Installation

In SourceWeft

  1. Open Claro Gerencial in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

ws-claro-gerencial-mcp

[PyPI version] [License: MIT] [Python versions]

Servidor MCP (Model Context Protocol) para integração com os WebServices SOAP do Claro Gerencial (plataforma da Claro gerenciada pela Redeinova Tecnologia).

Este servidor permite que agentes de IA (como o opencode, Claude Code, etc.) interajam diretamente com o Claro Gerencial, realizando consultas e envios de dados de forma autônoma.

Funcionalidades

O servidor expõe 6 ferramentas via MCP:

  • listar_entidades — Lista todas as entidades disponíveis e suas direções (input/output)
  • obter_registros — Consulta registros de qualquer entidade (completa ou incremental)
  • gerar_arquivo — Solicita geração de arquivo FTP a partir de um ticket de consulta
  • enviar_registros — Envia XML para importação de registros
  • obter_status — Consulta status de processamento de um envio
  • obter_schema_xml — Obtém schema XSD para validação antes do envio

Entidades disponíveis

  • Cidades, Bairros, Clientes (PDVs), ClientesVisitas, Empresas, Gerentes, Supervisores
  • Vendedores, Setores, Grupos de Produtos, MotivosVisitas, Produtos, Segmentos
  • TiposClientes, TiposSinalizações, ClientesSinalizações, Visitas
  • Integradores, Pedidos, ChipsVendedor, MotivosICCIDS, ICCID, RedesPDV
  • VendasBandaLarga, ReleiturasICCID

Instalação

bash
pip install ws-claro-gerencial-mcp

Ou, sem instalar nada (executa direto do PyPI com cache):

bash
uvx --from ws-claro-gerencial-mcp ws-claro-gerencial-mcp

Ou para desenvolvimento:

bash
git clone https://github.com/hlgurgel/ws-claro-gerencial-mcp.gitcd ws-claro-gerencial-mcppip install -e .

Configuração

Crie um arquivo .env na raiz do projeto ou defina as variáveis de ambiente:

env
CLARO_USUARIO=seu_usuarioCLARO_SENHA=sua_senhaCLARO_AMBIENTE=homologacao

Variáveis de ambiente

VariávelObrigatóriaPadrãoDescrição
CLARO_USUARIOSim—Usuário de acesso ao webservice
CLARO_SENHASim—Senha de acesso ao webservice
CLARO_AMBIENTENãohomologacaoAmbiente: homologacao ou producao
CLARO_URL_BASE_OUTPUTNãohttps://clarogerencial.redeinova.com.br/wsoutputURL base do WS de Output
CLARO_URL_BASE_INPUTNãohttps://clarogerencial.redeinova.com.br/wsinputURL base do WS de Input

Uso com clientes MCP

Claude Desktop

Adicione ao claude_desktop_config.json:

json
{  "mcpServers": {    "claro-gerencial": {      "command": "uvx",      "args": ["--from", "ws-claro-gerencial-mcp", "ws-claro-gerencial-mcp"],      "env": {        "CLARO_USUARIO": "seu_usuario",        "CLARO_SENHA": "sua_senha",        "CLARO_AMBIENTE": "homologacao"      }    }  }}

OpenCode

Adicione ao opencode.json do seu projeto:

json
{  "mcp": {    "claro-gerencial": {      "type": "local",      "command": ["ws-claro-gerencial-mcp"],      "environment": {        "CLARO_USUARIO": "seu_usuario",        "CLARO_SENHA": "sua_senha",        "CLARO_AMBIENTE": "homologacao"      }    }  }}

Exemplos de uso

> Liste as entidades disponíveis no Claro Gerencial.
> Consulte os clientes ativos (entidade: 'clientes') de forma completa.
> Envie um novo cliente:<Clientes>  <Cliente>    <Empresa>1</Empresa>    <Sequencial>999</Sequencial>    <Nome>NOVO PDV</Nome>    <DbAcao>I</DbAcao>  </Cliente></Clientes>

Requisitos de segurança

  • IP fixo: O distribuidor precisa ter um IP fixo cadastrado na Redeinova.
  • SSL: Toda comunicação usa HTTPS com TLS.
  • Autenticação: Usuário e senha fornecidos pela Redeinova, senhas fortes com mínimo de 8 caracteres.

Autorização por IP (output/baixa)

Para consultas/baixas (output) — e também envios (input) — o WebService exige que o IP de origem da máquina esteja autorizado na tabela RepositorioControleIntClaro.dbo.DistribuidorIP (coluna Ip), associado ao usuário do distribuidor (ex.: CLAROREDEFLEXWS) com Ativo = 1. Sem isso, o WS responde Usuário não autorizado para efetuar baixa.

Dicas para validação:

  • Em VPN (ex.: redeinova-dc), o IP de origem é o da interface de túnel (utun*). Descobrir com: ifconfig | grep "inet ".
  • O domínio do WS (clarogerencial.redeinova.com.br) resolve para IP interno (10.177.51.41), então o tráfego sai pela VPN. O IP a cadastrar é o da interface VPN — não o IP público retornado por curl ifconfig.me.
  • Para liberar/ajustar: INSERT/UPDATE em RepositorioControleIntClaro.dbo.DistribuidorIP.

Ambiente de homologação

Para solicitar ambiente de homologação, entre em contato com:

Licença

MIT

Source: README.md at commit d61d5a4

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts