# Vereador 2024: Brazil City Council Election Data

> Official 2024 city council (vereador) results for all 5,545 Brazilian municipalities: electoral quotient, 10% minimum, votes of the last elected, campaign spending and cost per vote. TSE open data compiled by PoliticAI.

Vereador 2024: Brazil City Council Election Data is a free AI agent skill on Agensi by PoliticAI, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [PoliticAI](https://www.agensi.io/creators/politicai)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/vereador-2024-brazil-city-council-election-data
- Tags: research, database, brazil-elections, government-data, political-analysis, tse-data

## About this skill

Official numbers from Brazil's 2024 city council (vereador) election for all 5,545 municipalities, ready for your agent to query and cite. Built by PoliticAI from the open data of Brazil's Superior Electoral Court (TSE).

### What it answers
- How many votes elected the last councillor in a given city, and how many votes the top candidate left without a seat had.
- Electoral quotient (Electoral Code, art. 106) and the 10% individual minimum (art. 108).
- Seats, candidates per seat, turnout, and whether the mayoral race can go to a runoff.
- Campaign spending in 2024: median spent by elected and non-elected candidates, highest spend by an elected councillor, median cost per vote and the share of money from the public campaign fund (FEFC).
- Cities in the same state with a similar electorate, and national medians by electorate size.

### How it works
A dependency-free Node script (`scripts/consultar.mjs`) with four commands: `buscar`, `municipio`, `comparar` and `resumo`. City names work with or without accents. Output is JSON with the source line, so the agent can cite it.

### Who it is for
Pre-candidates and campaign teams planning for 2028, political journalists, researchers and developers building election tools in Brazil.

### Source and license
TSE open data portal, compiled by PoliticAI. Data under CC BY 4.0, code under MIT. The dataset, an MCP server and the skill source are open on GitHub (account bonometti7), and PoliticAI publishes a free report with a 2028 vote target for every city.

## Requires

- Node.js 18+

## Known limitations

No data for Distrito Federal. Excludes sub judice or annulled elections. Does not calculate specific party "sobras" (leftover seats) logic. Requires Node 18+ and internet access.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Vereador 2024: Brazil City Council Election Data skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this data differ from the standard knowledge of a general AI model?

A general model often guesses Brazilian election numbers or repeats 2020 figures. This skill gives the agent the official 2024 TSE figures for each city, with the source line to cite.

### Are all Brazilian cities included in the dataset?

The skill covers 5,545 Brazilian municipalities from the 2024 election cycle; however, it excludes the Distrito Federal and cities where results were sub judice at the time of extraction.

### Can I compare cities with a similar electorate?

Yes, you can use the 'comparar' command to find and analyze cities within the same state that have similar voter populations to establish regional benchmarks.

### What platforms or AI agents are compatible with the Vereador 2024 skill?

Any agent that supports the open SKILL.md standard and can run a terminal command, such as Claude Code, Codex CLI, Cursor and others. The skill runs a small Node.js 18+ script with no dependencies.

### Does the tool provide insights into campaign financing and budgets?

The skill delivers calculated cost-per-vote metrics and median spending for both elected and non-elected candidates, including the impact of public campaign funds.

### Is it free, and what do I get?

Yes, it is free. You get the SKILL.md instructions and the consultar.mjs script with four commands (buscar, municipio, comparar, resumo). The data stays in PoliticAI's public dataset on GitHub and is downloaded on each query.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
