[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Montgomery County permit search](https://spiral.ai/integrations/opencode/montgomery-county-permit-search)

# How to Use Montgomery County permit search in opencode

Finds Montgomery County DPS permit records for building, fence, sign, or historic exterior work. Use it to assemble a project's permit history or compare construction activity across communities.

|  |  |
| --- | --- |
| Model | Montgomery County permit search |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Montgomery County permit search in opencode

- Use Montgomery County permit search to fetch commercial permits in Bethesda and add a table of permit numbers, statuses, and work descriptions to this project.
- Use Montgomery County permit search to compare residential construction categories in Germantown and Clarksburg, then build an aggregate chart in the app.
- Use Montgomery County permit search to find historic exterior-work records in Kensington and create a report of the proposed work.
- Use Montgomery County permit search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Montgomery County permit search and tell me what changed since last week.

## How to set up Montgomery County permit 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 Montgomery County permit 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": "data-montgomerycountymd-gov/building-permits/search_permits",
    "input": {
      "zip": "<zip>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Montgomery County permit search on Spiral, shows the price and runs it.

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

## Montgomery County permit search tools and prices

- [Montgomery County, MD Permits (data.montgomerycountymd.gov) · Search permits](https://spiral.ai/tools/alexandria/data-montgomerycountymd-gov/building-permits/search_permits) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| zip |  | — | 5-digit ZIP code of the site. Pattern: ^[0-9]{5}$. |
| city |  | — | Mailing community, case-insensitive substring (Bethesda, Silver Spring, Takoma Park, Germantown). |
| kind | residential, commercial, fence, sign, historic_area_work | residential | Which DPS dataset: residential (Residential Permit m88u-pqki: houses, townhouses, additions, decks, sheds, pools, alterations; default), commercial (Commercial Permits i26v-w6bd: commercial and multifamily buildings, tenant fit-outs, change of use), fence (Fence Permits 9quz-avmj), sign (Sign Permits piic-h4rw) or historic_area_work (Historic Area Work Permits bhqn-3agh: exterior work on Master Plan historic sites and districts). |
| sort | issued_desc, applied_desc, updated_desc, valuation_desc | issued_desc | issued_desc: newest issue date first, unissued applications last; applied_desc: newest application first; updated_desc: most recently added or changed first (for polling); valuation_desc: largest declared valuation first (residential and commercial). |
| limit | 1 to 100 | 25 | Rows per page. |
| cursor |  | — | next_cursor from the previous page; repeat the same filters with it. Pattern: ^[0-9]+$. |

## What can you do with Montgomery County permit search in opencode?

Build a Montgomery County construction report that connects project summaries to individual permit records. A coding agent can turn county statuses and work descriptions into a searchable table in your project.

### Commercial property permit history

Find permits associated with a shopping center or office property, then inspect individual records to explain the work and its published status.

### Retail renovation briefing

Collect commercial work and sign records around a retail site. Read the relevant permits to prepare a briefing on the changes described in county records.

### Historic business district research

Find historic exterior-work permits in Kensington or Takoma Park and examine selected records for a report on proposed changes to designated properties.

### Commercial project status checks

Build a shortlist of commercial projects in Bethesda or Silver Spring, then revisit their permit numbers to compare published statuses over time.

### Local construction reporting

Find commercial permit activity in a community and inspect the records behind a story. Use the county's work descriptions to make the reporting specific.

### Housing construction comparisons

Compare residential permit activity across Germantown, Clarksburg, and Bethesda. Summarize projects by the published work categories without profiling residents.

## Overview

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

## Montgomery County permit search in other agents

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

## More opencode guides

- [Montgomery County permit details](https://spiral.ai/integrations/opencode/montgomery-county-permit-details)
- [NASA POWER climate averages](https://spiral.ai/integrations/opencode/nasa-power-climate-averages)
- [Montana address and road updates](https://spiral.ai/integrations/opencode/montana-address-and-road-updates)
- [NASA POWER daily weather history](https://spiral.ai/integrations/opencode/nasa-power-daily-weather-history)
- [Montana GIS search](https://spiral.ai/integrations/opencode/montana-gis-search)
- [NASA POWER monthly weather history](https://spiral.ai/integrations/opencode/nasa-power-monthly-weather-history)

## Questions about Montgomery County permit search in opencode

**Can opencode use Montgomery County permit search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Montgomery County permit search like any built-in tool.

**How much does Montgomery County permit 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 Montgomery County permit search in opencode?**

No. Spiral runs Montgomery County permit 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 Montgomery County permit search in opencode?**

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

**Does opencode wait while Montgomery County permit search runs?**

Montgomery County permit search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How far back does the permit history go?**

The county describes both its residential and commercial building-permit datasets as covering permits issued since 2000. That history statement applies specifically to those two building-permit datasets.

**How often does the county update building-permit data?**

The residential and commercial datasets both list daily updates. The published schedule supports daily monitoring rather than an assumption that each permit change appears immediately.

**Does this cover permits inside Rockville and Gaithersburg?**

County DPS building-code jurisdiction excludes the incorporated cities of Rockville and Gaithersburg. Those cities have their own permitting departments, so county data alone does not provide complete building-permit coverage there.

**Can I identify contractors or individual units from these records?**

DPS publishes no contractor, parcel, or unit columns in these datasets. The documented record instead includes the site address, coordinates, valuation, and building area.

**What does historic area work cover?**

Historic Area Work Permits cover proposed exterior work involving properties listed on the Montgomery County Master Plan for Historic Preservation. The coverage includes designated individual sites and properties within historic districts.

