Spiral gives your agent every tool with one account. Browse the tools →

Grok · Lead Gen

How to Use NPI Registry provider search in Grok

Returns matching public NPPES provider records, including names, specialty classifications, and addresses. Use it to find healthcare organizations in a location before reviewing individual records.

Prompts to try with NPI Registry provider search in Grok

Copy an example into Grok, or ask in your own words.

Use NPI Registry provider search to find healthcare organizations in Boston, Massachusetts, and show their names, NPIs, reported specialties, and primary practice addresses.

NPI Registry provider searchGrok
Try asking
  • Use NPI Registry provider search to find organizations with practice addresses in ZIP code 44195 in Ohio and summarize the types of organizations returned.

  • Use NPI Registry provider search to look this up and give me the result as a table.

  • Pull the latest numbers from NPI Registry provider search and tell me what changed since last week.

  • Check NPI Registry provider search and summarize what you find in three bullet points.

How to set up NPI Registry provider search in Grok

Pick the way that suits you. Each takes about two minutes.

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run NPI Registry provider search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "npiregistry-cms-hhs-gov/providers/search",
        "input": {
          "city": "<city>"
        }
      }'

Then paste one of the prompts above: Grok finds NPI Registry provider search on Spiral, shows the price and runs it.

NPI Registry provider search providers and prices

Spiral runs NPI Registry provider search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
NPI Registry · Search
npiregistry-cms-hhs-gov/providers/search

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Skip0 to 12000

Records to skip; pass next_skip from the previous page. NPPES allows at most 1200.

Limit1 to 20010

Records per page.

Address purposelocation, mailing, primary, or secondary

Which address the city/state/postal_code filters apply to. Default: any.

Enumeration typeindividual or organization

individual (NPI-1) or organization (NPI-2). Omit for both.

Use first name aliason or off

Also match common first-name aliases (Bob for Robert). Requires first_name. NPPES default is true.

Every API field of NPI Registry · Search is on its tool page: open its card above.

What can you do with NPI Registry provider search in Grok?

Produce a comparison of healthcare organizations and their reported locations. Explain which NPPES addresses describe practice locations and which are for correspondence.

Audit a healthcare organization directory

Compare directory names and business addresses with reported NPPES records. Identify entries that need an address correction or a closer review of the organization match.

Prepare a referral facility directory

Find healthcare organizations in a city, review their reported classifications, and organize their practice addresses for referral staff.

Map reported care sites

Build a map from organization practice addresses, keeping mailing addresses separate. Include reported secondary locations when reviewing an organization's geographic presence.

Review business contact records

Compare a hospital or clinic directory's business address and telephone number with NPPES. Prepare a review queue for discrepancies before changing published contact information.

Report organization address changes

Compare successive registry checks for selected organizations. Summarize changes to reported practice and mailing addresses for the team maintaining the directory.

Reconcile duplicate organization entries

Compare NPIs and reported locations when similarly named organizations appear in a directory. Preserve separate NPI records while flagging entries that may describe the same organization.

Questions about NPI Registry provider search in Grok

Can Grok use NPI Registry provider search?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run NPI Registry provider search like any built-in tool.

How much does NPI Registry provider search cost in Grok?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

Do I need an Alexandria account to use NPI Registry provider search in Grok?

No. Spiral runs NPI Registry provider search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up NPI Registry provider search in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while NPI Registry provider search runs?

NPI Registry provider search runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

Does NPPES cover organizations as well as individual clinicians?

Yes. NPPES distinguishes individual healthcare providers, such as physicians, from organizations, such as hospitals.

How fresh are NPI Registry records?

The registry refreshes daily. Providers have 30 days to report changes to required data, so a daily refresh can still contain an address that has recently changed.

Does an NPI listing verify a provider's license?

No. CMS states that having an NPI does not ensure a provider is licensed or credentialed; providers certify the information they submit to NPPES.

How many records can a registry search return?

The NPPES API returns up to 200 records per request. The rOpenSci client documentation describes a 1,200-record search ceiling, so larger result sets need narrower geographic searches.

What is the difference between a practice address and a mailing address?

NPPES separates location addresses from mailing addresses. The primary practice entry includes a reported address and telephone number, and CMS also maintains reported non-primary practice locations.

Get started

Start using NPI Registry provider search in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options