[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [FEC contribution aggregates](https://spiral.ai/integrations/claude-code/fec-contribution-aggregates)

# How to Use FEC contribution aggregates in Claude Code

Returns grouped individual-contribution totals for fundraising analysis rather than donor-level transactions. Use it to examine reported funding patterns, accounting for the different treatment of unitemized money in contribution-size summaries.

|  |  |
| --- | --- |
| Model | FEC contribution aggregates |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FEC contribution aggregates in Claude Code

- Use FEC contribution aggregates to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from FEC contribution aggregates and tell me what changed since last week.
- Check FEC contribution aggregates and summarize what you find in three bullet points.
- Pull the newest data from FEC contribution aggregates and give me the result as a table.
- Check FEC contribution aggregates every morning and tell me only when something changed.

## How to set up FEC contribution aggregates in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run FEC contribution aggregates**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "fec-gov/records/receipt_aggregates",
    "input": {
      "by": "size",
      "committee_id": "<committee_id>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds FEC contribution aggregates on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## FEC contribution aggregates tools and prices

- [FEC · Receipt aggregates](https://spiral.ai/tools/alexandria/fec-gov/records/receipt_aggregates) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100000 | 1 | 1-based page; pass the previous next_page with the same filters. |
| cycle | 1976 to 2100 | — | Two-year election cycle, named by its even year: 2024 covers 2023-2024. |
| state |  | — | by=state only: one state. Pattern: ^[A-Za-z]{2}$. |
| employer |  | — | by=employer only: employer name search. Pattern: \S. |
| per_page | 1 to 100 | 10 | Rows per page, 1 to 100. |

## What can you do with FEC contribution aggregates in Claude Code?

Build a federal election research table from FEC disclosure records. A coding agent can organize candidate and committee identities alongside reported financial activity and the filings behind it.

### Explain the money behind a federal race

Identify the candidates and their committees, compare reported finances and contribution patterns, and explain campaign payments separately from independent spending. Use filings to document the reporting periods behind the explanation.

### Compare campaign finance across election cycles

Match candidates and committees across selected cycles, then compare financial summaries, contribution aggregates and spending records. Check the underlying filings so differences in reporting coverage remain visible.

### Check a campaign finance claim

Resolve the candidate or organization named in a claim, identify whether it concerns fundraising, campaign payments or independent spending, and retrieve the relevant records and filings.

### Build a classroom campaign finance case study

Use a real federal race to show how candidate registration, committee organization, fundraising summaries and spending disclosures fit together. Include contribution aggregates and original filings as evidence students can examine.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## FEC contribution aggregates in other agents

- [Amp](https://spiral.ai/integrations/amp/fec-contribution-aggregates)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/fec-contribution-aggregates)
- [Claude](https://spiral.ai/integrations/claude-desktop/fec-contribution-aggregates)
- [Cline](https://spiral.ai/integrations/cline/fec-contribution-aggregates)
- [Codex](https://spiral.ai/integrations/codex/fec-contribution-aggregates)
- [Cursor](https://spiral.ai/integrations/cursor/fec-contribution-aggregates)
- [Devin](https://spiral.ai/integrations/devin/fec-contribution-aggregates)
- [dots](https://spiral.ai/integrations/dots/fec-contribution-aggregates)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/fec-contribution-aggregates)
- [Gemini](https://spiral.ai/integrations/gemini/fec-contribution-aggregates)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/fec-contribution-aggregates)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/fec-contribution-aggregates)
- [goose](https://spiral.ai/integrations/goose/fec-contribution-aggregates)
- [Grok](https://spiral.ai/integrations/grok/fec-contribution-aggregates)
- [Grok Build](https://spiral.ai/integrations/grok-build/fec-contribution-aggregates)
- [Hermes](https://spiral.ai/integrations/hermes/fec-contribution-aggregates)
- [Instinct](https://spiral.ai/integrations/instinct/fec-contribution-aggregates)
- [Manus](https://spiral.ai/integrations/manus/fec-contribution-aggregates)
- [Muse](https://spiral.ai/integrations/muse/fec-contribution-aggregates)
- [Muse Code](https://spiral.ai/integrations/muse-code/fec-contribution-aggregates)
- [n8n](https://spiral.ai/integrations/n8n/fec-contribution-aggregates)
- [Notion](https://spiral.ai/integrations/notion/fec-contribution-aggregates)
- [OpenClaw](https://spiral.ai/integrations/openclaw/fec-contribution-aggregates)
- [opencode](https://spiral.ai/integrations/opencode/fec-contribution-aggregates)
- [Perplexity](https://spiral.ai/integrations/perplexity/fec-contribution-aggregates)
- [Raycast](https://spiral.ai/integrations/raycast/fec-contribution-aggregates)
- [VS Code](https://spiral.ai/integrations/vscode/fec-contribution-aggregates)
- [Windsurf](https://spiral.ai/integrations/windsurf/fec-contribution-aggregates)
- [Zapier](https://spiral.ai/integrations/zapier/fec-contribution-aggregates)

## More Claude Code guides

- [FEC committee search](https://spiral.ai/integrations/claude-code/fec-committee-search)
- [FEC independent expenditures](https://spiral.ai/integrations/claude-code/fec-independent-expenditures)
- [FEC committee financial totals](https://spiral.ai/integrations/claude-code/fec-committee-financial-totals)
- [FEMA National Risk Index data dictionary](https://spiral.ai/integrations/claude-code/fema-national-risk-index-data-dictionary)
- [FEC committee disbursements](https://spiral.ai/integrations/claude-code/fec-committee-disbursements)
- [FEMA National Risk Index hazard codes](https://spiral.ai/integrations/claude-code/fema-national-risk-index-hazard-codes)

## Questions about FEC contribution aggregates in Claude Code

**Can Claude Code use FEC contribution aggregates?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run FEC contribution aggregates like any built-in tool.

**How much does FEC contribution aggregates cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use FEC contribution aggregates in Claude Code?**

No. Spiral runs FEC contribution aggregates on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FEC contribution aggregates in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while FEC contribution aggregates runs?**

FEC contribution aggregates runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does the FEC cover state and local elections?**

The FEC publishes federal campaign finance disclosures. State and local campaign finance reports may be available from state records offices.

**How fresh are FEC financial summaries?**

Committee financial summaries update nightly using electronic reports received or paper reports computerized through 7 p.m. the previous day. Their financial coverage ends with the latest report submitted.

**Do all committee totals cover the same dates?**

No. FEC cycle summaries combine reports over a two-year period, but each committee's totals end with its latest submitted report, so comparison periods can differ.

**Does the disbursement search include all outside spending?**

No. It excludes outside spending to support or oppose candidates, as well as allocated federal/nonfederal disbursements. Independent expenditure disclosures identify spending by the candidate supported or opposed.

**Are filings limited to financial reports?**

No. FEC filings also include statements and notices submitted by candidates and committees.

