electiondata-my-mcp

v0.3.0
electiondata-my-mcp Checked 1 hour ago Published 2 months ago

An MCP server that lets an LLM answer questions about Malaysian elections by writing DuckDB SQL against the public ElectionData.MY data lake

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_query_guide

Return the ElectionData.MY Query Builder schema and SQL rules. This guide documents the lake tables, column schemas, and query safety rules. Call this tool first to understand the available data and how to query it.

list_datasets

List lake datasets with coverage hints and whether each is streamed over HTTP. Each entry includes description (coverage dates and pitfalls) and use_for (typical questions). For full column schemas and join rules, call get_query_guide before writing SQL.

describe_dataset

Return column names and types for a lake dataset. Description and use_for summarize coverage; call get_query_guide for full schemas, join keys, and SQL safety rules.

ParameterTypeDescription
dataset *string

validate_sql

Validate read-only SQL against lake table and voter-roll rules. Warnings flag likely mistakes (e.g. state election filters without state).

ParameterTypeDescription
sql *string

sample_dataset

Return a small sample of rows from a dataset.

ParameterTypeDescription
dataset *string
limitinteger

execute_query

Execute validated read-only SQL against the ElectionData.MY lake.

ParameterTypeDescription
sql *string
max_rowsinteger