Labsco
eliotk logo

NPI Registry

โ˜… 4

from eliotk

Search the National Provider Identifier (NPI) registry for healthcare providers and organizations in the United States.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

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

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

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/