Skip to main content
Glama
registryhound-mcp

registryhound-mcp

README.md
# @registryhound/mcp

[![Baffles78/registryhound-mcp MCP server](https://glama.ai/mcp/servers/Baffles78/registryhound-mcp/badges/score.svg)](https://glama.ai/mcp/servers/Baffles78/registryhound-mcp)

Official [Model Context Protocol](https://modelcontextprotocol.io) server for [RegistryHound](https://registryhound.com): search U.S. public government registries, read token-efficient entity dossiers, page through change-detection triggers and resolve one company across every registry.

Registries include FMCSA motor carriers (USDOT), the FAA aircraft registry (N-numbers), SEC EDGAR public companies (CIK / ticker), the CMS NPPES NPI registry, OSHA workplace inspections, USAspending federal awards and EPA ECHO facilities. New registries appear automatically: the tools are generated from the live [`/openapi.json`](https://registryhound.com/openapi.json) at start-up.

- Zero runtime dependencies (Node 18+ built-ins only)
- Transports: stdio (default), HTTP + SSE, Streamable HTTP
- API key or keyless [x402](https://registryhound.com/.well-known/x402.json) pay-per-request (USDC)

## Try it on Glama

The [Glama listing](https://glama.ai/mcp/servers/Baffles78/registryhound-mcp) lets you browse the tools, check the quality score and test the server online with the [MCP Inspector](https://glama.ai/mcp/inspector). The server is also listed in the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=registryhound) as `io.github.Baffles78/registryhound`.

## Tools

| Tool | What it does | Cost |
|---|---|---|
| `search_registries` | Search every registry (or one) by name or id. Returns market, id, name, city, state, URL; exact id matches first. | Free |
| `get_entity` | One record. `format: "markdown"` (default) returns a compact dossier: title, canonical URL, official verification link, key fields table, recent change triggers, disclaimer. `format: "json"` returns structured fields. `live: true` uses the metered, uncached API. | Free (`live`: paid) |
| `get_triggers` | Change-detection feed for one registry: new registrations, ownership transfers, status changes, filings, penalties, award changes. Filters: `since`, `until`, `type`, `state`, `limit`, `cursor`. | Paid |
| `resolve_entity` | Link one company across all registries by EIN / UEI / CIK / USDOT / FRN and normalized legal name + state. | Paid (Full API plan) |

## Install

### Claude Desktop / Claude Code / Cursor (stdio)

```json
{
  "mcpServers": {
    "registryhound": {
      "command": "npx",
      "args": ["-y", "@registryhound/mcp"],
      "env": { "REGISTRYHOUND_API_KEY": "rh_live_..." }
    }
  }
}
```

Claude Code: `claude mcp add registryhound -e REGISTRYHOUND_API_KEY=rh_live_... -- npx -y @registryhound/mcp`

Leave `REGISTRYHOUND_API_KEY` out to use only the free tools plus x402 pay-per-request.

### HTTP (SSE and Streamable HTTP)

```bash
npx -y @registryhound/mcp --sse --port 3333
# GET  http://127.0.0.1:3333/sse        legacy HTTP+SSE (then POST /messages?sessionId=...)
# POST http://127.0.0.1:3333/mcp        Streamable HTTP (JSON responses)
```

The HTTP transport binds to `127.0.0.1` by default and rejects browser origins other than localhost. Use `--host 0.0.0.0` only behind your own auth, and set `MCP_HTTP_TOKEN` to require `Authorization: Bearer <token>`.

## Configuration

| Variable | Default | |
|---|---|---|
| `REGISTRYHOUND_API_KEY` | (none) | `x-api-key` for paid tools. Plans: https://registryhound.com/pricing. Never sent to free endpoints. |
| `REGISTRYHOUND_BASE_URL` | `https://registryhound.com` | Server to query (also `--base-url`). |
| `REGISTRYHOUND_OPENAPI_URL` | `<base>/openapi.json` | Spec the tools are generated from. |
| `REGISTRYHOUND_TIMEOUT_MS` | `20000` | Per-request timeout. |
| `MCP_HTTP_TOKEN` | (none) | Bearer token required on the HTTP transport. |
| `MCP_ALLOWED_ORIGINS` | (none) | Extra browser origins allowed on the HTTP transport (comma list). |

`npx -y @registryhound/mcp --list-tools` prints the generated tool schemas.

## Paying per request with x402

Without an API key, `get_triggers`, `resolve_entity` and `get_entity` with `live: true` return an error result that contains the decoded `PAYMENT-REQUIRED` offer (x402 v2: network, USDC asset, amount, pay-to address) in both the text and `structuredContent.payment_required`. An x402-capable wallet signs one offer; call the same tool again with `payment_signature` set to the base64 `PAYMENT-SIGNATURE` value (and optionally `idempotency_key`). The result then ends with the decoded `PAYMENT-RESPONSE` settlement receipt. A retried signature is served from the receipt cache and never charged twice. Requests that return nothing (404, empty resolve) are not charged.

## Use as a library

```js
import { RegistryHoundMcp, loadSettings, runStdio } from '@registryhound/mcp';
const mcp = new RegistryHoundMcp(loadSettings());
const res = await mcp.handle({ jsonrpc: '2.0', id: 1, method: 'tools/call',
  params: { name: 'get_entity', arguments: { market: 'sec', id: '0000320193' } } });
```

## Data and compliance

RegistryHound republishes public U.S. government records. It is **not a consumer reporting agency**: results are not consumer reports under the FCRA and must not be used for credit, insurance, employment, housing or any other FCRA purpose. Records can be out of date; every dossier links the official source for verification. Records whose owners opted out show contact fields as "Withheld".

Operated by Opimus LLC. Docs: https://registryhound.com/docs · Agent docs: https://registryhound.com/llms-full.txt

## Development

```bash
npm install && npm run build && npm test
```

License: MIT

TDQS

A4.2/5.0

Scored across 4 tools

Disambiguation4/5

The tools mostly target distinct operations, but search_registries and resolve_entity both accept entity names/identifiers and search across registries, so an agent may need to read descriptions carefully to choose. get_entity and get_triggers are clearly separate.

Naming Consistency5/5

All four tools follow a consistent snake_case verb_noun pattern: search_registries, get_entity, get_triggers, resolve_entity. The convention is predictable throughout.

Tool Count5/5

Four tools is well-scoped for a read-only registry lookup server. Each tool covers a distinct core workflow: search, fetch, change triggers, and cross-registry resolution.

Completeness5/5

The surface covers the full read-only lifecycle: discover entities via search, fetch details, inspect change triggers, and resolve identities across registries. No obvious dead ends for the stated domain.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues