NYSgptData LibraryConnectPricing

Precinct returns

Votes by precinct, office and candidate, 2016 to 2026.

269MRecords
4Tables
82Fields
2016–2026Years

Publisher: MIT Election Data and Science Lab; OpenElections; Voting and Election Science Team; local election offices

Try it

This runs against the full table, free, with no key.

Tables
Fields in medsl_precinct_returns
FieldTypeExample
precinctstringFP04
officestringSUPERINTENDENT OF PUBLIC INSTRUCTION
party_detailedstringREPUBLICAN
party_simplifiedstringREPUBLICAN
modestringELECTION DAY - TRANSFER_5
votesbigint0
county_namestringNEW HANOVER
county_fipsstring37129
jurisdiction_namestringNEW HANOVER
jurisdiction_fipsstring37129
candidatestringUNDERVOTES
districtstringSTATEWIDE
magnitudestring1
dataversestringSTATE
yearstring2020
stagestringGEN
statestringNORTH CAROLINA
specialstringFALSE
writeinstringFALSE
state_postringNC
state_fipsstring37
state_censtring56
state_icstring47
datestring2020-11-03
readme_checkstringFALSE
source_filestring2020-nc-precinct-general-sorted.csv
datasetstringNT66Z3
Connect

Claude

Settings, Connectors, Add custom connector. Paste this address:

https://data.nysgpt.com/mcp

Claude Code

claude mcp add --transport http nysgpt-data https://data.nysgpt.com/mcp

HTTP

curl -s https://data.nysgpt.com/query -H "content-type: application/json" \
  -d '{"sql":"SELECT count(*) FROM govblock_awards.usaspending_contracts"}'

Any MCP client works. The tools are list_databases, list_tables, describe_table and query (Athena SQL, read-only, up to 1,000 rows a query). With a paid key, add ?key=YOUR_KEY to the address or send the header X-Api-Key.

Pricing

Free

$0

30 queries a day, 1 GB scanned per query. No key, no sign-up.

Connect

Day pass

$29

300 queries and 100 GB scanned in 24 hours. One payment.

Buy a day pass

Monthly

$149/month

2,000 queries and 200 GB scanned a day. Cancel any time.

Subscribe

Institution

$1,500/month

20,000 queries and 1 TB scanned a day, for a lab, department or team.

Subscribe

Payment is by card through Stripe. The key appears on screen as soon as payment completes.

More in Elections