SEI MCP Server
Bridges AI agents to the Brazilian SEI system, enabling listing processes, reading documents, searching, and downloading files via session cookies.
README
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.
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 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_COOKIESin the.envfile.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.