deploying-openmed-mcp
让编码型代理直接调用临床NLP工具,简化集成流程
运行本地服务会开放网络端口,需做好访问控制与认证。
在本地运行 MCP 服务,将 OpenMed 的NER/去标识化作为可被代理调用的工具。
把 OpenMed 的 NER、PII 检测和去标识化作为 MCP(Model Context Protocol)工具对外暴露,让像 Claude Code、Codex 这样的 agent 能像调用工具一样本地调用这些能力。适合想把临床 NLP 功能接入编程代理或聊天客户端、通过 stdio 或可流式 HTTP 提供服务并容器化部署的场景。服务在本地运行、模型不外传,并提供一组标准工具和运行时配置方便集成。
▸ 展开 SKILL.md 英文原文
Run OpenMed's Model Context Protocol (MCP) server so coding agents (Claude Code, Codex) and chat clients can call clinical NER, PII extraction, and de-identification as tools, on-device. Use when the user wants to add OpenMed to an agent's MCP config, expose de-id/NER as MCP tools, run an MCP server over stdio or Streamable HTTP, give Claude/Codex access to OpenMed, or containerize the MCP server. Covers the mcp extra, create_mcp_server, the 7 tools (openmed_analyze_text, openmed_extract_pii, openmed_deidentify, openmed_list_models, openmed_list_pii_languages, openmed_loaded_models, openmed_unload_model), the resources and prompts, stdio vs streamable-http transports, ServiceRuntime env config, and MCP client config snippets.
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deploying-openmed-mcp/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deploying-openmed-mcp/SKILL.md"# Deploying the OpenMed MCP server `openmed.mcp.server` exposes OpenMed's clinical NLP as **Model Context Protocol** tools, so coding agents (Claude Code, Codex) and chat clients can de-identify and analyze clinical text by calling tools instead of writing glue code. It runs **on-device** — models are local, no telemetry — and the server instructs clients to send real PHI only to instances the user operates. ## When to use this skill When an agent or LLM client should be able to *invoke* OpenMed: add it to a coding agent's MCP config, give a chat client de-id/NER tools, or run a shared MCP endpoint for a team. For programmatic HTTP from your own services, prefer `serving-openmed-rest-api`