Open Source -- MIT License

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.

Terminal
bash
npm install @mesocrats/mce-sdk
index.ts
typescript
1import { MCE } from "@mesocrats/mce-sdk";
2
3const mce = new MCE({ apiKey: "mce_live_..." });
4
5// Generate an FEC-compliant Form 3X report
6const report = await mce.compliance.generateReport({
7 committeeId: "C00123456",
8 reportType: "Q1",
9 year: 2026,
10});
11
12console.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.

GA

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.

Coming Q3

Party Formation API

State-by-state party registration requirements, petition tracking, signature validation, and filing deadlines for new political party formation.

Coming Q4

Ballot Access API

Candidate filing requirements by state and office, petition thresholds, filing fees, deadline calendars, and document template generation.

Coming 2027

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.

1

Get your API key

Sign up and generate an API key from the developer dashboard.

Step 1
bash
export MCE_API_KEY="mce_live_your_key_here"
2

Install the SDK

Add the MCE SDK to your project with npm, yarn, or pnpm.

Step 2
bash
npm install @mesocrats/mce-sdk
3

Make your first call

Initialize the client and verify your connection.

Step 3
typescript
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" }
4

Generate a report

Create your first FEC-compliant filing in under 10 lines.

Step 4
typescript
const report = await mce.compliance.generateReport({
committeeId: "C00123456",
reportType: "Q1",
year: 2026,
format: "fec",
});
// Download the .fec file
await report.download("./filings/Q1-2026.fec");

"Political parties shouldn't be about competition. They should be about co-existence."

MIT License

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.