medlineplus-mcp
Provides tools to look up patient-friendly health education links from MedlinePlus Connect using clinical codes or medication names, enabling AI agents to retrieve trustworthy reference material without accessing private health records.
README
MedlinePlus MCP
Open-source Model Context Protocol server for MedlinePlus Connect, the U.S. National Library of Medicine service for linking clinical codes and medication names to patient-friendly health information.
This server gives an AI agent narrow tools for looking up public MedlinePlus education links. It is intentionally not a medical-record server and does not store patient data.
Why
Agents working near health records need trustworthy reference material, but they should not invent medication side effects, lab explanations, or condition summaries from memory.
medlineplus-mcp keeps the privacy boundary simple:
- Send generic lookup terms or codes to MedlinePlus, such as
metformin, an RXCUI, an NDC, a LOINC code, an ICD-10-CM code, a CPT code, or a SNOMED CT code. - Keep private chart context local in your own agent or application.
- Merge public education links with private patient context only after the lookup result comes back.
Tools
lookup_medication
Look up medication education links using:
name: English medication name fallback, such asmetforminrxcui: RxNorm Concept Unique Identifierndc: National Drug Codelanguage:enores
Spanish medication responses generally require RXCUI or NDC.
lookup_diagnosis
Look up diagnosis/problem education links using:
code: ICD-10-CM, ICD-9-CM, or SNOMED CT codecodeSystem:icd10cm,icd9cm, orsnomedctname: optional display namelanguage:enores
lookup_lab_test
Look up lab-test education links using:
loinc: LOINC codename: optional display namelanguage:enores
lookup_procedure
Look up procedure education links using:
code: CPT or SNOMED CT codecodeSystem:cptorsnomedctname: optional display namelanguage:enores
medlineplus_connect
Low-level escape hatch for supported MedlinePlus Connect request types.
Install
git clone https://github.com/chrisvo/medlineplus-mcp.git
cd medlineplus-mcp
npm install
npm test
Run
npm start
Example MCP config:
{
"mcpServers": {
"medlineplus": {
"command": "node",
"args": ["/absolute/path/to/medlineplus-mcp/src/server.mjs"],
"cwd": "/absolute/path/to/medlineplus-mcp",
"env": {
"MEDLINEPLUS_CACHE_TTL_MS": "43200000"
}
}
}
}
MEDLINEPLUS_CACHE_TTL_MS defaults to 12 hours.
MEDLINEPLUS_CACHE_DIR defaults to .cache/medlineplus-mcp; set it to off to disable persistent disk caching.
Caching
The server uses two cache layers:
- in-memory cache for repeated lookups during the current process,
- filesystem cache so repeated lookups survive process restarts.
By default cache files are written under .cache/medlineplus-mcp/ in the server working directory. Cache keys are SHA-256 hashes of the MedlinePlus Connect request URL, and cached payloads contain only the public response from MedlinePlus plus the generic lookup request.
For a different cache folder:
MEDLINEPLUS_CACHE_DIR=/var/cache/medlineplus-mcp npm start
To disable disk caching:
MEDLINEPLUS_CACHE_DIR=off npm start
Output
Tool responses are JSON text payloads:
{
"request": {
"type": "drug",
"codeSystem": "ndc",
"code": "",
"name": "metformin",
"language": "en"
},
"query_url": "https://connect.medlineplus.gov/service?...",
"attribution": "U.S. National Library of Medicine",
"updated": "2026-07-18T03:05:36Z",
"total_results": 1,
"entries": [
{
"title": "Metformin",
"url": "https://medlineplus.gov/druginfo/meds/a696005.html",
"summary": "",
"source": "American Society of Health-System Pharmacists, Inc."
}
]
}
Privacy
Do not send private chart notes, diagnoses, full medication administration records, names, MRNs, dates of birth, or free-form patient narratives to this server unless you are intentionally sending them to MedlinePlus Connect.
Prefer generic lookups:
- Good:
metformin - Good:
rivaroxaban - Good:
4548-4for a LOINC lookup - Bad: an entire hospital progress note
Acceptable Use
MedlinePlus says Connect requests should stay under 100 requests per minute per IP address and recommends caching results for 12-24 hours. This server includes in-memory and disk caching by request URL.
See the official docs:
- MedlinePlus Connect
- MedlinePlus Connect Web Service
- Technical Information
- MedlinePlus for Developers
Medical Safety
MedlinePlus content is patient education, not a clinical decision engine. Agents using this MCP should:
- cite returned MedlinePlus links,
- separate public general education from patient-specific interpretation,
- avoid telling users to stop, start, or change medications,
- suggest questions for the care team when private clinical context matters.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。