The open platform for American political technology
APIs and prompt libraries that remove the friction from political compliance, party formation, and ballot access -- so you can focus on building for democracy.
npm install @mesocrats/mce-sdk1import { MCE } from "@mesocrats/mce-sdk";23const mce = new MCE({ apiKey: "mce_live_..." });45// Generate an FEC-compliant Form 3X report6const report = await mce.compliance.generateReport({7 committeeId: "C00123456",8 reportType: "Q1",9 year: 2026,10});1112console.log(report.filing_id); // -> "FEC-2026-Q1-..."Two ways to build
Built for developers. Designed for everyone.
Whether you write code or write prompts, the MCE platform meets you where you are.
Developer Path
Full programmatic access to every MCE capability through REST APIs and typed SDKs.
- ->RESTful API with OpenAPI 3.1 spec
- ->TypeScript and Python SDKs
- ->OAuth 2.0 authentication
- ->Webhook event subscriptions
- ->Interactive API sandbox
Prompt Path
Copy-paste prompt templates that work with Claude, ChatGPT, and any major LLM -- no code required.
- ->Copy-paste prompt templates
- ->Claude.ai and ChatGPT ready
- ->No code or API key required
- ->Step-by-step compliance guides
- ->Community-contributed library
Products
APIs for every layer of political infrastructure
From compliance to ballot access, the MCE platform covers the full stack of American political technology.
Compliance API
FEC Form 3X generation, contribution limits, donor matching, receipt validation, and IRS Form 8872 XML -- everything a multi-candidate committee needs to stay compliant.
Party Formation API
State-by-state party registration requirements, petition tracking, signature validation, and filing deadlines for new political party formation.
Ballot Access API
Candidate filing requirements by state and office, petition thresholds, filing fees, deadline calendars, and document template generation.
Election Calendar API
Comprehensive election dates, registration deadlines, early voting windows, and filing periods across all 50 states, DC, and territories.
Quick start
From zero to first filing in 4 steps
Get up and running with the MCE SDK in minutes.
Get your API key
Sign up and generate an API key from the developer dashboard.
export MCE_API_KEY="mce_live_your_key_here"Install the SDK
Add the MCE SDK to your project with npm, yarn, or pnpm.
npm install @mesocrats/mce-sdkMake your first call
Initialize the client and verify your connection.
import { MCE } from "@mesocrats/mce-sdk";const mce = new MCE({ apiKey: process.env.MCE_API_KEY,});const status = await mce.health.check();console.log(status); // { status: "ok", version: "1.0.0" }Generate a report
Create your first FEC-compliant filing in under 10 lines.
const report = await mce.compliance.generateReport({ committeeId: "C00123456", reportType: "Q1", year: 2026, format: "fec",});// Download the .fec fileawait report.download("./filings/Q1-2026.fec");"Political parties shouldn't be about competition. They should be about co-existence."
The entire MCE platform is open source under the MIT license. Fork it, extend it, build on it -- no permission needed. Democracy works best when the tools are free.