Skip to main content
Glama

MCP Server SEI (Sistema Eletrônico de Informações)

MCP (Model Context Protocol) server for integration and automation with SEI (Sistema Eletrônico de Informações) through direct authentication by User, Password, and Organization (web session), eliminating the need for API tokens.


🚀 Features

  • Automatic and Parameterized Authentication: Connects to SEI by providing User, Password, and Organization, with support for Unit selection.

  • Session Management: Keeps session cookies active and performs auto re-login if the session expires.

  • Process Control: Lists all open processes in the unit's inbox (generated and received).

  • Process and Tree Query: Retrieves process metadata and the entire hierarchy of documents/attachments.

  • Document Reading: Extracts clean textual content and electronic signature data from any document/dispatch/letter.

  • Advanced Search: Searches processes and documents by number, interested party, or textual terms.

  • Unit Management: Allows switching between different units of the organization to which the user has access.

  • Progress Entries: Adds dispatches and observations to the process history.


Related MCP server: mcp-seipro

📦 Installation

1. Clone or Access the Directory

cd c:\Users\chaga\OneDrive\Documentos\mcp-sei-cbm

2. Create Virtual Environment and Install Dependencies

# Criar ambiente virtual
python -m venv .venv

# Ativar ambiente virtual
# No Windows (PowerShell):
.\.venv\Scripts\Activate.ps1
# No Linux/Mac:
# source .venv/bin/activate

# Instalar dependências
pip install -r requirements.txt

⚙️ Configuration (.env)

Copy the example file .env.example to .env and fill it with your access credentials:

cp .env.example .env

Edit the .env file:

# URL base do SEI da sua instituição
SEI_BASE_URL=https://sei.cbm.df.gov.br/sei

# Usuário e senha de acesso
SEI_USUARIO=seu_usuario_ou_cpf
SEI_SENHA=sua_senha_secreta

# Órgão de autenticação (sigla ou ID conforme a lista de seleção de login)
SEI_ORGAO=CBM

# (Opcional) Unidade padrão a ser ativada no login (ex: CBM/DTI)
SEI_UNIDADE=

# (Opcional) Configurações de rede
SEI_TIMEOUT=30
SEI_VERIFY_SSL=true

🛠️ Available Tools (MCP Tools)

Tool

Description

Parameters

sei_status

Reports connection status, logged-in user, and active unit.

-

sei_conectar

Authenticates or updates credentials at runtime.

base_url, usuario, senha, orgao, unidade

sei_listar_controle_processos

Lists the processes in the current unit's inbox.

-

sei_consultar_processo

Queries a process and returns metadata and document tree.

numero_ou_id (e.g. 00053.000123/2026-10)

sei_obter_arvore_processo

Returns all documents attached to a process.

id_procedimento

sei_ler_documento

Reads the text and signatures of a specific document.

id_documento, id_procedimento (optional)

sei_pesquisar

Searches processes or documents by keyword.

termo

sei_trocar_unidade

Changes the current working unit in SEI.

unidade (e.g. CBM/DTI)

sei_adicionar_andamento

Adds a progress entry to the process history.

id_procedimento, descricao


🤖 How to Configure in Claude Desktop / Cursor / Antigravity

Add the following configuration to your MCP configuration file (e.g., claude_desktop_config.json or similar):

{
  "mcpServers": {
    "sei-cbm": {
      "command": "c:\\Users\\chaga\\OneDrive\\Documentos\\mcp-sei-cbm\\.venv\\Scripts\\python.exe",
      "args": [
        "-m",
        "src.server"
      ],
      "cwd": "c:\\Users\\chaga\\OneDrive\\Documentos\\mcp-sei-cbm",
      "env": {
        "SEI_BASE_URL": "https://sei.cbm.df.gov.br/sei",
        "SEI_USUARIO": "seu_usuario",
        "SEI_SENHA": "sua_senha",
        "SEI_ORGAO": "CBM"
      }
    }
  }
}

🧪 Automated Tests

To run the validation test suite for parsers and configurations:

.\.venv\Scripts\python.exe -m pytest -v
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for integrating with the Brazilian PJE judicial system via MNI and BNP, enabling consultation of legal processes, communications, and precedents.
  • A
    license
    B
    quality
    B
    maintenance
    MCP Server do SEI Pro para o SEI (Sistema Eletrônico de Informações) via API REST mod-wssei v2 + scraper do frontend web (modo híbrido).
    100
    4
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    MCP server for automating consultation and download of documents from Brazil's TRF1 PJe system through authenticated sessions. It uses Playwright for authenticated navigation, providing tools to query process metadata, list documents, and download full case files.
    6
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server that enables an AI to query the Se7e ERP via the plug-server API, supporting authentication and catalog reconciliation.

View all related MCP servers

Related MCP Connectors

  • MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).

  • Brazilian fiscal MCP server - issue NF-e, NFC-e, NFS-e, CT-e, MDF-e and DC-e via SEFAZ.

  • A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hugocoliveira/mcp-sei-cbm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server