# NLRB Labor Relations Intelligence MCP (`andrew_avina/nlrb-mcp`) Actor

An Apify MCP actor that queries the National Labor Relations Board's public case database. Returns structured records for unfair labor practice charges (CA cases) and union representation election petitions (RC/RM cases) including employer names, unions involved, case status, ...

- **URL**: https://apify.com/andrew\_avina/nlrb-mcp.md
- **Developed by:** [Andrew Avina](https://apify.com/andrew_avina) (community)
- **Categories:** MCP servers, Business
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 result item returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## NLRB Labor Relations Intelligence MCP — Union Elections & Unfair Labor Practices

An Apify MCP actor that queries the National Labor Relations Board's public case database. Returns structured records for unfair labor practice charges (CA cases) and union representation election petitions (RC/RM cases) including employer names, unions involved, case status, and filing dates.

### What This Actor Does

- Queries the NLRB open data API (`data.nlrb.gov/api/cases/v1`) for labor relations cases
- Supports filtering by case type, state, keyword, and filing date
- Normalizes raw NLRB API fields into a consistent output schema
- Falls back to 20 curated real NLRB cases from the 2021-2023 union organizing wave if the API is unreachable
- Can run as an MCP server (HTTP) for integration with LLM tool-use pipelines

### Output Fields

| Field | Description |
|---|---|
| `case_number` | NLRB case number (format: XX-CA/RC-XXXXXX) |
| `case_type` | Case type code: `CA`, `RC`, or `RM` |
| `case_name` | Official case name as filed |
| `employer` | Name of the employer respondent |
| `union` | Petitioning or charging union |
| `state` | Two-letter state abbreviation |
| `industry` | Industry description |
| `status` | Current case status |
| `filing_date` | Date the case was filed |
| `source` | Data source identifier |

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `caseType` | string | `all` | Case type: `CA` (ULP charge), `RC` (union petition), `RM` (employer petition), or `all` |
| `state` | string | (all) | Two-letter state filter (e.g. `WA`, `NY`) |
| `keyword` | string | (none) | Keyword search in employer/union name or case description |
| `dateFrom` | string | (none) | Filter cases filed on or after this date (`YYYY-MM-DD`) |
| `limit` | integer | `50` | Max records returned (up to 500) |
| `serveMcp` | boolean | `false` | Start HTTP MCP server instead of writing dataset |

### MCP Server Mode

Set `serveMcp: true` to run this actor as an HTTP MCP server. The server exposes:

- `GET /` — Health check
- `GET /mcp/tools` — Lists available tools
- `POST /` — Invoke a tool with `{"tool": "search_nlrb_cases", "arguments": {...}}`

### Data Source

- **NLRB Open Data**: https://data.nlrb.gov/api/cases/v1
- **NLRB Case Search**: https://www.nlrb.gov/cases-decisions/cases
- API is public and requires no authentication key

### NLRB Case Types

| Code | Full Name | Description |
|---|---|---|
| CA | Charge Against (Employer) | Unfair labor practice charge filed against an employer for violating workers' organizing rights |
| CB | Charge Against (Union) | Unfair labor practice charge filed against a union |
| RC | Representation Case (Union) | Petition by workers or a union for a secret ballot election to certify union representation |
| RM | Representation Case (Employer) | Petition by employer requesting an election (often following a recognition demand) |
| RD | Representation Case (Decertification) | Petition by workers to decertify an existing union |

### Use Cases

- Labor relations intelligence: monitor organizing activity at specific employers or industries
- Union research: track which unions are most active in a region or sector
- Corporate due diligence: identify open NLRB charges against an acquisition target
- Workforce intelligence: gauge labor sentiment at major employers
- Legal research: find precedent cases by industry or case type

### Fallback Data Coverage

The 20-record fallback dataset covers notable cases from the 2021-2023 union organizing wave including:
- Amazon Labor Union (Staten Island, Joliet)
- Starbucks Workers United (nationwide organizing)
- Apple retail store elections (Towson, World Trade Center)
- Tesla manufacturing charges
- Trader Joe's United
- REI Co-op elections
- Chipotle, Whole Foods, Dollar General, and more

### Categories

`MCP_SERVERS` · `BUSINESS`

# Actor input Schema

## `caseType` (type: `string`):

NLRB case type: CA (Unfair Labor Practice - Charge against employer), RC (Representation Case - Union election petition), RM (Representation Case - Employer petition), or 'all' for all types.
## `state` (type: `string`):

Two-letter US state abbreviation to filter results (e.g. 'CA', 'NY', 'WA'). Leave empty for all states.
## `keyword` (type: `string`):

Optional keyword to search within employer name, union name, or case description.
## `dateFrom` (type: `string`):

Filter cases filed on or after this date (format: YYYY-MM-DD, e.g. '2022-01-01').
## `limit` (type: `integer`):

Maximum number of case records to return.
## `serveMcp` (type: `boolean`):

When true, the actor starts an HTTP server exposing MCP tool endpoints instead of writing to dataset.

## Actor input object example

```json
{
  "caseType": "all",
  "limit": 50,
  "serveMcp": false
}
````

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("andrew_avina/nlrb-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("andrew_avina/nlrb-mcp").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call andrew_avina/nlrb-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=andrew_avina/nlrb-mcp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "NLRB Labor Relations Intelligence MCP",
        "description": "An Apify MCP actor that queries the National Labor Relations Board's public case database. Returns structured records for unfair labor practice charges (CA cases) and union representation election petitions (RC/RM cases) including employer names, unions involved, case status, ...",
        "version": "0.1",
        "x-build-id": "CPN228pTpBYPzI9kt"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/andrew_avina~nlrb-mcp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-andrew_avina-nlrb-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/andrew_avina~nlrb-mcp/runs": {
            "post": {
                "operationId": "runs-sync-andrew_avina-nlrb-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/andrew_avina~nlrb-mcp/run-sync": {
            "post": {
                "operationId": "run-sync-andrew_avina-nlrb-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "caseType": {
                        "title": "Case Type",
                        "enum": [
                            "CA",
                            "RC",
                            "RM",
                            "all"
                        ],
                        "type": "string",
                        "description": "NLRB case type: CA (Unfair Labor Practice - Charge against employer), RC (Representation Case - Union election petition), RM (Representation Case - Employer petition), or 'all' for all types.",
                        "default": "all"
                    },
                    "state": {
                        "title": "State",
                        "type": "string",
                        "description": "Two-letter US state abbreviation to filter results (e.g. 'CA', 'NY', 'WA'). Leave empty for all states."
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Optional keyword to search within employer name, union name, or case description."
                    },
                    "dateFrom": {
                        "title": "Date From",
                        "type": "string",
                        "description": "Filter cases filed on or after this date (format: YYYY-MM-DD, e.g. '2022-01-01')."
                    },
                    "limit": {
                        "title": "Result Limit",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of case records to return.",
                        "default": 50
                    },
                    "serveMcp": {
                        "title": "Serve as MCP Server",
                        "type": "boolean",
                        "description": "When true, the actor starts an HTTP server exposing MCP tool endpoints instead of writing to dataset.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
