关于 Npi Registry
Npi Registry 通过 MCP 工具搜索和检索美国 CMS 国家医疗服务提供者标识符注册表中的记录。支持按 NPI、姓名、分类和地点查询,且无需身份验证。
主要功能
- 01按身份和地点搜索服务提供者
- 02通过 10 位 NPI 查询提供者
- 03按分类和提供者类型筛选
- 04无需凭据
适用场景
- 01按姓名和州查找提供者
- 02根据 NPI 获取提供者记录
- 03按专科或邮政编码缩小范围
MCP 相关
通过 Pipeworx 或本地 stdio MCP 服务向 MCP 客户端提供搜索和提供者查询工具。网关端点还会列出 Pipeworx 通用元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/npi-registry/mcpclaude mcp add --transport http pipeworx-io-npi-registry https://gateway.pipeworx.io/npi-registry/mcp{"mcpServers":{"pipeworx-io-npi-registry":{"type":"http","url":"https://gateway.pipeworx.io/npi-registry/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-npi-registry":{"type":"http","url":"https://gateway.pipeworx.io/npi-registry/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-npi-registry":{"type":"http","url":"https://gateway.pipeworx.io/npi-registry/mcp"}}}{"mcpServers":{"pipeworx-io-npi-registry":{"serverUrl":"https://gateway.pipeworx.io/npi-registry/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/npi-registry
CMS NPI Registry MCP——涵盖所有美国医疗服务提供者的国家提供者标识符(约 700 万名个人及组织)。无需身份验证。
属于 Pipeworx——一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。
工具
search(number?, name?, first_name?, last_name?, organization_name?, taxonomy?, city?, state?, postal_code?, country_code?, npi_type?, address_purpose?, limit?, skip?)get_provider(npi)——便捷查询:通过 10 位 NPI 查找
数据来源
https://npiregistry.cms.hhs.gov/api/?version=2.1——公共 REST API。
快速开始
将其添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"npi-registry": {
"url": "https://gateway.pipeworx.io/npi-registry/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/npi-registry/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 通用元工具——ask_pipeworx、
discover_tools、search_within、remember/recall,以及其他网关通用工具。因此,你看到的工具数量会多于表格所列:目前,单个工具包端点除了该工具包自身的工具,还会列出大约 30 个通用工具。连接的 initialize 响应会说明其确切范围,是当天情况的权威说明。
这是有意为之,并非意外的多路复用。元工具可以让范围受限的连接通过 ask_pipeworx 跨整个目录进行路由,从而回答此工具包未涵盖的问题,无需你添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构信息耗费的上下文超过路由带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
或者连接完整的 Pipeworx 网关,直接列出每个工具包的工具,而不仅是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一个网关和相同的 1683+ 个数据源。唯一的区别是哪个工具包的工具会被直接列出;从任一端点都可以通过 ask_pipeworx 访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/npi_registry_search \
-H 'Content-Type: application/json' \
-d '{"name":"John Smith","taxonomy":"Internal Medicine","state":"CA"}'
首次调用无需账户。检查任意工具:GET https://gateway.pipeworx.io/v1/tools/npi_registry_search。查找工具包:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需经由网关:
{
"mcpServers": {
"npi-registry": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-npi-registry"]
}
}
}
或者直接运行以确认服务可以启动:
npx -y @pipeworx/mcp-npi-registry
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,但仅提供此工具包的工具——不包含上述网关连接所添加的通用元工具。数据来源和工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你也可以用自然语言提问,而不是直接调用工具——这既适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Npi Registry data" })
网关会自动选择合适的工具并填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。