NPI Registry

NPI Registry

eliotk

Search the official US National Provider Identifier (NPI) registry to find healthcare providers and organizations by name, location, specialty, or NPI number.

Integrates with the National Provider Identifier (NPI) registry to search for healthcare providers and organizations by name, location, specialty, or NPI number with detailed contact information, credentials, and practice locations.

1262 views3Local (stdio)

What it does

  • Search providers by name or organization
  • Look up provider details by NPI number
  • Filter results by location (city, state, zip)
  • Find providers by medical specialty
  • Retrieve contact information and practice locations
  • Validate NPI numbers

Best for

Healthcare administrators verifying provider credentialsMedical researchers finding specialists in specific areasPatients looking up their healthcare providersHealthcare organizations validating NPI numbers
Official CMS registry dataNo API key needed

About NPI Registry

NPI Registry is a community-built MCP server published by eliotk that provides AI assistants with tools and capabilities via the Model Context Protocol. Easily perform NPI lookup and doctor NPI lookup with our NPI registry. Find providers by name, location, specialty, or N It is categorized under analytics data. This server exposes 1 tool that AI clients can invoke during conversations and coding sessions.

How to install

You can install NPI Registry in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

NPI Registry is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (1)

search_npi_registry

Search the National Provider Identifier (NPI) registry. The NPI registry contains information about healthcare providers and organizations in the United States. You can search by various criteria including name, NPI number, location, and specialty. WILDCARD SUPPORT: Most text fields support wildcard searches using '*' after at least 2 characters for fuzzy matching (e.g., 'smith*', 'hosp*', 'cardi*'). Args: first_name: Provider's first name (supports wildcards: 'john*' matches 'John', 'Johnny', etc.) last_name: Provider's last name (supports wildcards: 'smith*' matches 'Smith', 'Smithson', etc.) organization_name: Organization name (supports wildcards: 'hosp*' matches 'Hospital', 'Hospice', etc.) npi: Specific 10-digit NPI number to look up (exact match only) city: City name (supports wildcards: 'san*' matches 'San Francisco', 'San Diego', etc.) state: State abbreviation (e.g., 'CA', 'NY', 'TX') - exact match only postal_code: ZIP/postal code (supports wildcards: '902*' matches '90210', '90211', etc.) specialty: Provider specialty or taxonomy (supports wildcards: 'cardi*' matches 'Cardiology', 'Cardiac Surgery', etc.) limit: Maximum number of results to return (1-200, default: 10) Examples: - Find all Smiths: last_name='smith*' - Find hospitals: organization_name='hosp*' - Find cardiologists: specialty='cardio*' - Find providers in San cities: city='san*' - Find providers in 90210 area: postal_code='902*' Returns: Dictionary containing search results with provider information

NPI Registry MCP Server ๐Ÿฅ

A Model Context Protocol (MCP) server for searching the National Provider Identifier (NPI) registry. This server provides tools to search and retrieve information about healthcare providers and organizations in the United States.

Overview ๐Ÿ“‹

NPI is a unique identification number for covered health care providers in the United States. This MCP server allows Claude and other MCP-compatible clients to search the official NPI registry maintained by the Centers for Medicare & Medicaid Services (CMS), and integrates the results into an LLM context for enhanced analysis and insights.

Features โœจ

  • Search by Provider Name: Find individual healthcare providers by first name, last name, or both
  • Search by Organization: Look up healthcare organizations by name
  • Search by NPI Number: Direct lookup using a specific 10-digit NPI
  • Location-based Search: Filter results by city, state, or postal code
  • Specialty Search: Find providers by their specialty or taxonomy description
  • Comprehensive Data: Returns detailed information including addresses, practice locations, specialties, and other identifiers

Use Cases ๐Ÿ’ก

  • Verify healthcare provider credentials
  • Find provider contact information and addresses
  • Look up organization details and authorized officials
  • Validate NPI numbers
  • Research provider specialties and taxonomies
  • Find providers in specific geographic areas

Installation ๐Ÿš€

Prerequisites ๐Ÿ“‹

  • Python 3.10 or higher
  • uv package manager

Development Setup ๐Ÿ› ๏ธ

  1. Clone the repository:

    git clone https://github.com/eliotk/npi-registry-mcp-server.git
    cd npi-registry-mcp-server
    
  2. Install uv (if not already installed):

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  3. Create a virtual environment and install dependencies:

    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    uv pip install -e ".[dev]"
    
  4. Run the server directly (for testing):

    uv run python -m npi_registry_mcp.server
    # or using the entry point:
    uv run npi-registry-mcp-server
    

Production Installation ๐ŸŒŸ

Install from PyPI (once published):

uv pip install npi-registry-mcp-server

Or install from source:

