[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Grants.gov opportunity filter counts](https://spiral.ai/integrations/claude-code/grants-gov-opportunity-filter-counts)

# How to Use Grants.gov opportunity filter counts in Claude Code

Returns funding-opportunity filter categories and matching counts, including agencies and applicant types. Use it to see where relevant notices cluster before reviewing individual opportunities.

|  |  |
| --- | --- |
| Model | Grants.gov opportunity filter counts |
| 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 Grants.gov opportunity filter counts in Claude Code

- Use Grants.gov opportunity filter counts for wildfire notices accepting applications and add an agency-count table to the project's funding report.
- Use Grants.gov opportunity filter counts for water conservation and populate the project's agency comparison view with the returned counts.
- Use Grants.gov opportunity filter counts to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Grants.gov opportunity filter counts and tell me what changed since last week.
- Check Grants.gov opportunity filter counts and summarize what you find in three bullet points.

## How to set up Grants.gov opportunity filter counts 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 Grants.gov opportunity filter counts**: 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": "grants-gov/opportunities/facets",
    "input": {
      "query": ""
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Grants.gov opportunity filter counts on Spiral, shows the price and runs it.

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

## Grants.gov opportunity filter counts tools and prices

- [Grants.gov · Facets](https://spiral.ai/tools/alexandria/grants-gov/opportunities/facets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  |  | query |
| statuses |  | — | statuses |

## What can you do with Grants.gov opportunity filter counts in Claude Code?

Build a grant tracker that separates planned funding from notices accepting applications. Add agency counts, opportunity shortlists, and detailed reviews to the project's existing workflow.

### Build a nonprofit funding shortlist

Compare agency and applicant-category counts for food security, find relevant notices, and review eligibility and matching requirements before assigning proposal work.

### Plan a university research pipeline

Compare the agencies behind artificial intelligence research notices, identify forecasts, and review expected dates and applicant restrictions for research-office planning.

### Assess county wildfire funding

Check which agencies have wildfire notices, shortlist opportunities for county governments, and inspect deadlines, cost sharing, and supporting documents.

### Research rural water funding

Use matching counts to focus rural water research, collect relevant notices, and compare each notice's applicant requirements and funding amounts.

### Compare funding topics by agency

Compare agency counts for broadband, wildfire, and water conservation to decide which topics warrant a closer search.

## Overview

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

## Grants.gov opportunity filter counts in other agents

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

## More Claude Code guides

- [Grants.gov opportunity details](https://spiral.ai/integrations/claude-code/grants-gov-opportunity-details)
- [IEA country codes](https://spiral.ai/integrations/claude-code/iea-country-codes)
- [Grants.gov funding opportunity search](https://spiral.ai/integrations/claude-code/grants-gov-funding-opportunity-search)
- [IEA energy dataset catalog](https://spiral.ai/integrations/claude-code/iea-energy-dataset-catalog)
- [GovInfo publication search](https://spiral.ai/integrations/claude-code/govinfo-publication-search)
- [IEA energy dataset details](https://spiral.ai/integrations/claude-code/iea-energy-dataset-details)

## Questions about Grants.gov opportunity filter counts in Claude Code

**Can Claude Code use Grants.gov opportunity filter counts?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Grants.gov opportunity filter counts like any built-in tool.

**How much does Grants.gov opportunity filter counts 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 Grants.gov opportunity filter counts in Claude Code?**

No. Spiral runs Grants.gov opportunity filter counts on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Grants.gov opportunity filter counts in Claude Code?**

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

**Does Claude Code wait while Grants.gov opportunity filter counts runs?**

Grants.gov opportunity filter counts runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does Grants.gov include foundation grants or personal assistance?**

Grants.gov focuses on federal funding opportunities and points readers to separate resources for foundation and regional grants. Its opportunities do not provide personal financial assistance.

**Can a forecast be treated as an open application?**

A forecast is a planned opportunity that may never become an official announcement. Posted notices are the ones currently accepting applications.

**Are closed and archived notices still useful?**

Closed notices have passed their application deadline. Archived notices preserve historical announcements, which can help you research earlier funding rounds.

**How fresh are individual opportunity details?**

Each opportunity-detail request performs a live lookup without a cache. It retrieves the information currently supplied by Grants.gov.

**Does an applicant-category match establish eligibility?**

The notice of funding opportunity defines eligibility requirements. A broad category match, such as nonprofit or university, still requires checking the notice's specific restrictions.

