原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MedRecPro Drug Label Server

作者:chriserikbarnes版本 1.0.3i★ –i在云端运行
注册名称com.medrecpro/drug-label-server

安装

概览

作者提供的说明(英文原文)

Search and export FDA drug labels by brand name, generic ingredient, or UNII code.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在云端运行
  • 传输方式: Streamable HTTP
  • 分类: 诊所与健康

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://www.medrecpro.com/mcp

在终端中运行这条命令

claude mcp add --transport http drug-label https://www.medrecpro.com/mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "drug-label": {
      "url": "https://www.medrecpro.com/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "drug-label": {
      "type": "http",
      "url": "https://www.medrecpro.com/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://www.medrecpro.com/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 medrecpro.com 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“诊所与健康”中的其他服务器比较i

  • 星标数多于此分类中其他 1024 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1024 个服务器的 2% 更新
  • 基础检查结果等于或优于此分类中其他 1024 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MedRecPro Drug Label Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.3)于8个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Mirobody, FHIR MCP Server, Google Health MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Mirobody

作者:thetahealth

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

在你的电脑上运行★ 1,408Apache-2.0今天更新
安装

FHIR MCP Server

作者:wso2

MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications

在你的电脑上运行★ 137Apache-2.010天前更新
安装

Google Health MCP

作者:davidmosiah

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

在你的电脑上运行★ 79MIT4个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

MedRecPro MCP Server

MCP (Model Context Protocol) server for the MedRecPro application. Acts as an OAuth 2.1 gateway between MCP clients (Claude, etc.) and the MedRecPro Web API.

Version: 1.0.0 Runtime: ASP.NET Core 8.0 Production URL: https://www.medrecpro.com/mcp

Architecture

                             Azure App Service: "MedRecPro" (Windows, IIS)

+--------------------------------------------------+ | | +------------------+ | / site\wwwroot MedRecProStatic | | Claude / MCP | HTTPS | /api site\wwwroot\api MedRecPro API | | Client |------->| /mcp site\wwwroot\mcp MedRecProMCP | +------------------+ | | | +--------------------------------------------------+ v | +------------------+ v | Cloudflare | +------------------+ | (CDN/WAF/DNS) | | Azure Key Vault | +------------------+ | (medrecprovault)| +------------------+

The MCP server runs as an IIS virtual application at /mcp on the same Azure App Service as the main MedRecPro UI and API. IIS handles path-based routing to three separate ASP.NET Core processes:

Virtual PathPhysical PathProjectPurpose
/site\wwwrootMedRecProStaticUI / Static content
/apisite\wwwroot\apiMedRecProWeb API
/mcpsite\wwwroot\mcpMedRecProMCPMCP Server (this project)

Endpoints

All endpoints are externally prefixed with /mcp by the IIS virtual application.

External URLMethodDescription
/mcpPOSTMCP Streamable HTTP transport (JSON-RPC)
/mcp/healthGETHealth check (returns JSON status)
/mcp/docsGETHTML technical documentation page
/mcp/getting-startedGETHTML getting-started page (user-facing, for directory listing)
/mcp/docs/images/{filename}GETServes embedded screenshot images (PNG)
/mcp/.well-known/oauth-protected-resourceGETProtected Resource Metadata (RFC 9728)
/mcp/.well-known/oauth-authorization-serverGETAuthorization Server Metadata (RFC 8414)
/mcp/oauth/authorizeGETOAuth authorization endpoint
/mcp/oauth/tokenPOSTToken exchange endpoint
/mcp/oauth/registerPOSTDynamic Client Registration (RFC 7591)
/mcp/oauth/callback/googleGETGoogle OAuth callback
/mcp/oauth/callback/microsoftGETMicrosoft OAuth callback

Note: GET /mcp returns HTTP 405 (Method Not Allowed). This is correct behavior. The MCP transport only accepts POST requests. For browser-accessible pages, use /mcp/docs (technical documentation) or /mcp/getting-started (user-facing guide).

Authentication Flow

