loading…
Search for a command to run...
loading…
Enables AI assistants to query Brazilian Senate data including senators, bills, voting records, committees, and plenary sessions through natural language.
Enables AI assistants to query Brazilian Senate data including senators, bills, voting records, committees, and plenary sessions through natural language.
Connect Claude, Cursor, Windsurf, and Continue.dev to the Brazilian Federal Senate (Senado Federal) legislative database with 56 tools covering senators, bills, voting records, committees, and plenary sessions.
License: MIT CI TypeScript Node.js NPM
English | Português | Contributing
MCP Senado Federal is a Model Context Protocol (MCP) server that gives AI assistants direct access to the official Brazilian Federal Senate Open Data API. Once configured, you can ask Claude (or any MCP-compatible client) natural-language questions about Brazilian legislative data and get accurate, real-time answers sourced from the government's own API.
Who is it for?
| Tool | Description |
|---|---|
ufs_listar |
List all Brazilian states (UFs) |
legislaturas_listar |
List Senate legislatures |
tipos_materia_listar |
List legislative proposal types |
situacoes_materia_listar |
List bill processing statuses |
tipos_comissao_listar |
List committee types |
tipos_autor_listar |
List author types |
tipos_sessao_listar |
List session types |
tipos_votacao_listar |
List voting types |
tipos_documento_listar |
List document types |
assuntos_listar |
List subject classifications |
| Tool | Description |
|---|---|
senadores_listar |
Search senators by name, party, state, or legislature |
senador_detalhes |
Full details and biography for a specific senator |
senador_historico |
Parliamentary history and previous terms |
senador_votacoes |
Senator's voting record with filters |
senador_materias |
Bills and proposals authored by the senator |
senador_discursos |
Speeches delivered by the senator |
senador_licencas |
Leaves of absence |
senador_comissoes |
Committee memberships |
senador_liderancas |
Leadership positions held |
senador_filiacao |
Party affiliation history |
senador_profissoes |
Declared professions |
senador_apartes |
Interjections made on the floor |
senador_relatorias |
Bills the senator has rapporteured |
| Tool | Description |
|---|---|
materias_pesquisar |
Advanced search for bills and proposals |
materia_detalhes |
Full details of a specific proposal |
materia_texto |
Full text of a bill |
materia_votacoes |
Voting sessions related to a proposal |
materia_tramitacao |
Processing history and current status |
materia_autores |
Authors and co-authors |
materia_relacionadas |
Related bills |
materia_emendas |
Amendments filed |
materia_pareceres |
Committee opinions |
materia_notas_tecnicas |
Technical notes |
materia_audiencias |
Related public hearings |
materia_documentos |
Attached documents |
| Tool | Description |
|---|---|
votacoes_listar |
List voting sessions with filters |
votacao_detalhes |
Full details of a specific vote |
votacao_votos |
Individual senator votes for a session |
votacao_orientacoes |
Party/bloc voting orientations |
votacao_resumo |
Statistical summary of a vote |
| Tool | Description |
|---|---|
comissoes_listar |
List all committees (permanent and temporary) |
comissao_detalhes |
Committee details |
comissao_membros |
Committee membership and composition |
comissao_reunioes |
Meeting schedule and agendas |
comissao_materias |
Bills under committee review |
| Tool | Description |
|---|---|
partidos_listar |
List all parties and parliamentary blocs |
partido_detalhes |
Party details |
partido_membros |
Senators affiliated with the party |
partido_liderancas |
Party leadership |
blocos_listar |
Parliamentary blocs and coalitions |
| Tool | Description |
|---|---|
sessoes_listar |
Session calendar with filters |
sessao_detalhes |
Details of a specific session |
sessao_votacoes |
Votes held during a session |
sessao_discursos |
Speeches delivered during a session |
sessao_ordem_dia |
Session agenda (order of the day) |
sessao_expediente |
Session dispatch (expediente) |
npx @aredes.me/mcp-senado
npm install -g @aredes.me/mcp-senado
mcp-senado
git clone https://github.com/cristianoaredes/mcp-senado.git
cd mcp-senado
npm install
npm run build
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"senado-federal": {
"command": "npx",
"args": ["-y", "@aredes.me/mcp-senado"],
"env": {
"MCP_LOG_LEVEL": "info"
}
}
}
}
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"senado-federal": {
"command": "npx",
"args": ["-y", "@aredes.me/mcp-senado"]
}
}
}
{
"mcpServers": [
{
"name": "senado-federal",
"command": "npx",
"args": ["-y", "@aredes.me/mcp-senado"]
}
]
}
Once connected, ask your AI assistant:
"List all senators from São Paulo"
"What is the voting record of Senator X on environmental bills?"
"Find all education bills introduced in 2024"
"What is the current status of PLS 123/2024?"
"Show the composition of the CCJ committee"
"How many senators does each party have?"
Run the server as a standalone REST API for web applications:
# Development
npm run dev:http
# Production
npm run build && npm run start:http
# Via npx
npx @aredes.me/mcp-senado-http
Base URL: http://localhost:3000
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check and server status |
/mcp |
POST | MCP JSON-RPC endpoint |
/sse |
GET | Server-Sent Events for MCP clients |
/api/tools |
GET | List all available tools |
/api/tools/:name |
GET | Get tool details |
/api/tools/:name |
POST | Invoke a tool |
/api/categories |
GET | List all categories |
/api/tools/category/:category |
GET | Tools by category |
Example — invoke a tool via HTTP:
curl -X POST http://localhost:3000/api/tools/senadores_listar \
-H "Content-Type: application/json" \
-d '{"uf": "SP"}'
# Quick start
docker-compose up -d
# Manual build and run
docker build -t mcp-senado:latest .
docker run -d --name mcp-senado -p 3000:3000 mcp-senado:latest
# Check status
curl http://localhost:3000/health
Deploy to 300+ global edge locations:
npm install -g wrangler
wrangler login
npm run build
npm run deploy:workers:production
Local development with hot reload:
npm run dev:workers # starts at http://localhost:8787
Create a .env file or set environment variables:
# API
SENADO_API_BASE_URL=https://legis.senado.leg.br/dadosabertos/
# Cache
MCP_CACHE_ENABLED=true
MCP_CACHE_TTL=300
# Rate limiting
MCP_RATE_LIMIT_ENABLED=true
MCP_RATE_LIMIT_MAX_REQUESTS=30
MCP_RATE_LIMIT_WINDOW_MS=60000
# HTTP server
HTTP_PORT=3000
HTTP_AUTH_ENABLED=false
HTTP_AUTH_TOKEN=
# Logging
MCP_LOG_LEVEL=info
AI Assistants (Claude, Cursor, Windsurf, Continue.dev)
↓ MCP Protocol (stdio / HTTP / SSE)
Adapters Layer (CLI, HTTP Server, Cloudflare Workers)
↓
Core Layer (MCP Server, Tool Registry, Zod Validation)
↓
Tools Layer (Senator, Proposal, Voting, Committee, Party, Session, Reference)
↓
Infrastructure Layer (HTTP Client, LRU Cache, Circuit Breaker, Rate Limiter)
↓ HTTPS
Senado Federal Open Data API (legis.senado.leg.br/dadosabertos)
Contributions are welcome. See CONTRIBUTING.md for guidelines, code of conduct, and how to submit pull requests.
MIT — see LICENSE for details.
Data is sourced from the Brazilian Federal Senate Open Data API, a public service maintained by the Brazilian government.
Выполни в терминале:
claude mcp add mcp-senado-federal -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai