EEOC Explore
# EEOC Explore | Systemic Oversight & Benchmarking MCP Server
An agent-first MCP server that joins two public EEOC datasets, **charge statistics** (who files discrimination charges, on what basis, where) and **EEO-1 workforce demographics** (who is employed, by industry, state and job category), and exposes analytical tools that turn them into oversight briefs and employer benchmarks. The server does the joins, rates, gaps and confidence intervals; every number cites its source cell or row. EEOC's privacy suppression is handled as a first-class result, never as zero.
All data are public. No credentials, no outbound network calls, no stored user data.
## Live endpoint & deliverables
- **Live Streamable HTTP MCP Endpoint (Azure Container Apps)**: `https://eeoc-explore-mcp.ambitiousbay-8be5d3cf.eastus.azurecontainerapps.io/mcp` (health check: `/health`)
- **Evaluation Report**: [eval/EEOC_Explore_Evaluation.pdf](eval/EEOC_Explore_Evaluation.pdf) ([HTML source](eval/report/evaluation.html), [rerun guide](eval/README.md)) — `100%` (`99/99`) live AI accuracy vs. `9.1%` without tools (`30/30` unseen hard set), `54,123` domain sweep checks with `0` failures, `6.2×` concurrency speedup (`25.2 → 155.1 req/s` local; `82.7 req/s` on Azure `0.25 vCPU`), and `44/44` live security probes passed.
- **Presentation Deck**: [docs/EEOC_Explore.pptx](docs/EEOC_Explore.pptx) ([storyboard](docs/deck/STORYBOARD.md), 11-slide walkthrough).
- **Product Highlight Video**: [video/out/EEOC_Explore.mp4](video/out/EEOC_Explore.mp4) (`1920×1080`, `60 fps`, `112 s` continuous one-take film; [storyboard](video/STORYBOARD.md), [render guide](video/README.md)).
## Run it
```sh
uv sync --locked
uv run python scripts/demo.py # all demo calls over stdio, no model needed
uv run pytest -q
bash scripts/dev.sh serve # HTTP on 127.0.0.1:8000/mcp with hot reload
```
A stdio MCP host can launch it with:
```json
{"mcpServers":{"eeoc-explore":{"command":"uv","args":["--directory","/abs/path/to/eeoc-explore-mcp","run","--locked","python","main.py"]}}}
```
The hosted endpoint and local iteration loop are described in [QUICKSTART.md](QUICKSTART.md) and [deploy/azure/README.md](deploy/azure/README.md).
## Tools
Each tool is a user goal, not an endpoint wrapper. Inputs are Pydantic/Literal-validated, so MCP clients see enums for states, regions, job categories, demographic groups and charge bases.
| Tool | User goal | Data |
|---|---|---|
| `analyze_charge_trends` | What changed in charge filings between two years, which bases drove it, and how resolutions compare; optionally fact-check a draft's claimed direction. | E1a, E1b, E1c |
| `compare_state_trends` | Which of two states had the larger count and percent change for a basis. | E1b |
| `correlate_charges_to_workforce` | Rank states by charges per 10,000 EEO-1-covered employees, with ratio to the national rate and required caveats. | E1a/E1b + EEO-1 PUF |
| `benchmark_workforce_composition` | Compare a geography × industry × job-category slice's sex and race/ethnicity mix to a baseline geography, industry or year; reports suppression and the nearest published broader slices. | EEO-1 PUF |
| `evaluate_employer_profile` | Benchmark an employer's own counts against local, national and cross-industry peers with 95% Wilson intervals. | EEO-1 PUF |
**Resources** let an agent inspect valid codes and rules before calling a tool: `eeoc://coverage`, `eeoc://taxonomy/naics`, `eeoc://taxonomy/job-categories`, `eeoc://taxonomy/demographics`, `eeoc://policy/disclosure-rules`.
**Prompts** give one-click multi-step workflows: `systemic_oversight_brief(basis, fiscal_year)` and `employer_self_audit(industry, geography, job_category)`.
## Demo script
| Act | Ask the agent | Expected evidence |
|---|---|---|
| Oversight | My draft says EEOC received more charges in FY 2025 than FY 2024. Check it and say which bases drove the change. | Receipts 88,531 → 88,201 (−330, −0.37%), E1c AC5/AD5; claim unsupported. Retaliation (all statutes) rose most: 42,301 → 54,350 (+12,049), E1a AC15/AD15. |
| Oversight | Texas and Florida always lead in raw charges. Which states had the highest rate of ADA charges per 10,000 covered workers in FY 2025? | National 4.66 per 10k (36,256 / 77,845,097). Top: Arkansas 10.21 (648 charges, E1b VT7 / 634,534 EEO-1 employees), 2.19× national. Denominator is EEO-1 2023, the latest published. |
| Self-audit | We're an IT services firm (NAICS 5415) in Virginia; 4 of our 24 executives are women. How do we compare? | Rolled up to NAICS 541. Peer share 31.8% (4,286 / 13,477); yours 16.7% (95% CI 6.7–35.9%), expected 7.6 at peer share. Within sampling variation. |
| Data integrity | Give me the demographic breakdown of craft workers in aerospace manufacturing (NAICS 3364) in Wyoming. | Rolled up to 336: 32 craft workers, 66.7% of demographic groups suppressed; completeness warning and broader slices (Mountain 336: 6,325; WY sector 33: 484). |
## Data handling rules
- **Suppressed is not zero.** EEOC suppresses small cells under Title VII §709(e). Tools return `null` with `status: suppressed`, a `suppression_rate_pct`, and the nearest broader published slices.
- **Overlapping bases.** A charge can allege several bases, so basis counts do not sum to receipts.
- **Rates need caveats.** EEO-1 covers private employers with 100+ employees (and some federal contractors with 50+), while charges come from all employer sizes, and FEPA-only charges are excluded. Charges per covered employee flag where to look; they are not a prevalence measure. Every rate response carries these caveats.
- **Series break.** EEO-1 PUF totals jump between 2021 and 2022 (58.4M → 75.8M employees; establishments about five-fold). The PUF documentation does not explain why, so the server reports it in `eeoc://coverage` and treats cross-break comparisons as not like-for-like.
- **Employer data.** Counts passed to `evaluate_employer_profile` are used for one calculation and not stored. Output is statistical context, not a legal finding.
## Layout
```
src/eeoc_explore/
├── app.py FastMCP server, transport selection
├── taxonomy.py Controlled vocabularies (states, Census areas, job categories, groups)
├── models.py Pydantic/Literal input types and EmployerProfile
├── charges.py Charge statistics data layer (E1a/E1b/E1c, cell-level provenance)
├── workforce.py EEO-1 data layer (in-memory SQLite, suppression, roll-ups)
├── responses.py Shared status conventions
├── tools/ One module per agent-facing tool
├── resources.py Taxonomy, coverage and disclosure-policy resources
├── prompts.py Workflow prompts
└── data/ Packaged snapshots and source manifests (URLs + SHA-256)
```
## Reproducibility
Both snapshots are rebuilt from unmodified public files whose SHA-256 digests are pinned:
```sh
uv run python scripts/build_snapshot.py # charges: data/original/E1*.xlsx
uv run python scripts/build_workforce.py --download # EEO-1: 10 PUFs (~520 MB, cached, git-ignored)
EEOC_VERIFY_PUF=1 uv run pytest -q # adds a row-by-row check against the 2023 PUF
```
`workforce.sqlite.gz` (about 7.7 MB) holds nation, region, division and state rows for 2014–2023, with each job category's total, sex and race/ethnicity counts and the source row number. Tests assert reference values read directly from the original files.
## Sources
- [EEOC Enforcement and Litigation Statistics](https://www.eeoc.gov/data/enforcement-and-litigation-statistics-0) (Tables E1a, E1b, E1c)
- [EEO-1 Employer Information Report Statistics and PUFs](https://www.eeoc.gov/data/eeo-1-employer-information-report-statistics)
- [EEO-1 PUF User Guide](https://www.eeoc.gov/sites/default/files/2020-11/PUF%20Data%20Download%20User%20Guide.pdf)
- [EEOC definitions](https://www.eeoc.gov/data/definitions-terms)
- [EEOC FY 2025 Agency Performance Report](https://www.eeoc.gov/sites/default/files/2026-04/EEOC_APR_FY2025_APP_FY2027_508.pdf)
- [GSA FastMCP starter](https://github.com/GSA-TTS/mcp-hackathon-template)
Evaluation: [eval/EEOC_Explore_Evaluation.pdf](eval/EEOC_Explore_Evaluation.pdf) (methodology, metrics, security, lessons) and [eval/README.md](eval/README.md) (how to rerun each layer).
TDQS
Scored across 5 tools
Each tool maps to a distinct analytical question: year-over-year national trends, two-state head-to-head, per-workforce rates, workforce demographic composition, and employer self-benchmarking. The main soft spot is between analyze_charge_trends and compare_state_trends, since the former is described as national-only and the latter is effectively a state-scoped variant of the same trend logic, which could cause misselection on a state-level trend question. Descriptions do actively cross-reference each other (e.g. 'for rates, use correlate_charges_to_workforce'), which mitigates the overlap.
All five names follow a consistent snake_case verb_noun pattern (analyze_, compare_, correlate_, benchmark_, evaluate_) with the verb signaling the analytical operation and the noun signaling the domain object. No mixed conventions or casing deviations.
Five tools is well-scoped for a data-analysis server, and each covers a genuinely different question type (trend, comparison, rate normalization, composition, employer benchmark) rather than being a trivial wrapper. Nothing appears redundant or missing from a count perspective.
The surface covers the core EEOC analytic workflows: receipts trends, state comparisons, workforce-normalized rates, EEO-1 composition, and employer benchmarking, with sensible methodological caveats built in. The notable gap is a discovery/metadata tool — there is no way to enumerate available bases, statutes, NAICS codes, states, or fiscal years, so an agent must guess valid inputs before calling anything.