SEI MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SEI MCP Serverlist processes in Recebidos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SEI MCP Server
This is a Model Context Protocol (MCP) server that acts as a bridge to the Sistema Eletrônico de Informações (SEI). It allows an AI agent to interact with SEI to list processes, read documents, search, and download files.
Prerequisites
Node.js (v18+)
Access to a SEI instance.
Authentication Cookies: Since SEI often uses complex SSO (like Gov.br or "Meu Acesso"), this server relies on reusing an existing session. You must extract your
PHPSESSIDand other relevant cookies (e.g.,sei_path) from your browser.
Related MCP server: Konnect
Configuration
Create a .env file in the root directory (or set environment variables) with:
SEI_URL=https://sei.sistemas.ro.gov.br/sei/
SEI_COOKIES="PHPSESSID=your_session_id_here; sei_path=..."How to get the Cookies:
Log in to SEI in your browser (Chrome/Firefox).
Open Developer Tools (F12) -> Network tab.
Refresh the page (e.g., the main "Controle de Processos").
Click on the request to
controlador.php.Look at the "Request Headers" section.
Copy the entire value of the
Cookie:header.
Build
cd sei-mcp-server
npm install
npm run buildRunning the Server
node dist/index.jsTools Available
sei_list_processes: Lists processes in the "Recebidos" and "Gerados" tables of the current unit.sei_get_process: Retrieves details and the document tree of a specific process.sei_download_document: Downloads the content of a document (PDF, etc.) as Base64.sei_search_process: Searches for a process by protocol number or keyword.sei_list_units: Lists available units to switch to.sei_switch_unit: Switches the active unit for the session.
Notes
This server uses standard HTML scraping (Cheerio) to interact with SEI, mimicking the behavior of browser extensions like "SEI Pro".
If the session expires, you will need to update the
SEI_COOKIESin the.envfile.
This server cannot be deployed
Maintenance
Related MCP Connectors
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables interaction with Brazil's Electronic Judicial Process (PJe) system to search for legal processes, view case details, and download court documents. Supports secure JWT authentication and process lookup by CPF/CNPJ or party name.-
- AlicenseNot gradedqualityAmaintenanceBridges AI agents to a real browser using a persistent daemon and Chrome extension for driving actual login sessions, cookies, and tabs.MIT
- FlicenseNot gradedqualityFmaintenanceEnables automation of the SEI! (Sistema Eletrônico de Informações) system via Claude Code, supporting login, process search, document download/creation/signing, and forwarding through natural language commands.8 npm5-
- AlicenseAqualityAmaintenanceConnects AI assistants to Brazilian judicial data from DataJud CNJ and 91 courts, enabling process consultation, monitoring, and deadline calculation under the Civil Procedure Code.946 PyPI107MIT