kfda-mcp
Enables LLM agents to query Korean drug, DUR safety rules, and health supplement databases via MCP protocol.
README
🇰🇷 KFDA MCP Server
MCP (Model Context Protocol) server for Korean Ministry of Food and Drug Safety (식약처) public OpenAPI.
LLM agents (Claude, ChatGPT, etc.) can autonomously query Korean drug master, DUR (Drug Utilization Review) safety rules, and health supplement databases through the standard MCP protocol.
🎯 Why this exists
The Korean healthcare AI ecosystem lacks an open MCP server for MFDS (식약처) public APIs. Global MCP servers like BioMCP focus on US data (FDA, PubMed). For Korean healthcare AI applications — pharmacy systems, telemedicine, drug interaction checkers — direct access to KFDA/MFDS APIs is essential but each team has to write their own wrapper.
This project provides a standard MCP server so any LLM agent can query Korean drug safety data without bespoke integration code.
✨ Features
| Tool | Description | KFDA OpenAPI |
|---|---|---|
search_drug |
의약품 마스터 검색 (제품명·성분·제조사·ATC 코드) | 의약품 제품 허가정보 |
check_dur_interaction |
두 약물의 병용금기·연령금기·임부금기 확인 | 의약품 안전사용서비스 (DUR) |
search_supplement |
건강기능식품 인허가 정보 검색 | 식품안전나라 건기식 OpenAPI |
get_drug_easy_info |
e약은요 (환자용 쉬운 약물 정보) 조회 | e약은요 |
lookup_atc_code |
ATC 코드 → 약물군 분류 정보 | 내장 매핑 |
🚀 Quick Start
1. Install
pip install kfda-mcp
# or from source
git clone https://github.com/pianovirus/kfda-mcp
cd kfda-mcp
pip install -e .
2. Get your MFDS API key
Apply for a free API key at data.go.kr (공공데이터포털) — select 식약처 OpenAPI services.
3. Configure
Create .env:
MFDS_API_KEY=your_api_key_here
4. Run as MCP server
kfda-mcp
5. Connect from Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json (or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"kfda": {
"command": "kfda-mcp",
"env": {
"MFDS_API_KEY": "your_api_key_here"
}
}
}
}
Restart Claude Desktop. Now Claude can call Korean drug safety tools autonomously.
💡 Example Usage
Ask Claude (or any MCP-compatible LLM):
"환자가 와파린을 복용 중인데 자몽 추출 영양제를 같이 먹어도 되는지 확인해줘"
Claude will autonomously:
- Call
search_drug("와파린")→ get warfarin info + ATC code - Call
check_dur_interaction("warfarin", "grapefruit_extract")→ DUR check - Synthesize a safety recommendation grounded in MFDS data
🏗 Architecture
LLM Agent (Claude / GPT / etc.)
│
│ MCP Protocol (stdio / SSE)
│
▼
KFDA MCP Server (this project)
│
│ HTTP requests
│
▼
MFDS Public APIs
- 의약품 제품 허가정보 OpenAPI
- 의약품 안전사용서비스 (DUR)
- 식품안전나라 건기식 OpenAPI
- e약은요
📋 Tool Reference
search_drug(name: str, limit: int = 10)
Search Korean drug master by product name, generic name, or manufacturer.
Returns: List of drugs with product_name, generic_name, manufacturer, atc_code, kor_indication, dosage_form.
check_dur_interaction(drug_a: str, drug_b: str)
Check DUR safety rules between two drugs (병용금기·연령금기·임부금기 등).
Returns: List of warnings with rule_type, severity, description_kor.
search_supplement(ingredient: str | None = None, product: str | None = None)
Search 식약처 건강기능식품 (functional health food) registrations.
Returns: List of supplements with product_name, manufacturer, main_ingredient, approved_function.
get_drug_easy_info(drug_name: str)
Get patient-friendly drug information from e약은요 (consumer-facing drug guide).
Returns: purpose, dosage, side_effects, warnings in Korean.
lookup_atc_code(atc_code: str)
Look up ATC (Anatomical Therapeutic Chemical) classification by code.
Returns: level1 ~ level5 Korean & English names, drug examples.
🛣 Roadmap
- [x] Project scaffold + MCP SDK setup
- [x]
search_drug— 의약품 마스터 ✅ live verified (타이레놀 → ATC N02BE01) - [x]
check_dur_interaction— DUR 병용금기 ✅ live verified (아스피린+와파린 → 50건) - [x]
search_supplement— 건기식 ✅ live verified (식품안전나라 C003, 비타민 검색 OK) - [x]
get_drug_easy_info— e약은요 ✅ live verified (타이레놀 효능·용법·부작용 반환) - [ ]
lookup_atc_code— ATC 매핑 (planned) - [ ] Local cache layer (reduce API calls) — planned
- [ ] Async batch query support — planned
- [ ] Multilingual responses (한/영) — planned
현재 상태: 4/4 핵심 tool 모두 live 검증 완료, production-ready
- [ ] Local cache layer (reduce API calls)
- [ ] Async batch query support
- [ ] Multilingual responses (한/영)
🤝 Contributing
Korean healthcare AI engineers — contributions welcome! Please open an issue or PR.
This project aims to be the de facto MCP server for MFDS public APIs.
📜 License
MIT © 2026 Myunghee Kim · pianovirus@naver.com
🙏 Acknowledgments
- Anthropic MCP — Standard protocol for LLM-tool communication
- 식품의약품안전처 (MFDS) — Public health data API provider
- 공공데이터포털 — Korean government open data platform
한국어 요약
식약처(MFDS)의 공공 OpenAPI를 MCP 프로토콜로 감싼 서버입니다. Claude, GPT 같은 LLM 에이전트가 한국 의약품 마스터·DUR 안전성·건강기능식품 정보를 자율적으로 조회할 수 있습니다.
한국 헬스 AI 개발자들이 매번 식약처 API wrapper를 직접 만들 필요 없이, 이 MCP 서버 하나로 표준화된 도구 접근을 제공하는 것이 목표입니다.
기여 환영합니다. 🌱
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。