# Texas Business Sales Tax Permits & TDLR Contractor Leads + MCP (`intellifin-data/texas-business-permits-mcp`) Actor

Extract newly registered Texas businesses (Comptroller Sales Tax Permits 9cir-efmm) and licensed trade contractors (TDLR 7358-krk7) via pure HTTP Open Data APIs. Supports Batch Dataset runs, REST API, and Streamable HTTP MCP Server.

- **URL**: https://apify.com/intellifin-data/texas-business-permits-mcp.md
- **Developed by:** [Xiaolei Lu](https://apify.com/intellifin-data) (community)
- **Categories:** Lead generation, AI, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 texas business or contractor leads extracted

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Texas Business Sales Tax Permits & TDLR Contractor Leads + MCP

**Extract newly registered Texas businesses (Comptroller Sales Tax Permits `9cir-efmm`) and licensed Texas trade contractors (TDLR `7358-krk7`) into a unified B2B lead feed — via Apify Dataset, REST API, or Streamable HTTP MCP Server.**

> **Want Filtered Texas Commercial Leads Every Morning at 8:00 AM?**\
> Skip manual exports and CRM cleanup—subscribe to **[IntelliFin Morning 8AM Signal Pipeline ($399/mo)](https://money-scout-cws-license.ab-claudecodegate.workers.dev/signal-pipeline)** to receive newly issued Texas sales tax permits and licensed trade contractors by city, ZIP, or county directly in Slack, HubSpot, or email.

***

### Why Use This Actor?

- **Two High-Intent Texas Lead Feeds in One Schema:**
  - **Texas Comptroller Active Sales Tax Permits (`9cir-efmm`):** New LLCs, Corporations, Restaurants, Retailers, and Commercial Entities with taxpayer number, SOS charter date, responsibility beginning date, street address, and city/ZIP.
  - **Texas TDLR Contractor & Trade Licenses (`7358-krk7`):** Verified A/C Contractors, Electricians, Technicians, and regulated service businesses with business name, owner name, license #, expiration date, and county.
- **Smart City-to-County Resolution:** Filter by `city: "AUSTIN"` in `combined_leads` mode and automatically fetch both Austin Sales Tax Permits and Travis County TDLR Contractor Licenses.
- **Dual-Mode Batch + Standby MCP Server:** Run scheduled batch extractions or connect AI agents via Streamable HTTP `/mcp`.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | `string` | `"combined_leads"` | `"combined_leads"`, `"sales_tax_permits"`, or `"tdlr_licenses"`. |
| `city` | `string` | `""` | Texas city name (e.g., `"AUSTIN"`, `"HOUSTON"`, `"DALLAS"`). |
| `zipCode` | `string` | `""` | Optional 5-digit ZIP prefix filter for Sales Tax Permits. |
| `county` | `string` | `""` | Texas county name (e.g., `"TRAVIS"`, `"HARRIS"`) or 3-digit code. |
| `licenseType` | `string` | `""` | TDLR license category filter (e.g., `"A/C"`, `"Electrician"`). |
| `keyword` | `string` | `""` | Keyword across business name, owner name, address, or license type. |
| `sinceDate` | `string` | `""` | Optional ISO start date (`YYYY-MM-DD`) for Sales Tax responsibility date. |
| `maxItems` | `number` | `20` | Maximum normalized leads to return (`1`–`1000`). |

#### Example Input JSON

```json
{
  "mode": "combined_leads",
  "city": "AUSTIN",
  "maxItems": 20
}
```

***

### Output Schema & Example

| Field | Type | Description |
|---|---|---|
| `sourceDataset` | `string` | `sales_tax_permits` or `tdlr_licenses` |
| `leadId` | `string` | Deterministic unique lead identifier |
| `businessName` | `string` | Registered taxpayer or licensed business name |
| `ownerOrContactName` | `string \| null` | Owner name (TDLR) |
| `entityTypeOrLicenseType` | `string` | Organizational type or TDLR license category |
| `licenseOrTaxpayerNumber` | `string` | Taxpayer # or TDLR License # |
| `licenseSubtype` | `string \| null` | License subtype or record type code |
| `status` | `string \| null` | Active / right-to-transact / expired status |
| `effectiveOrStartDate` | `string \| null` | Responsibility beginning or charter date (`YYYY-MM-DD`) |
| `expirationDate` | `string \| null` | TDLR license expiration date (`YYYY-MM-DD`) |
| `address` | `string \| null` | Street address |
| `city` | `string \| null` | City |
| `state` | `string \| null` | State code |
| `zipCode` | `string \| null` | Postal ZIP code |
| `county` | `string \| null` | County name or Comptroller county code |
| `sosFileNumber` | `string \| null` | Texas Secretary of State file number |
| `continuingEducationFlag` | `string \| null` | TDLR CE compliance flag |
| `sourceUrl` | `string` | Socrata source record URL |
| `extractedAt` | `string` | UTC ISO extraction timestamp |

#### Example Output JSON

```json
{
  "sourceDataset": "sales_tax_permits",
  "leadId": "tx-tax:32107728928",
  "businessName": "SDH REALTY TEXAS LLC",
  "ownerOrContactName": null,
  "entityTypeOrLicenseType": "Corporation / In-State Entity",
  "licenseOrTaxpayerNumber": "32107728928",
  "licenseSubtype": "V",
  "status": "Active",
  "effectiveOrStartDate": "2026-08-21",
  "expirationDate": null,
  "address": "13105 NORTHWEST FREEWAY",
  "city": "HOUSTON",
  "state": "TX",
  "zipCode": "77040",
  "county": "101",
  "sosFileNumber": "0806762076",
  "continuingEducationFlag": null,
  "sourceUrl": "https://data.texas.gov/resource/9cir-efmm.json?taxpayer_number=32107728928",
  "extractedAt": "2026-12-01T01:50:00.000Z"
}
```

***

### MCP Server & REST API Usage (Standby Mode)

- `GET /health` — Readiness & registered tools
- `POST /api/search` — Synchronous REST lead search
- `POST /mcp` — Streamable HTTP MCP Server exposing:
  1. `search_texas_sales_tax_permits`
  2. `search_texas_tdlr_licenses`

#### Claude Desktop / Cursor / Apify MCP Configuration

```json
{
  "mcpServers": {
    "texas-business-permits": {
      "type": "streamable-http",
      "url": "https://<YOUR_STANDBY_ACTOR_URL>/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

***

### Pay-Per-Event (PPE) Pricing

| Event | Unit Price (USD) | When Charged |
|---|---|---|
| `apify-actor-start` | `$0.02` | Automatically charged on batch Actor run start |
| `record-extracted` | `$0.005` | Per normalized Texas business lead returned |
| `mcp-tool-call` | `$0.02` | Per `tools/call` invocation on Standby `/mcp` |

***

### FAQ

- **How recent are Texas Sales Tax Permits?** Updated directly from Texas Comptroller open data (`9cir-efmm`), including newly chartered LLCs and incoming business permits.
- **Why does TDLR filter by county when I pass `city: "AUSTIN"`?** TDLR publishes `business_county` rather than city; the Actor automatically resolves major Texas metros (Austin -> Travis, Houston -> Harris, Dallas -> Dallas, San Antonio -> Bexar) so combined queries return unified local leads.

# Changelog

This Actor's version history is a separate document: https://apify.com/intellifin-data/texas-business-permits-mcp/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Select whether to query Texas Sales Tax Permits, TDLR contractor licenses, or combined leads from both datasets.

## `city` (type: `string`):

Optional Texas city name (e.g. 'AUSTIN', 'HOUSTON', 'DALLAS'). Automatically maps major cities to their TDLR county when county is omitted.

## `zipCode` (type: `string`):

Optional 5-digit ZIP code prefix filter for Sales Tax Permits (e.g. '78701').

## `county` (type: `string`):

Optional Texas county name (e.g. 'TRAVIS', 'HARRIS', 'TAYLOR') or 3-digit Comptroller county code.

## `licenseType` (type: `string`):

Optional TDLR license category filter (e.g. 'A/C', 'Electrician', 'Plumbing', 'Tow').

## `keyword` (type: `string`):

Optional full-text keyword filter across business name, owner name, address, or license type (e.g. 'LLC', 'HVAC', 'Solar').

## `sinceDate` (type: `string`):

Optional ISO start date (YYYY-MM-DD) for Sales Tax responsibility_beginning_date.

## `maxItems` (type: `integer`):

Maximum normalized Texas business leads to return (1 to 1000).

## Actor input object example

```json
{
  "mode": "combined_leads",
  "city": "AUSTIN",
  "maxItems": 20
}
```

# Actor output Schema

## `results` (type: `string`):

Normalized Texas Sales Tax Permit and TDLR Contractor License leads.

## `mcpEndpoint` (type: `string`):

Streamable HTTP MCP endpoint exposing search_texas_sales_tax_permits and search_texas_tdlr_licenses.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "combined_leads",
    "city": "AUSTIN",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("intellifin-data/texas-business-permits-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "combined_leads",
    "city": "AUSTIN",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("intellifin-data/texas-business-permits-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "combined_leads",
  "city": "AUSTIN",
  "maxItems": 20
}' |
apify call intellifin-data/texas-business-permits-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,intellifin-data/texas-business-permits-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4CQnWBDvxg3m8aas3/builds/g37VANa7vphYDugGq/openapi.json
