npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tn-elections-mcp

v0.5.0

Published

MCP server for Tennessee elections: county campaign finance, state campaign finance, and financial disclosures

Readme

tn-elections-mcp

MCP server for Tennessee elections: county campaign finance (EasyVote), state campaign finance (tncamp), Sumner County PDF-based disclosures, and Secretary of State candidate filings.

Data Sources

EasyVote Campaign Finance (14 counties)

JSON API at ecf-api.easyvoteapp.com. Covers county-level races (mayor, county commission, school board, municipal offices) in: Anderson, Davidson, Greene, Hamblen, Hamilton, Knox, Madison, Marion, Maury, Rutherford, Shelby, Sullivan, Washington, Williamson.

tncamp (State-level)

HTML scraping of apps.tn.gov/tncamp. Covers Governor, state Senate, state House, judges, DAs, and statewide PACs across all Tennessee counties.

Sumner County

HTML scraping of votesumnertn.org for candidate metadata + Gemini Flash for PDF financial data extraction.

TN Secretary of State (Candidate Filings)

Excel files from sos.tn.gov/elections. Official candidate filing lists for state and federal races: Governor, US Senate, US House, TN Senate, TN House, and party executive committees. This is the authoritative "who has filed to run" source, distinct from campaign finance data.

Tools (22)

| Tool | Source | Description | |------|--------|-------------| | list_easyvote_counties | EasyVote | List 14 counties with portals | | search_county_filers | EasyVote | Search candidates/PACs in a county | | list_county_offices | EasyVote | List offices in a county | | search_county_contributions | EasyVote | Search contributions by donor/recipient | | search_county_expenditures | EasyVote | Search expenditures by vendor/candidate | | get_county_election_documents | EasyVote | Get election documents | | search_all_counties_contributions | EasyVote | Cross-county donor search | | search_all_counties_expenditures | EasyVote | Cross-county vendor search | | search_state_candidates | tncamp | Search by name or by office/district | | list_tncamp_offices | tncamp | List available offices (courts, DA, etc.) | | list_tncamp_districts | tncamp | List districts for an office | | get_candidate_reports | tncamp | Get filed report list | | get_report_detail | tncamp | Full financial breakdown | | search_state_contributions | tncamp | Cross-candidate contribution search | | search_state_expenditures | tncamp | Cross-candidate expenditure search | | get_candidate_financials | tncamp | Quick candidate financial summary | | list_sumner_election_cycles | Sumner | List election cycles | | search_sumner_candidates | Sumner | Search candidates + PDF links | | get_sumner_report | Sumner | Extract financials from PDF via Gemini | | search_filed_candidates | TN SOS | Search officially filed candidates | | list_filed_offices | TN SOS | List office categories with candidate counts | | get_filing_summary | TN SOS | Aggregated filing stats by office/party |

Installation

npm install -g tn-elections-mcp

Or use with Claude Code:

claude mcp add tn-elections -- npx tn-elections-mcp

For Sumner County PDF extraction, add the Gemini API key:

claude mcp add tn-elections --env GEMINI_API_KEY=your_key -- npx tn-elections-mcp

Or in .claude.json:

{
  "tn-elections": {
    "command": "npx",
    "args": ["tn-elections-mcp"],
    "env": {
      "GEMINI_API_KEY": "your-key-here"
    }
  }
}

Without the Gemini key, get_sumner_report falls back to returning PDF page images for Claude to read directly.

Development

npm run dev    # Hot-reload via tsx
npm test       # Run tests
npm run build  # Compile TypeScript

License

MIT