civicapi-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@civicapi-mcpWhat are the upcoming election dates in the US?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
civicAPI MCP Server
Model Context Protocol (MCP) server for civicAPI - live and historical US election results . No API keys or authentication required.
Hosted MCP (Vercel)
Production: https://civicapi-mcp.vercel.app/mcp
Use Streamable HTTP transport (not stdio).
Cursor
{
"mcpServers": {
"civic-api-hosted": {
"url": "https://civicapi-mcp.vercel.app/mcp"
}
}
}Zed
"civic-api-hosted": {
"enabled": true,
"url": "https://civicapi-mcp.vercel.app/mcp"
}Related MCP server: onpe-mcp
Local stdio MCP (Python)
Clone the project, then:
pip install -r python/requirements.txt
python python/server.pyCursor (local)
{
"mcpServers": {
"civic-api": {
"command": "python",
"args": ["/absolute/path/to/civicapi-mcp/python/server.py"]
}
}
}Zed (local)
"civic-api": {
"enabled": true,
"remote": false,
"command": "python",
"args": ["/absolute/path/to/civicapi-mcp/python/server.py"]
}Tools
Tool | civicAPI endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
search_races
Search by name, country, province, district, election type, and date range. At least one filter is required.
query— race name (slow alone; prefer geographic/date filters)country— ISO 3166-1 alpha-2 (US) or alpha-3 for limited-recognition states (USA)province— e.g.AL,JP-07district— English district nameelection_typestart_date/end_date—YYYY-MM-DDlimit— default 20, max 50000
get_race_by_id
Full race payload. Optional flags:
generate_map/generate_map_png— rendered map (SVG or PNG)testdata— random test datadata—jsonorcsvembed— embed iframe JSONprecinct— include precinct-level resultsformat— map style (percentage,raw, etc.)
Non-JSON responses (CSV, SVG, PNG) are returned with _content_type and _body or _body_base64.
get_race_history
Historical snapshots for timeline/progression views. Data available for races tracked after October 9, 2025.
Omit
timestampto list available UTC timestampsSet
timestamp(YYYY-MM-DDTHH:MM:SS.sssZ) for a full snapshotOptional:
generate_map,generate_map_png,light,precinct
get_election_dates
Election dates for a year (defaults to current year). Optional country and province filters.
get_election_years
All election years in the database.
get_api_status
Service health check ({"status":"ok"} when available).
Attribution
civicAPI requires attribution for non-personal projects. Link to civicapi.org or mention civicAPI in your project.
License
MIT
This server cannot be installed
Maintenance
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
- AlicenseAqualityAmaintenanceAn MCP server providing access to Swiss direct democracy data, covering all federal popular votes since 1848 and elections since 1900.102MIT
- Flicense-qualityBmaintenanceMCP server for querying Peruvian electoral data (ONPE) including mesa results, candidate votes, and regional statistics. Enables natural language queries about the 2026 presidential election with local SQLite cache and live API fallback.
- AlicenseDqualityBmaintenanceMCP server for South Korean election research, providing tools to search candidates, retrieve election results, and lookup campaign booklet texts using NEC open data and the krpoltext dataset.161MIT
- AlicenseAqualityAmaintenanceMCP server for the Congress.gov API that tracks US federal legislative process, providing tools to search bills and get bill details.101Apache 2.0
Related MCP Connectors
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/neel-kumar-v/civicapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server