mcp-sei-cbm
MCP 服务器 SEI(电子信息系统)
MCP(模型上下文协议) 服务器,用于通过 用户、密码和机构(Web 会话)直接认证与 SEI(电子信息系统) 集成和自动化,无需 API 令牌。
🚀 功能
自动化和参数化认证:通过输入用户、密码和机构连接到 SEI,并支持选择单位。
会话管理:保持会话 Cookie 有效,并在会话过期时自动重新登录。
流程控制:列出单位收件箱中所有打开的流程(已生成和已接收)。
流程和树查询:获取流程的元数据以及文档/附件的完整层级结构。
文档读取:提取任何文档/批示/公函的干净文本内容和电子签名数据。
高级搜索:按编号、相关方或文本术语搜索流程和文档。
单位管理:允许在用户有权访问的机构的不同单位之间切换。
进度记录:在流程历史记录中添加批示和备注。
Related MCP server: mcp-seipro
📦 安装
1. 克隆或访问目录
cd c:\Users\chaga\OneDrive\Documentos\mcp-sei-cbm2. 创建虚拟环境并安装依赖
# 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⚙️ 配置(.env)
将示例文件 .env.example 复制为 .env,并填写您的访问数据:
cp .env.example .env编辑 .env 文件:
# 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🛠️ 可用工具(MCP 工具)
工具 | 描述 | 参数 |
| 报告连接状态、登录用户和当前单位。 | - |
| 在运行时认证或更新凭据。 |
|
| 列出当前单位收件箱中的流程。 | - |
| 查询流程并返回元数据和文档树。 |
|
| 返回附加到流程的所有文档。 |
|
| 读取特定文档的文本和签名。 |
|
| 按关键词搜索流程或文档。 |
|
| 更改 SEI 中的当前工作单位。 |
|
| 在流程历史记录中添加进度。 |
|
🤖 如何在 Claude Desktop / Cursor / Antigravity 中配置
在您的 MCP 配置文件(例如:claude_desktop_config.json 或类似文件)中添加以下配置:
{
"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"
}
}
}
}🧪 自动化测试
要运行解析器和配置的验证测试套件:
.\.venv\Scripts\python.exe -m pytest -vThis server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceMCP server for integrating with the Brazilian PJE judicial system via MNI and BNP, enabling consultation of legal processes, communications, and precedents.
- AlicenseBqualityBmaintenanceMCP 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).1004MIT
- FlicenseAqualityBmaintenanceMCP 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
- FlicenseNot gradedqualityCmaintenanceMCP server that enables an AI to query the Se7e ERP via the plug-server API, supporting authentication and catalog reconciliation.
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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