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

Runs against the full table. Enter your key; plans are below.

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 with your key:

https://data.nysgpt.com/mcp?key=YOUR_KEY

Claude Code

claude mcp add --transport http nysgpt-data https://data.nysgpt.com/mcp --header "X-Api-Key: YOUR_KEY"

HTTP

curl -s https://data.nysgpt.com/query -H "X-Api-Key: YOUR_KEY" -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). Every call needs a key; plans are below.

Pricing

Samples

$0

20,000-row samples of ten datasets, as Parquet files on Hugging Face.

Open samples

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