[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [New Hampshire legislator search](https://spiral.ai/integrations/opencode/new-hampshire-legislator-search)

# How to Use New Hampshire legislator search in opencode

Finds New Hampshire legislators and returns identifying, district, party, committee, and public contact information. Use it to identify officials representing a House district or serving on a committee.

|  |  |
| --- | --- |
| Model | New Hampshire legislator search |
| 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 New Hampshire legislator search in opencode

- Use New Hampshire legislator search to find House representatives for Manchester and add their names, districts, and parties to the project's public directory.
- Use New Hampshire legislator search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from New Hampshire legislator search and tell me what changed since last week.
- Check New Hampshire legislator search and summarize what you find in three bullet points.
- Pull the newest data from New Hampshire legislator search and give me the result as a table.

## How to set up New Hampshire legislator search in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 New Hampshire legislator search**: 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": "gc-nh-gov/legislation/search_legislators",
    "input": {
      "name": "<name>"
    }
  }'
```

Then paste one of the prompts above: opencode finds New Hampshire legislator search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## New Hampshire legislator search tools and prices

- [New Hampshire General Court (NH legislature) · Search legislators](https://spiral.ai/tools/alexandria/gc-nh-gov/legislation/search_legislators) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| name |  | — | Name words; each must start a word of the member's first, middle or last name ("carson", "tim mannion"). |
| town |  | — | NH town or city; matches House members whose district includes it (Manchester matches every ward). Senators are not matched by town. |
| limit | 1 to 450 | 50 | limit |
| party |  | — | R, D, I, L or a party name (republican, democratic ...). |
| county |  | — | NH county (Hillsborough, Rockingham ...); prefix match. |
| chamber | house, senate, all | all | chamber |

## What can you do with New Hampshire legislator search in opencode?

Build a New Hampshire legislative reference in your project that connects bill histories with public officials' sponsorship and voting records. Use the returned records to populate timelines, directories, or tables that retain the wording of each vote's motion.

### Prepare a municipal policy brief

Find legislation about municipal taxation, identify the relevant officials and their committees, and connect sponsorship, docket actions, and recorded votes in a brief for a town administrator.

### Build a school funding research packet

Locate education funding proposals, identify Education or Finance committee officials, and assemble their sponsorship records, bill histories, and motion-specific votes for a school board briefing.

### Check a legislative news story

Find the bill behind a claim, identify the officials involved, and check their sponsorship and voting records against the docket before describing who proposed or supported a measure.

### Research legislation affecting local businesses

Find employment or licensing proposals, identify sponsors and committee officials, and summarize their legislative work, the bills' progress, and recorded decisions for a business association.

### Explain an official's legislative record

Resolve a public official's identity, review sponsored legislation and committee assignments, and explain recorded votes using each motion's wording.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## New Hampshire legislator search in other agents

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

## More opencode guides

- [New Hampshire legislator profile](https://spiral.ai/integrations/opencode/new-hampshire-legislator-profile)
- [New Hampshire legislator voting record](https://spiral.ai/integrations/opencode/new-hampshire-legislator-voting-record)
- [New Hampshire election results index](https://spiral.ai/integrations/opencode/new-hampshire-election-results-index)
- [New Hampshire primary nominees](https://spiral.ai/integrations/opencode/new-hampshire-primary-nominees)
- [New Hampshire election documents](https://spiral.ai/integrations/opencode/new-hampshire-election-documents)
- [New Hampshire race results](https://spiral.ai/integrations/opencode/new-hampshire-race-results)

## Questions about New Hampshire legislator search in opencode

**Can opencode use New Hampshire legislator search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run New Hampshire legislator search like any built-in tool.

**How much does New Hampshire legislator search cost in opencode?**

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

**Do I need an Alexandria account to use New Hampshire legislator search in opencode?**

No. Spiral runs New Hampshire legislator search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up New Hampshire legislator search in opencode?**

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

**Does opencode wait while New Hampshire legislator search runs?**

New Hampshire legislator search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which legislative years does this data cover?**

The documented coverage is New Hampshire's 2025–2026 biennium. Treat it as that legislative period rather than a complete historical archive.

**How fresh are the underlying bill records?**

The General Court says its current bill-status download refreshes on file access. That describes the source file's refresh behavior, not a guaranteed delay between legislative action and its appearance in a response.

**Does a yes vote always mean support for passing the bill?**

No. New Hampshire's records distinguish motions: HB292, for example, has separate floor-amendment and passage motions in the 2026 Senate voting record. Read the motion alongside the vote.

**Are absences counted as no votes?**

The source schema separates four tally categories: yeas, nays, present, and absent. Keep those categories separate when summarizing participation or vote totals.

**Where can I obtain an official voting record?**

The General Court directs readers to the House Clerk or Senate Clerk for official copies of legislators' voting records.

