Skip to main content
Glama
franklinbaldo

SEI MCP Server

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 PHPSESSID and 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:

  1. Log in to SEI in your browser (Chrome/Firefox).

  2. Open Developer Tools (F12) -> Network tab.

  3. Refresh the page (e.g., the main "Controle de Processos").

  4. Click on the request to controlador.php.

  5. Look at the "Request Headers" section.

  6. Copy the entire value of the Cookie: header.

Build

cd sei-mcp-server
npm install
npm run build

Running the Server

node dist/index.js

Tools 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_COOKIES in the .env file.

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

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables 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.
  • A
    license
    Not graded
    quality
    A
    maintenance
    Bridges AI agents to a real browser using a persistent daemon and Chrome extension for driving actual login sessions, cookies, and tabs.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Connects AI assistants to Brazilian judicial data from DataJud CNJ and 91 courts, enabling process consultation, monitoring, and deadline calculation under the Civil Procedure Code.
    9
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Open-source alternative to Jusbrasil for AI: find lawsuits by name, CPF, CNPJ or case number and bui

  • Stealth web browser for agents: search, fetch, click and type through persistent sessions over MCP.

  • Public lookup of Brazilian court cases (metadata + docket) via the CNJ/DataJud API. Free, no login.

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/franklinbaldo/sei-mcp'

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