Works with the AI Agents you already use
Municipal Code Violations & Distressed Property (MCP)
- Export parcel identifiers (parcelId), normalized street addresses, geocodes (latitude, longitude), and official case IDs (caseId) ready for skip-tracing tools.
Free
Municipal Code Violations & Distressed Property (MCP)
Example session with this skill installed
Find open municipal code enforcement violations and distressed commercial/residential properties in Chicago and Austin over the past 30 days for off-market real estate acquisition and remediation contractors.
- Read your context and instructions
- Compiled the municipal code violations
Municipal Code Violation & Distressed Property Lead Report
Executive Summary
- Queried Municipal Portals:
{{metros_queried}} - Distress Category / Keyword Filter:
{{distress_filter_and_keywords}}(Open Cases Only: {{open_cases_only}}) - Total Normalized Leads Returned:
{{total_leads}} - Investor Priority Breakdown:
CRITICAL_DISTRESS:{{critical_count}}|HIGH_MOTIVATION:{{high_motivation_count}}|STANDARD:{{standard_count}} - Parcel-Matched Records (
parcelIdPresent):{{parcel_matched_count}}
Ranked Distressed Property & Contractor Leads
| Rank | Address & Metro | Parcel ID | Case ID (Opened) | Distress Category | Violation Summary & Status | Score (Priority Tier) | Coordinates | Official Portal |
|---|---|---|---|---|---|---|---|---|
| 1 | {{address}}, {{city}}, {{state}} {{zipCode}} | {{parcelId}} | {{caseId}} ({{openedDate}}) | {{distressCategory}} | {{violationType}} — {{status}} | {{distressScore}} ({{investorPriorityTier}}) | {{latitude}}, {{longitude}} | Source |
| 2 | {{address_2}}, {{city_2}}, {{state_2}} {{zipCode_2}} | {{parcelId_2}} | {{caseId_2}} ({{openedDate_2}}) | {{distressCategory_2}} | {{violationType_2}} — {{status_2}} | {{distressScore_2}} ({{investorPriorityTier_2}}) | {{latitude_2}}, {{longitude_2}} | Source |
Provenance & Privacy Note: Records originate directly from official US municipal Socrata open-data portals. inspectorOrDivision values reflect city enforcement staff, not property owners. Portal/runtime notices: {{warnings_or_none}}.
Recommended Next Actions
- [ ]
Assessor & Skip-Trace Enrichment: Export the {{critical_count}} CRITICAL_DISTRESS and {{high_motivation_count}} HIGH_MOTIVATION rows (address, parcelId, zipCode) to county CAD/assessor lookup or skip-tracing to identify absentee/LLC mailing addresses.
- [ ]
Repeat-Citation Grouping: Prioritize properties with multiple open caseId filings or combined structural + vacancy violations, signaling acute seller motivation.
- **Trade-Specific Abatement
Connects securely to your tools. The creator never sees your data.
About this skill
US Municipal Code Violations & Distressed Property Leads
Query and harmonize live municipal code enforcement, condemned/unsafe structures, vacant/boarded properties, fire/electrical/plumbing failures, housing habitability complaints, unpermitted work stop-work orders, and exterior blight records across 6 official US Socrata open-data portals into one unified 19-field investor and contractor lead schema.
When to Use This Skill
Activate this skill when the user wants to:
- Find off-market distressed real estate leads (
CRITICAL_DISTRESSandHIGH_MOTIVATIONtiers) for wholesaling, fix-and-flip rehabbing, or distressed debt/lien research across Austin (austin), Seattle (seattle), San Francisco (san_francisco), Buffalo (buffalo), Montgomery County MD (montgomery_md), or Cincinnati (cincinnati). - Locate homeowners or landlords facing urgent municipal enforcement deadlines (
openCasesOnly: true) for structural repairs, roofing, mold/pest remediation, electrical/plumbing upgrades, or unpermitted construction legalization. - Export parcel identifiers (
parcelId), normalized street addresses, geocodes (latitude,longitude), and official case IDs (caseId) ready for skip-tracing tools. - Inspect which municipal code enforcement portals and violation categories are currently supported.
Do NOT use this skill when:
- Looking for approved, forward-looking construction, solar PV, HVAC, or commercial remodel building permits (use
us-metro-building-trade-permitsinstead). - Requesting code enforcement records in municipalities outside the 6 supported Socrata portals (always call
list_code_violation_metrosor inform the user of exact supported coverage). - Expecting homeowner cell phone numbers or personal emails directly from municipal Socrata feeds (city code portals publish property addresses, parcel IDs, case descriptions, and inspector divisions—not private owner phone/email records).
Connect the Remote MCP Server
This skill connects to the live Apify Standby Streamable HTTP MCP server ($0.80 / 1,000 leads launch pay-per-event rate; $2.00 / 1,000 standard rate; zero Socrata app tokens or proxies required).
- Remote Streamable HTTP MCP Endpoint:
https://desastreger--us-municipal-code-violation-distressed-leads.apify.actor/mcp - Authentication Header:
Authorization: Bearer $APIFY_TOKEN
Claude Code CLI
claude mcp add --transport http us-municipal-code-violation-distressed-leads https://desastreger--us-municipal-code-violation-distressed-leads.apify.actor/mcp \
--header "Authorization: Bearer $APIFY_TOKEN"
Cursor / Claude Desktop (mcp.json / claude_desktop_config.json)
{
"mcpServers": {
"us-municipal-code-violation-distressed-leads": {
"url": "https://desastreger--us-municipal-code-violation-distressed-leads.apify.actor/mcp",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_TOKEN>"
}
}
}
}
Apify REST API Fallback (cURL / Scripts / Clay / n8n)
For batch pulls up to 500 leads across multiple metros in automated skip-tracing pipelines:
curl -sS -X POST "https://api.apify.com/v2/acts/desastreger~us-municipal-code-violation-distressed-leads/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"metros": ["austin", "san_francisco", "buffalo"],
"distressFilter": "structural_hazard",
"openCasesOnly": true,
"keywords": ["roof", "unsafe"],
"maxResults": 50
}'
MCP Tools & Parameter Selection
| MCP Tool | Purpose | Key Arguments & Defaults |
|---|---|---|
search_code_violation_leads | Search harmonized municipal code violations and distressed property leads across up to 6 US Socrata portals. | metros (["austin", "san_francisco", "buffalo"] default; valid keys: "austin", "seattle", "san_francisco", "buffalo", "montgomery_md", "cincinnati"), distressFilter ("all" default; 6 category enums), openCasesOnly (false), keywords ([], case-insensitive array), maxResults (10 default, 1–50 in MCP; 1–500 via REST). |
list_code_violation_metros | Return metadata, live Socrata dataset URLs, ordering fields, and supported distressFilter values for all 6 portals. | {} (no arguments required; zero per-lead event charge). |
Parameter Selection Rules
- Verify Metro Coverage First: Map user city names to exact
metroskeys (austin,seattle,san_francisco,buffalo,montgomery_md,cincinnati). If the user asks what cities are available, calllist_code_violation_metrosfirst. - Active Motivation Filtering: Always set
openCasesOnly: truefor real estate acquisition, wholesaling, or contractor repair outreach so closed/abated historical citations are excluded. - Category vs Keyword Precision: Use
distressFilter(structural_hazard,vacant_abandoned,fire_electrical_plumbing,housing_habitability,unpermitted_zoning,exterior_blight) for reliable cross-city classification, and addkeywords(e.g.,["condemned"],["mold"],["work without permit"]) only when narrowing to a specific trade or defect.
Canonical MCP Tool Call Payloads
Multi-City Distressed Property Search (search_code_violation_leads):
{
"metros": ["austin", "san_francisco", "buffalo"],
"distressFilter": "structural_hazard",
"openCasesOnly": true,
"keywords": ["unsafe", "roof"],
"maxResults": 25
}
Portal & Filter Discovery (list_code_violation_metros):
{}
Interpreting Distress Categories & Investor Priority Tiers
| Output Field | High-Signal Values | Actionable Real Estate / Contractor Interpretation |
|---|---|---|
investorPriorityTier | CRITICAL_DISTRESS (distressScore >= 75) | Active structural hazard, condemnation, fire damage, or vacant/boarded citation with recent openedDate and parcel linkage — top off-market acquisition tier. |
distressCategory | STRUCTURAL_HAZARD, VACANT_ABANDONED | Highest seller motivation for cash wholesalers, fix-and-flip investors, and demolition/structural engineering firms. |
distressCategory | FIRE_ELECTRICAL_PLUMBING, UNPERMITTED_ZONING | Mandatory compliance cure deadlines requiring licensed MEP contractors, roofers, architects, or permit expediters. |
parcelId | Populated APN / TCAD / SBL / Block-Lot | Direct join key for county tax-assessor ownership lookup, absentee-owner mailers, and skip-tracing enrichment. |
See references/schema-and-examples.md for all 6 portal dataset IDs, the 19-field output schema, and 3 B2B recipes.
Execution Workflow
Follow this deterministic 4-step workflow on every invocation:
- Scoping & Cost-Aware Sizing: Confirm target metro keys, whether only unresolved cases (
openCasesOnly: true) are needed, and the target distress or contractor trade category. Start interactive MCP searches withmaxResults: 15to25($0.012–$0.020at launch pricing). - Tool Call & Filtering: Run
search_code_violation_leadswith normalizedmetros,distressFilter, andopenCasesOnly. Note that multi-city queries interleave results across portals with fault isolation so one slow municipal portal never blocks others. - Cross-Field Normalization & Ranking: Sort returned properties by
distressScore(0–100) descending and group byinvestorPriorityTier(CRITICAL_DISTRESSfirst, thenHIGH_MOTIVATION, thenSTANDARD). Flag repeat addresses or parcels appearing across multiple open case IDs. - Structured Deliverable Output: Render findings with templates/report-template.md, preserving
caseId,address,parcelId,zipCode,openedDate,distressCategory,distressScore, andsourcePortalUrlfor downstream skip-tracing or county assessor lookup.
Data Provenance & Safety Rules
- Cite Official Municipal Case & Parcel Identifiers: Always include
caseId,metro,parcelId(when published by the city),openedDate,status, andsourcePortalUrlso investors and contractors can verify citation details on the city portal. - Never Fabricate Property Owner Contacts: Municipal Socrata feeds expose public property addresses, parcel numbers, and assigned municipal
inspectorOrDivisionstrings—never invent homeowner names, phone numbers, or emails. Clearly distinguish inspector contact strings from property owners. - Transparent Portal & Budget Reporting: If an unsupported city key was requested, or if any portal emits partial results /
escalationWarnings/ budget cap truncation, disclose that clearly to the user.
Supported Municipal Open-Data Portals Summary
austin: Austin, TX — Code Department Compliance (data.austintexas.gov, dataset6wtj-zbtb, includestcad_idparcel keys).seattle: Seattle, WA — SDCI Code Complaints & Violations (data.seattle.gov, datasetez4a-iug7).san_francisco: San Francisco, CA — Dept. of Building Inspection Complaints (data.sfgov.org, datasetgm2e-bten, includes Block/Lot parcel keys).buffalo: Buffalo, NY — City Code Violations (data.buffalony.gov, datasetivrf-k9vm, includessblparcel keys).montgomery_md: Montgomery County, MD — DHCA Housing Code Violations (data.montgomerycountymd.gov, datasetk9nj-z35d).cincinnati: Cincinnati, OH — CAGIS Code Enforcement (data.cincinnati-oh.gov, datasetcncm-znd6, includesparcelkeys).
High-Value Multi-Skill Chaining
- Corrective Permit Verification (
us-metro-building-trade-permits): In overlapping metros (austin,seattle,san_francisco), cross-check distressed addresses against issued building, roofing, electrical, or plumbing permits to see whether remediation has already started or if the owner still lacks a contractor.
Covers official public registry filings and RFC records only; never scrapes login-walled sites or fabricates unverified personal contact details.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 17 days ago
- Free with an Agensi account
- Accounts
GitHub
Austintexas
Apify API token (free $5/mo tier)
- Optional
- Streamable HTTP MCP client
Connects over remote Streamable HTTP MCP (mcp.apify.com) or direct REST API fallback using your APIFY_TOKEN.
Permissions
Allowed Hosts
Queries official US/EU open-data registries via remote Apify MCP server (`desastreger`). Never transmits workspace source code.
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.