
hhs-oig-exclusions-mcp-server
io.github.cyanheads/hhs-oig-exclusions-mcp-server
Screen people and businesses against the HHS OIG exclusion list (LEIE) by name, NPI, or UPIN.
Documentation
@cyanheads/hhs-oig-exclusions-mcp-server
Screen people and businesses on the HHS OIG LEIE by name, NPI, or UPIN. Browse active exclusions and retained reinstatements via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://hhs-oig-exclusions.caseyjhand.com/mcp
Overview
The HHS Office of Inspector General's List of Excluded Individuals/Entities (LEIE), served from a local mirror of OIG's complete LEIE CSV and the linked monthly additions and reinstatement supplements. Screen a roster by name, NPI, or UPIN, browse active exclusions by state, category, exclusion type, effective date, or the month OIG added the row, browse retained reinstatements by supplement month or effective date, and check which edition the mirror holds. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above. Coverage excludes state Medicaid lists, SAM exclusions, and CMS actions absent from the OIG feed. OIG downloads and supplements · OIG exclusions FAQ
A candidate or an empty result cannot establish identity or clearance. Screen aliases and former names as separate entries, verify a candidate's identity by SSN or EIN in the official OIG Online Searchable Database, and keep SSNs and EINs out of tool inputs. OIG Quick Tips
Tools
| Tool | Description |
|---|---|
oig_screen_name | Screen people and businesses by name, with match evidence and corroboration for each candidate |
oig_screen_identifier | Look up exact NPIs, UPINs, or exclusion IDs returned by the server |
oig_search_exclusions | Browse and count active exclusions by state, category, exclusion type, party type, effective date, and action month |
oig_search_reinstatements | Browse and count retained reinstatements by supplement month, effective date, state, category, exclusion type, or party type |
oig_list_reference | Read exclusion codes, category labels, reinstatement and waiver guidance, screening guidance, and mirror status |
Resources
| Resource | Description |
|---|---|
| LEIE screening and monitoring guide | Follow a roster across batches and candidate pages, or review the additions and reinstatements OIG published in a covered month. Available at skill://hhs-oig-exclusions-guide/SKILL.md. |
Capability reference
oig_screen_name tool
partiesentries are{ kind: "individual", first_name, last_name }or{ kind: "entity", name }; optionalmiddle_nameandbirth_year(individuals),state, andnpicorroborate a hit without filtering or ranking it. Screens the first 25 and returns the rest indeferredwith their originalindex. Passdeferredunchanged as the next call'spartiesto preserve those positions.- Standard mode returns all strict hits on the first page and up to ten fuzzy hits per page. Individual prefix mode requires a full-detail mirror and accepts a first name, last name, or both. Pass a party's
next_offsetas that same party'soffsetuntil it is null.totalcounts all active candidates.fuzzy_cappedandprefix_cappedindicate more candidates in their respective modes. - Each entry is
screenedorrefusedwith a typed reason. Hits carry the matching fields, mode, similarity where available, and per-field corroboration. For middle names,initial_matchdistinguishes an agreeing initial from a full-name match. Other outcomes arematch,mismatch,not_on_file, andnot_supplied. Exact name matches in the retained reinstatement supplements appear separately inreinstated.
oig_screen_identifier tool
identifiersentries are{ type, value }:npi(ten digits with a valid CMS check digit),upin(five or six letters or digits), orexclusion_id(16 hexadecimal characters from an earlier result). Send values as strings to keep leading zeros. Looks up the first 100 and returns the rest indeferred. Passdeferredunchanged as the next call'sidentifiersto preserve roster positions.- Each result's
statusislisted,reinstated,not_found, orinvalid, with every matching active row inexclusionsand supplement rows inreinstated - One exclusion ID can cover several rows, and it can change after an OIG source correction or once its supplement leaves the mirror. If a held ID stops resolving, screen the name again
oig_search_exclusions tool
- Filters combine with AND:
state(US postal abbreviation),category(a GENERAL or SPECIALTY label; for a longer label, the first 20 characters with trailing spaces removed must equal a published label),exclusion_type(a published code or its unambiguous statutory citation, such as1128(b)(4)),kind(individualorentity), and inclusiveexcluded_from/excluded_throughdates (YYYY-MM-DD).oig_list_referencelists the labels and codes; one absent from the release fails asunknown_categoryorunknown_exclusion_type - Use
added_in(YYYY-MM) to find current rows attributable to a retained monthly additions supplement. The effective date can fall in a different month. Choose a month fromoig_list_reference→mirror_status.addition_months. A month outside that coverage returnsaddition_month_unavailable. Active records omitadded_inwhen no retained supplement unambiguously identifies the row. limitdefaults to 25 and caps at 100, newest effective date first. Passnext_offsetand the preceding page'ssnapshot_idto continue. If the snapshot changes, the call fails assnapshot_changed; restart at offset zero without an ID. An empty page'snoticesays why: the offset is past the last row, every match is an individual withheld by redaction, or no row matches every filterentities_totalandindividuals_totalcount matches before paging. With default redaction, pages list entities only; individuals still count towardindividuals_total, and name and identifier screening still return redacted individual candidates
oig_search_reinstatements tool
- Choose
supplement_monthfrommirror_status.supplement_monthsto find rows OIG published in that file. Usereinstated_fromandreinstated_throughfor an inclusive window on the effective reinstatement date. These dates can fall outside the supplement month. - Combine the date filters with
state,category,exclusion_type, orkind. Useoig_list_referencewithdataset: "reinstatements"for labels and codes in retained supplements. Each row links to its source file. - Continue with the same filters,
next_offset, andsnapshot_id. Redacted pages list entities and count matching individuals. Verify a candidate’s identity and current status with OIG.
oig_list_reference tool
topic | Returns |
|---|---|
exclusion_types | Published codes with authority, statutory scope and baseline period where known. |
categories | Published GENERAL and SPECIALTY labels with counts per source column. Use category_query for a substring and category_prefix for a prefix. Both are case-insensitive and combine with AND. |
reinstatement_and_waiver | Interpretation and official verification links for both forms of evidence. |
screening_guidance | OIG verification, screening cadence, and coverage limits. |
mirror_status | Readiness, coverage dates, row counts, retained additions and reinstatement months, and refresh status. |
categoriesandexclusion_typesdefault to active data. Selectdataset: "reinstatements"for retained supplement counts and codes. Dataset-specific categories and retained codes require an imported edition. The default authority catalog and guidance remain available before import, andmirror_statusreportsready: false.
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
LEIE-specific:
- Local SQLite mirror built and maintained by the
hhs-oig-exclusions-mirrorCLI (init,refresh,verify), so tool calls never contact OIG. Under HTTP the server re-checks OIG once a day after the first import; over stdio it serves the stored edition until the operator runsrefresh - Each refresh revalidates every file with conditional requests and publishes a complete edition in one SQLite transaction. An edition that changes mid-download is retried, an active file whose raw row count moves more than 2% from the held edition is refused, and a failed check keeps the last completed edition
- Name comparisons fold case, accents, and punctuation, drop trailing generational suffixes and business designations, and use OIG's field widths (last name 20, first and middle 15, business 30 characters). Individual screening recognizes complete tokens in multi-word given names (
first_name_part), compound surnames, given names split across the published first and middle fields, and a person listed under a first initial who uses their middle name. Fuzzy field comparisons use a Jaro–Winkler threshold of 0.88, with a separate rule for a matching first initial. Business names allow an optional leadingTHE, match&withAND, and recognize dotted and spaced forms of trailing legal designations. Candidates containing every query word rank ahead of other fuzzy business matches. A longer name beginning with a full-width published business name can return a strictname_truncatedhit. - Redaction on by default: the redacted mirror never stores a full birth date, street address, ZIP, or an individual's city (birth year, state, and a business's city remain), and results are redacted again when served.
OIG_REDACT_PII=falseselects a separate full-detail database. Screening inputs are scrubbed from logs by field name, and failed-call payload logging is forced off - Exclusion codes decode to statute, description, statutory baseline period, and program scope, each with a source URL and marked
documented,interpreted, orunknown; §1128 scope follows each row's effective date
Agent-friendly output:
- Edition on every dataset result:
list_as_of,actions_through,snapshot_id, andpii_redacted, plus afreshness_noticewhen the last refresh failed or the expected monthly edition is overdue - Screening returns evidence for review:
matchdetails on every hit,future_effectivefor an effective date still ahead, awaiverobject ornull, and reinstatement rows kept apart with theirsupplement_monthand source URL. Every screen carries anoticeorguidancestring that points to OIG verification. Waiver fields and statutory periods alone cannot establish current eligibility (OIG waivers · OIG exclusion authorities) - Graceful partial failure: entries past the batch size return in
deferredwith their original positions, and a bad entry gets its ownrefusedrow (typedreasonplus recoverynotice) orinvalididentifier row (withguidance) while the rest of the batch completes. Mirror failures are typed (mirror_not_ready,mirror_unavailable,snapshot_changed) and carry a recovery hint
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http hhs-oig-exclusions-mcp-server https://hhs-oig-exclusions.caseyjhand.com/mcp
Or run it locally. Requires Node.js 24+ or Bun 1.4.4+; no API key is needed. Initialize the mirror from a terminal before the first call, as the same user that launches your MCP client:
npx --yes --package @cyanheads/hhs-oig-exclusions-mcp-server hhs-oig-exclusions-mirror init
# or with Bun
bunx --bun --package @cyanheads/hhs-oig-exclusions-mcp-server hhs-oig-exclusions-mirror init
Then add it to Claude Code:
claude mcp add hhs-oig-exclusions-mcp-server -- npx -y @cyanheads/hhs-oig-exclusions-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"hhs-oig-exclusions-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/hhs-oig-exclusions-mcp-server"]
}
}
}
The Claude Desktop bundle needs the same initialization first. Leave Mirror directory blank and Redact personal information at true for the defaults, or enter the absolute path and mode you gave the CLI.
Call oig_list_reference with {"topic":"mirror_status"} and confirm ready: true before screening. Rerun the CLI with refresh for a newer edition or verify to check the local snapshot without downloading. For Streamable HTTP, set MCP_TRANSPORT_TYPE=http and connect to http://127.0.0.1:3010/mcp. For Docker or a source build, see Running the server.
Configuration
| Variable | Description | Default |
|---|---|---|
OIG_MIRROR_DIR | Mirror directory shared by the CLI and the server. The default is hhs-oig-exclusions-mcp-server under ~/Library/Caches on macOS, %LOCALAPPDATA% (or ~/AppData/Local) on Windows, and an absolute $XDG_CACHE_HOME (or ~/.cache) elsewhere. A relative path resolves against each process's working directory, so use an absolute one. | OS user cache |
OIG_REDACT_PII | false, 0, no, off, n, or disabled (any case) selects the full-detail mirror for trusted local use, which needs its own init. An unrecognized value stops the server and the mirror CLI with an error. | true |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_HOST | HTTP bind address. | 127.0.0.1 |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_HTTP_ENDPOINT_PATH | MCP endpoint path for HTTP. | /mcp |
MCP_SESSION_MODE | HTTP session mode: stateless, stateful, or auto. | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (debug, info, warning, error, etc.). | info |
LOGS_DIR | Directory for log files (Node.js only). | <app-root>/logs |
See .env.example for every server setting and the common framework overrides.
For self-managed instances, set MCP_USAGE_REPORTING=true to send a summary of tool-call counts, failure kinds, and latency buckets to https://telemetry.cyanheads.com/v1/reports daily and at shutdown. Reports exclude screening inputs, results, and error messages. Set DO_NOT_TRACK=1 to disable reports or MCP_USAGE_REPORTING_ENDPOINT to use a different receiver.
Set the same OIG_MIRROR_DIR and OIG_REDACT_PII for the mirror CLI and the server. A client started outside your shell needs both in its server entry's env or the plugin settings:
export OIG_MIRROR_DIR="$HOME/leie-mirror"
export OIG_REDACT_PII=true
npx --yes --package @cyanheads/hhs-oig-exclusions-mcp-server hhs-oig-exclusions-mirror init
npx -y @cyanheads/hhs-oig-exclusions-mcp-server
On POSIX, the full-detail mirror refuses to open (unsafe_mirror_permissions) unless its directory and files are owned by the runtime user, grant no group or other access, and are not symlinks: keep the directory at 0700 and the database, refresh lock, and SQLite journal files at 0600, under trusted parent directories. After a restore that changes ownership or modes, stop every mirror process, fix them on the real directory and files, then run verify. On Windows, restrict access with filesystem ACLs.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
-
Clone and install:
git clone https://github.com/cyanheads/hhs-oig-exclusions-mcp-server.git cd hhs-oig-exclusions-mcp-server && bun install -
Build, initialize the mirror, and run the production version:
# One-time build and import bun run rebuild bun run dist/cli/mirror.js init # Run the built server bun run start:http # or bun run start:stdio -
Run checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Docker
docker volume create hhs-oig-exclusions-mirror
docker run --rm -v hhs-oig-exclusions-mirror:/usr/src/app/.mirror \
ghcr.io/cyanheads/hhs-oig-exclusions-mcp-server:latest bun run dist/cli/mirror.js init
docker run --rm -v hhs-oig-exclusions-mirror:/usr/src/app/.mirror \
-p 127.0.0.1:3010:3010 ghcr.io/cyanheads/hhs-oig-exclusions-mcp-server:latest
The image defaults to HTTP transport, stateless session mode, the redacted mirror at /usr/src/app/.mirror, and logs to /var/log/hhs-oig-exclusions-mcp-server; the server is then at http://127.0.0.1:3010/mcp. Use the same named volume for every run; for a manual refresh or verify, replace init in the first command. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-v", "hhs-oig-exclusions-mirror:/usr/src/app/.mirror", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/hhs-oig-exclusions-mcp-server:latest"]. For full-detail mode, pass -e OIG_REDACT_PII=false on every run; the image creates the mirror directory as 0700 for its bun user, so a bind mount or a volume carried over from an earlier image needs the ownership and modes described under Configuration. To build locally, docker build -t hhs-oig-exclusions-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point; schedules the daily mirror refresh under HTTP. |
src/cli/mirror.ts | The hhs-oig-exclusions-mirror CLI: init, refresh, and verify. |
src/config | OIG_MIRROR_DIR and OIG_REDACT_PII parsing, and the override that keeps failed-call payloads out of logs. |
src/mcp-server/tools | Tool definitions (*.tool.ts) and their shared output schemas. |
src/services/leie | Name and identifier screening, discovery, and reference data. |
src/services/mirror | OIG downloads, CSV validation, and SQLite snapshot publishing. |
tests/ | Screening contract, mirror refresh, and stdio privacy tests. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor logging,ctx.statefor storage - Register new tools in the
createApp()arrays insrc/index.ts, and add any new input field that can identify a person to the sensitive-field list there - Validate OIG rows on import → normalize → project to the output schema; never fabricate missing fields
Contributing
Issues are welcome. Use synthetic or redacted names and identifiers, and run checks and tests before submitting:
bun run devcheck
bun run test
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
@cyanheads/hhs-oig-exclusions-mcp-servernpm install @cyanheads/hhs-oig-exclusions-mcp-server@cyanheads/hhs-oig-exclusions-mcp-servernpm install @cyanheads/hhs-oig-exclusions-mcp-serverRemote
Related Servers
io.github.cyanheads/anime-mcp-server
Search anime/manga, franchise relations, schedule, characters, rankings, studio filmography.
io.github.cyanheads/art-institute-chicago-mcp-server
Search the Art Institute of Chicago collection: artworks, artists, exhibitions, and audio guides.
io.github.cyanheads/arxiv-mcp-server
Search arXiv, fetch paper metadata, and read full-text content.