uv pip install git+https://github.com/eliotk/npi-registry-mcp-server.git

Usage ๐Ÿ“š

Available Tools ๐Ÿ› ๏ธ

search_npi_registry ๐Ÿ”Ž

Search the NPI registry with various criteria:

Parameters:

  • first_name (optional): Provider's first name
  • last_name (optional): Provider's last name
  • organization_name (optional): Organization name
  • npi (optional): Specific 10-digit NPI number
  • city (optional): City name
  • state (optional): State abbreviation (e.g., 'CA', 'NY')
  • postal_code (optional): ZIP/postal code (supports wildcards)
  • specialty (optional): Provider specialty or taxonomy
  • limit (optional): Maximum results to return (1-200, default: 10)

Examples:

# Search for a specific provider by name
search_npi_registry(first_name="John", last_name="Smith", state="CA")

# Look up a specific NPI
search_npi_registry(npi="1234567890")

# Find organizations in a city
search_npi_registry(organization_name="Hospital", city="Los Angeles", state="CA")

# Search by specialty
search_npi_registry(specialty="cardiology", state="NY", limit=20)

# Find providers in a specific ZIP code area
search_npi_registry(postal_code="902*", state="CA")

Response Format ๐Ÿ“„

The search returns a structured response with:

{
  "success": true,
  "count": 5,
  "results": [
    {
      "npi": "1234567890",
      "entity_type": "Individual",
      "is_organization": false,
      "status": "A",
      "enumeration_date": "2010-05-05",
      "last_updated": "2023-01-15",
      "name": {
        "first": "John",
        "last": "Smith",
        "credential": "MD"
      },
      "addresses": [...],
      "practice_locations": [...],
      "taxonomies": [...],
      "identifiers": [...]
    }
  ]
}

Claude Desktop Configuration ๐Ÿ–ฅ๏ธ

To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop config file:

macOS ๐ŸŽ

Location: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows ๐ŸชŸ

Location: %APPDATA%/Claude/claude_desktop_config.json

Configuration ๐Ÿ“

{
  "mcpServers": {
    "npi-registry": {
      "command": "uv", # may need full path to executable
      "args": [
        "--directory",
        "/path/to/npi-registry-mcp-server",
        "run",
        "npi-registry-mcp-server"
      ]
    }
  }
}

Verification โœ…

  1. Save the configuration file
  2. Restart Claude Desktop completely
  3. Look for the ๐Ÿ”ง icon in Claude Desktop to verify the server is connected
  4. Try asking Claude: "Search for doctors named Smith in California"

Development ๐Ÿ‘จโ€๐Ÿ’ป

Project Structure ๐Ÿ“

npi-registry-mcp-server/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ npi_registry_mcp/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ””โ”€โ”€ server.py
โ”œโ”€โ”€ tests/
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ .gitignore

Running Tests ๐Ÿงช

uv run pytest

Code Formatting ๐ŸŽจ

# Format code
uv run black src/ tests/

# Sort imports
uv run isort src/ tests/

# Lint
uv run ruff check src/ tests/

# Type checking
uv run mypy src/

Building the Package ๐Ÿ“ฆ

uv build

API Reference ๐Ÿ“–

This server uses the official NPI Registry API provided by CMS:

Data Sources ๐Ÿ—ƒ๏ธ

All data comes directly from the official NPI Registry maintained by:

  • Centers for Medicare & Medicaid Services (CMS)
  • U.S. Department of Health and Human Services

Contributing ๐Ÿค

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and add tests
  4. Run the test suite: uv run pytest
  5. Format your code: uv run black src/ tests/
  6. Submit a pull request

License ๐Ÿ“„

MIT License - see LICENSE file for details.

Support ๐Ÿ†˜

  • Issues: Report bugs and request features via GitHub Issues
  • Documentation: Additional documentation available in the /docs directory
  • API Questions: Refer to the official NPI Registry API documentation

Changelog ๐Ÿ“

v0.1.0 ๐ŸŽ‰

  • Initial release
  • Basic NPI registry search functionality
  • Support for individual and organization searches
  • Location and specialty filtering
  • Comprehensive provider data retrieval

For more information about the Model Context Protocol, visit: https://modelcontextprotocol.io/

Alternatives

Related Skills

Browse all skills
data-storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

13
content-trend-researcher

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

13
crypto-market-data

No API KEY needed for free tier. Professional-grade cryptocurrency market data integration for real-time prices, historical charts, and global analytics.

4
senior-data-scientist

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

3
data-scientist

Expert data scientist for advanced analytics, machine learning, and statistical modeling. Handles complex data analysis, predictive modeling, and business intelligence. Use PROACTIVELY for data analysis tasks, ML modeling, statistical analysis, and data-driven insights.

2
dbt-transformation-patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

1