1. Claude sends POST to /mcp (unauthenticated)
  1. Server returns 401 with WWW-Authenticate header pointing to PRM
  2. Claude fetches /mcp/.well-known/oauth-protected-resource
  3. Claude fetches /mcp/.well-known/oauth-authorization-server
  4. Claude registers via /mcp/oauth/register (Dynamic Client Registration)
  5. Claude redirects user to /mcp/oauth/authorize?provider=google
  6. User authenticates with Google/Microsoft
  7. Provider redirects to /mcp/oauth/callback/{provider}
  8. MCP server resolves upstream IdP email to numeric DB user ID via POST /api/users/resolve-mcp (auto-provisions user if they don't exist in the database)
  9. MCP server issues authorization code with numeric sub claim (standard JWT name), redirects to Claude
  10. Claude exchanges code for tokens via /mcp/oauth/token
  11. Claude sends authenticated POST to /mcp with Bearer MCP JWT
  12. MCP server forwards MCP JWT to MedRecPro API for each tool call (McpBearer auth scheme)

User Resolution and Auto-Provisioning

During the OAuth callback (step 9), the MCP server must map the upstream identity provider's identifier (Google sub / Microsoft GUID) to a numeric MedRecPro database user ID. The API's getEncryptedIdFromClaim() method expects a numeric NameIdentifier claim — without this resolution, all API calls would fail with 401.

How it works:

  1. OAuthEndpoints.cs extracts email, display name, and provider from upstream IdP claims
  2. UserResolutionService generates a temporary MCP JWT and calls POST /api/users/resolve-mcp
  3. The API's UsersController.ResolveMcpUser() looks up the user by email:
  • User exists: Returns their encrypted database user ID
  • User doesn't exist: Auto-provisions a new user record (matching AuthController.createUserForExternalLogin() defaults: EmailConfirmed=true, Timezone="UTC", Locale="en-US", no password), then returns the encrypted ID
  1. UserResolutionService decrypts the encrypted ID using the shared Security:DB:PKSecret via StringCipher
  2. OAuthEndpoints.cs replaces the upstream NameIdentifier claim with the numeric database user ID
  3. McpTokenService.normalizeClaimType() converts ClaimTypes.NameIdentifier to the standard JWT sub claim during token creation, and OutboundClaimTypeMap is cleared to prevent double-mapping
  4. The MCP JWT is issued with the numeric user ID as the sub claim, enabling all API calls to succeed

Key architecture:

  • TokenForwardingHandler forwards the MCP JWT directly to the API (not the upstream Google/Microsoft token). The API's McpBearer authentication scheme validates these MCP-signed JWTs.
  • Both the MCP server and API share Security:DB:PKSecret from Azure Key Vault for StringCipher encryption/decryption of user IDs.
  • UserResolutionService uses a dedicated "MedRecProApiDirect" named HttpClient (without TokenForwardingHandler) to avoid circular token forwarding during resolution.
  • Claim normalization: McpTokenService normalizes .NET ClaimTypes URIs to standard JWT short names (sub, name, email, given_name, family_name) before token creation. Both JWT handlers set MapInboundClaims = false so claims retain their short names when read back. The API's ClaimHelper resolves user IDs from both ClaimTypes.NameIdentifier (cookie auth) and "sub" (MCP JWT auth).

Compiler Directives (#if DEBUG)

Route paths use compiler directives to handle IIS virtual application path stripping. This follows the same pattern as ApiControllerBase in the MedRecPro API project.

Problem: IIS strips the /mcp prefix from requests before forwarding to the app. A request to www.medrecpro.com/mcp/oauth/authorize arrives at Kestrel as /oauth/authorize. Routes must account for this.

ComponentDEBUG (local dev)RELEASE (Azure/IIS)
MCP transportMapMcp("/mcp")MapMcp("/")
Health checkGET /GET /health
DocumentationGET /mcp/docsGET /docs
Getting startedGET /mcp/getting-startedGET /getting-started
Image servingGET /mcp/docs/images/{filename}GET /docs/images/{filename}
OAuth group/mcp/oauth/oauth
Well-known metadata/mcp/.well-known/*/.well-known/*
PRM redirect/mcp/.well-known/oauth-protected-resource redirects to SDK pathNot needed (IIS handles)

Files with compiler directives:

  • Program.cs - MCP transport, health check, docs, getting-started, image serving, PRM redirect
  • Endpoints/OAuthEndpoints.cs - OAuth route group prefix
  • Endpoints/OAuthMetadataEndpoints.cs - Well-known metadata paths

Config-driven (no directives needed):

  • OAuth callback URLs - Built from McpServer:ServerUrl at runtime
  • OAuth metadata document contents - Built from McpServer:ServerUrl at runtime
  • Protected Resource Metadata - Built from McpServer:ServerUrl at runtime

Setup Guide

Prerequisites
  • .NET 8.0 SDK
  • Azure subscription with:
  • App Service (Windows, IIS) - shared with MedRecPro
  • Key Vault (medrecprovault)
  • Application Insights (optional)
  • Cloudflare account with medrecpro.com domain
  • Google Cloud Console project with OAuth 2.0 credentials
  • Microsoft Entra ID app registration
1. Local Development Setup
Clone and restore
git clone <repo-url>

cd MedRecProMCP dotnet restore

Configure user secrets
dotnet user-secrets init

dotnet user-secrets set "McpServer:JwtSigningKey" " " dotnet user-secrets set "Jwt:Key" " " dotnet user-secrets set "Jwt:Issuer" "http://localhost:5233/mcp" dotnet user-secrets set "Jwt:Audience" "http://localhost:5233/mcp" dotnet user-secrets set "Jwt:ExpirationMinutes" "60" dotnet user-secrets set "Jwt:UpstreamTokenEncryptionKey" "<32-char-aes-key>" dotnet user-secrets set "Authentication:Google:ClientId" " " dotnet user-secrets set "Authentication:Google:ClientSecret" " " dotnet user-secrets set "Authentication:Microsoft:ClientId" " " dotnet user-secrets set "Authentication:Microsoft:ClientSecret:Dev" " " dotnet user-secrets set "Authentication:Microsoft:TenantId" " " dotnet user-secrets set "Security:DB:PKSecret" " "

Run locally
dotnet run

The server runs at http://localhost:5233. In DEBUG mode, endpoints include the /mcp prefix:

  • Health check: http://localhost:5233/
  • MCP transport: http://localhost:5233/mcp (POST only)
  • Documentation: http://localhost:5233/mcp/docs
  • Getting started: http://localhost:5233/mcp/getting-started
  • Screenshot images: http://localhost:5233/mcp/docs/images/{filename}
  • OAuth metadata: http://localhost:5233/mcp/.well-known/oauth-authorization-server
2. Azure App Service Setup
Add virtual application

In Azure Portal:

  1. Navigate to App Service "MedRecPro" > Configuration > Path mappings
  2. Click "+ Add virtual application or directory"
  3. Configure:
  • Virtual path: /mcp
  • Physical path: site\wwwroot\mcp
  • Type: Check Application
  1. Click Save
Key Vault secrets

Ensure the following secrets exist in Azure Key Vault (medrecprovault). These are shared with the MedRecPro API since both apps use the same Key Vault:

Secret NameDescription
McpServer--JwtSigningKeyJWT signing key for MCP tokens (min 32 chars)
Jwt--KeyJWT signing key
Jwt--IssuerJWT issuer claim
Jwt--AudienceJWT audience claim
Jwt--ExpirationMinutesToken expiration (e.g., 60)
Jwt--UpstreamTokenEncryptionKeyAES encryption key for upstream tokens
Authentication--Google--ClientIdGoogle OAuth Client ID
Authentication--Google--ClientSecretGoogle OAuth Client Secret
Authentication--Microsoft--ClientIdMicrosoft Entra App ID
Authentication--Microsoft--ClientSecret--ProdMicrosoft client secret (production)
Authentication--Microsoft--TenantIdAzure AD Tenant ID
Security--DB--PKSecretShared encryption key for user ID encryption/decryption (must match API)

Note: Key Vault uses -- as separator. ASP.NET Core maps these to : in configuration (e.g., Jwt--Key becomes Jwt:Key).

Managed identity

The App Service must have a system-assigned managed identity with Get and List permissions on Key Vault secrets. Since the MCP virtual application shares the same App Service as the API, the existing managed identity should already have access.

3. OAuth Provider Configuration
Google Cloud Console
  1. Go to Google Cloud Console > APIs & Services > Credentials
  2. Edit your OAuth 2.0 Client ID
  3. Add authorized redirect URIs:
  • https://www.medrecpro.com/mcp/oauth/callback/google (production)
  • http://localhost:5233/mcp/oauth/callback/google

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx