mcp-sei-cbm
MCP Server SEI(電子情報システム)
SEI(Sistema Eletrônico de Informações) との統合・自動化を行うための MCP(Model Context Protocol)サーバーです。ユーザー名・パスワード・機関による直接認証(Webセッション)を使用し、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