Skip to content
MCP server

Vereador e prefeito 2024 (TSE, by PoliticAI)

Official 2024 Brazilian council and mayor election data by city, via MCP server

Vereador e prefeito 2024 (TSE, by PoliticAI) is an open-source MCP server for legal and government. It runs as a hosted remote server, so there is nothing to install locally.

Pricing
Open source
Platforms
API, CLI, Self-hosted
Runs
Remotely
Version
1.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add --transport http vereador-2024 https://politicai.ia.br/mcp/

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "vereador-2024": {
      "type": "http",
      "url": "https://politicai.ia.br/mcp/"
    }
  }
}

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

https://politicai.ia.br/mcp/

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "vereador-2024": {
      "url": "https://politicai.ia.br/mcp/"
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "vereador-2024": {
      "type": "http",
      "url": "https://politicai.ia.br/mcp/"
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

https://politicai.ia.br/mcp/

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

ChatGPT setup guide

Add with the CLI

Run in a terminal

codex mcp add vereador-2024 --url https://politicai.ia.br/mcp/

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.vereador-2024]
url = "https://politicai.ia.br/mcp/"

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

https://politicai.ia.br/mcp/

Enter a Name (for example "Vereador e prefeito 2024 (TSE, by PoliticAI)"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "vereador-2024": {
      "type": "http",
      "url": "https://politicai.ia.br/mcp/"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "vereador-2024": {
          "httpUrl": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Or run: gemini mcp add -s user --transport http vereador-2024 https://politicai.ia.br/mcp/

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "vereador-2024": {
          "serverUrl": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "vereador-2024": {
          "url": "https://politicai.ia.br/mcp/",
          "transport": "http"
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "vereador-2024": {
          "type": "streamableHttp",
          "url": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "vereador-2024": {
          "url": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "vereador-2024": {
          "url": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "vereador-2024": {
          "url": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "vereador-2024": {
          "url": "https://politicai.ia.br/mcp/"
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Vereador e prefeito 2024 (TSE, by PoliticAI)

Brazilian municipal elections produce a lot of numbers, and this server makes the 2024 results for every city queryable from an AI assistant. Each municipality gets its electoral quotient, the 10% individual threshold, the vote total of the last councillor elected, and the median campaign spending of winners and losers, all drawn from TSE open data.

The same dataset also covers the 2024 mayoral race in about 5,500 municipalities, including the deciding round, winner's share, margin, runner-up and spending. Tools can search a municipality by name with or without accents, compare cities of similar electorate size within a state, and return national summaries. The server is read-only and needs no API key.

It suits political analysts, journalists, researchers and developers building civic tools who want citable figures rather than estimates. It can be run locally from the repository or connected remotely over Streamable HTTP.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 7 names don't say.

From the server's own tool labels and tool names; not verified by us.

buscar_municipio
Finds a municipality by name, partial or accent-insensitive, and returns its state.
consultar_municipio
Returns 2024 council votes and spending for a municipality: quotient, 10% minimum, last elected, median spending and cost per vote.
comparar_municipios
Lists municipalities in the same state with similar electorate.
resumo_nacional
Returns national totals and medians by electorate band, including spending and funding sources.
consultar_prefeito
Returns the 2024 mayoral election result for a municipality, including round, party, votes, margin and spending.
comparar_prefeitos
Lists municipalities in the same state with similar electorate and their 2024 mayoral results.
resumo_prefeitos
Returns national and band-level medians and percentages for 2024 mayoral elections.

What it does

Municipal vote thresholds
Shows the electoral quotient, the 10% minimum vote and the last elected councillor's total for each city.
Campaign spending figures
Reports median spending of elected and non-elected candidates and cost per vote, aggregated per municipality.
2024 mayor results
Covers the deciding round, winner's party and vote share, margin, runner-up and winner spending.
Municipality comparison
Finds cities in the same state with a similar electorate for side-by-side reference.
Remote and local transport
Runs locally via npx or remotely over Streamable HTTP without an API key.

Good for

  • Check how many votes elected the last councillor in a given Brazilian city in 2024
  • Research campaign spending against seats won across municipalities
  • Compare mayoral margins between cities of similar size in one state
  • Build a civic data app using official TSE figures under CC BY 4.0
  • Ask an AI assistant for sourced municipal election numbers during reporting

Pricing

Open source

Free open data and MIT-licensed code; no paid hosted plan listed.

Prices change. Check politicai.ia.br before you buy.

Vereador e prefeito 2024 (TSE, by PoliticAI) FAQ

Does the server require an API key?

No. The remote endpoint is read-only and needs no key, and the local version has no dependencies.

What is the source of the data?

The figures come from the TSE Portal de Dados Abertos for the 2024 elections, compiled by PoliticAI.

Under what licence is the data released?

The data is released under CC BY 4.0 and the code under MIT.

Does the dataset include individual candidate spending?

No. Spending is published only as municipal aggregates, with no individual names or suppliers stored.

Is Vereador e prefeito 2024 (TSE, by PoliticAI) free?

Yes. Vereador e prefeito 2024 (TSE, by PoliticAI) is open source, so you can use and self-host it for free.

How do I add Vereador e prefeito 2024 (TSE, by PoliticAI) to Claude Code?

Run this command in your terminal: claude mcp add --transport http vereador-2024 https://politicai.ia.br/mcp/

What are the best alternatives to Vereador e prefeito 2024 (TSE, by PoliticAI)?

The closest alternatives to Vereador e prefeito 2024 (TSE, by PoliticAI) are Eleições 2026 em dados (TSE), HubPolítico, Emendas parlamentares do Brasil, Eleições 2026: Dados Públicos do TSE and MCP Dados Brasil.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers