How to Use Cambridge building permit search in VS Code
Returns matching Cambridge building and trade permit records from city datasets. Use it to find work at a commercial property, investigate a contractor's jobs, or collect projects for further review.
Prompts to try with Cambridge building permit search in VS Code
Copy an example into VS Code, or ask in your own words.
Use Cambridge building permit search to collect commercial alteration permits on Massachusetts Ave, then add a project table to this repository.
Use Cambridge building permit search to find electrical permits for EV chargers in Cambridge ZIP 02142 and populate our equipment research page.
Use Cambridge building permit search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Cambridge building permit search and tell me what changed since last week.
Check Cambridge building permit search and summarize what you find in three bullet points.
How to set up Cambridge building permit search in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Cambridge building permit search
One request; the result comes back by polling or a webhook.
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-cambridgema-gov/building-permits/search_permits", "input": { "zip": "<zip>" } }'
Then paste one of the prompts above: VS Code finds Cambridge building permit search on Spiral, shows the price and runs it.
Cambridge building permit search providers and prices
Spiral runs Cambridge building permit search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | issued_desc, applied_desc, or valuation_desc | issued_desc | issued_desc: newest issue date first; applied_desc: newest application first; valuation_desc: largest declared cost first (not mechanical or plumbing). |
| Limit | 1 to 100 | 25 | Records per page. |
| Category | new_construction, alteration, short_form, roof, siding, solar, electrical, mechanical and 1 more | Which dataset to search. Omit to search the five building permit datasets (new_construction, alteration, short_form, roof, siding) merged in sort order; solar, electrical, mechanical and plumbing are searched only when named. | |
| Equipment | heat_pump, ductless_split, ev_charger, solar_pv, battery_storage, generator, or electric_water_heater | Only permits with this equipment, by the dataset's own counts: electrical (heat_pump, ductless_split, ev_charger, solar_pv, generator), mechanical (heat_pump, ductless_split), solar (solar_pv, battery_storage), plumbing (electric_water_heater). Needs category; other pairs are invalid_input. | |
| Min valuation | a number from 0 | Only permits whose declared cost is at least this many USD (not mechanical or plumbing, which publish none). |
Every API field of City of Cambridge, MA permits (data.cambridgema.gov) · Search permits is on its tool page: open its card above.
What can you do with Cambridge building permit search in VS Code?
Build a Cambridge construction dashboard backed by published city permits. Add contractor comparisons and project evidence to help users investigate local building activity.
Research solar installation firms
Rank firms by Cambridge solar permit activity, find their recorded projects, and examine available system details before building a business shortlist.
Study heat pump permitting
Compare contractor activity in electrical and mechanical permits, investigate matching jobs, and inspect equipment details for an electrification market report.
Plan a roofing supplier's territory
Identify firms with recorded Cambridge roofing activity, examine their project locations, and review individual permits to inform business outreach.
Compare commercial renovation activity
Use contractor totals to identify active firms, search their alteration permits, and review commercial project records for a local construction brief.
Review a commercial property's permitted work
Find permits at a Cambridge commercial address and inspect the published records to assemble a documented renovation history.
Prepare a public facility project brief
Collect permits at a city facility and read the individual records to summarize the permitted construction and trade work.
More on Cambridge building permit search and VS Code
Overview
Cambridge building permit search in other agents
Questions about Cambridge building permit search in VS Code
Can VS Code use Cambridge building permit search?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Cambridge building permit search like any built-in tool.
How much does Cambridge building permit search cost in VS 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 VS Code plan is separate.
Do I need an Alexandria account to use Cambridge building permit search in VS Code?
No. Spiral runs Cambridge building 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 Cambridge building permit search in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Cambridge building permit search runs?
Cambridge building permit search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Which area and permit types does the data cover?
It covers Cambridge, Massachusetts, through nine city datasets for building work, roofing, siding, solar, electrical, mechanical, and plumbing permits.
How often does the permit data refresh?
The provider describes daily reloads from Cambridge's permitting system. This is a daily publication cycle rather than a continuous feed.
Does this cover every kind of Cambridge permit?
These endpoints cover nine construction and trade datasets. The city's broader Permit Finder includes more than 30 permit types, including demolition and party tents.
Does an issued building permit prove construction has started?
Cambridge requires the building permit before work begins. Its issue date therefore cannot establish the actual date work started.
Can I reuse Cambridge permit data commercially?
The permit data is published under the PDDL, which permits commercial reuse and combining covered data with other datasets. Cambridge provides its open data without warranty.
Start using Cambridge building permit search in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


