kadlint-mcp
Exposes a check_ad_copy tool over stdio for LLM assistants to lint Korean cosmetics and health-food marketing copy for prohibited claims.
README
kadlint
Korean ad-compliance linter for cosmetics and health-food marketing copy — detects prohibited claims with the legal basis, severity, and safer alternatives.
Korean law tightly regulates what cosmetics and health-functional-food ads may claim. A face cream may not say it "treats acne" (that is a drug claim under the Cosmetics Act), a probiotic may not promise to "boost immunity" unless that exact functionality was approved, and "No.1" / "100% natural" claims require objective substantiation under the Fair Labeling and Advertising Act. Korea's Ministry of Food and Drug Safety (MFDS) keeps detecting thousands of unlawful online ads in these categories every year — in 2025 its routine sweeps again flagged large batches of cosmetics and health-food ads for drug-like or unsubstantiated claims, and violations can mean ad bans, sales suspensions, and fines.
kadlint lints Korean marketing copy against a curated dictionary of 299 rules (183 cosmetics, 51 health-food, 65 common) distilled from:
- 화장품법 (Cosmetics Act) and its enforcement rules (별표5)
- 건강기능식품법 / 식품표시광고법 (Health Functional Foods & Food Labeling/Advertising Acts)
- 표시광고법 (Fair Labeling and Advertising Act)
- MFDS advertising guidelines and enforcement precedents
Every finding comes with the violation category, the legal basis citation, a severity (high / medium / low), an explanation, and safer alternative phrasings.
Install
npm install -g kadlint # CLI
npm install kadlint # library
Requires Node.js >= 18.
CLI
kadlint check ad-copy.txt
kadlint check ./landing-pages --format json --min-severity high
kadlint check - < draft.md # stdin
kadlint check banner.html --domain cosmetics,common
ad-copy.txt:1:1 [HIGH] '여드름 치료' — 의약품 오인 표현 (cos-113)
근거: 화장품법 제13조제1항제1호, 식약처 「화장품 표시·광고 관리 지침」
대체 표현: 피지·각질 케어로 매끈한 피부결 / (실증 보유 시) 여드름성 피부에 사용 적합
✖ 1건 발견 (high 1 · medium 0 · low 0) — 파일 1개, 규칙 299개 검사
- Supported inputs:
.txt,.md,.html(tags stripped, offsets preserved), directories (recursive),-(stdin). - Exit codes:
0clean,1findings at/above--min-severity,2usage error. - Literal rules match through inserted spaces, middle dots, and hyphens (
살 균,살·균,살-균), a common evasion tactic; disable with--no-normalize.
API
import { lint, lintFile } from 'kadlint';
const result = lint('여드름 치료에 탁월한 크림', { domains: ['cosmetics'] });
for (const f of result.findings) {
console.log(f.ruleId, f.severity, f.match, f.legalBasis, f.alternatives);
}
const fileResult = lintFile('landing.html', { minSeverity: 'medium' });
Options: domains (cosmetics | health_food | common), minSeverity, normalize (default true).
When one of a rule's exceptions phrases appears within 80 characters of a match (e.g. an approved functional claim used verbatim), the finding is downgraded to low with an explanatory note.
MCP server
kadlint-mcp exposes a check_ad_copy { text, domain? } tool over stdio so LLM assistants can lint copy while drafting it.
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"kadlint": {
"command": "npx",
"args": ["-y", "kadlint", "kadlint-mcp"]
}
}
}
If installed globally, "command": "kadlint-mcp" suffices:
{
"mcpServers": {
"kadlint": { "command": "kadlint-mcp" }
}
}
Claude Code:
claude mcp add kadlint -- kadlint-mcp
or in .mcp.json:
{
"mcpServers": {
"kadlint": {
"command": "kadlint-mcp",
"args": []
}
}
}
Playground
playground/index.html is a dependency-free static page (GitHub Pages friendly): paste copy, get highlighted matches and rule cards with the legal basis and alternatives.
Rule dictionary
Rules live in data/*.json:
{
"id": "cos-113",
"pattern": "여드름.{0,8}(개선|치료|완화|박멸|없애|케어|예방)",
"pattern_type": "regex",
"violation": "의약품 오인 표현",
"legal_basis": "화장품법 제13조제1항제1호",
"severity": "high",
"message": "…why this is prohibited…",
"alternatives": ["피지·각질 케어로 매끈한 피부결"],
"exceptions": ["여드름성 피부 완화 기능성화장품 심사(보고) 효능효과"]
}
data/_needs_review.json is a backlog of candidate rules that have not been verified yet; it is excluded from the npm package. Contributions welcome — see CONTRIBUTING.md (no coding required, every rule must cite its legal basis).
Disclaimer
- kadlint is not legal advice. It is a heuristic linter over a hand-curated dictionary.
- A clean result does not guarantee compliance — false negatives are inherent to pattern matching, and regulations change.
- Final legal responsibility for any advertisement rests with the advertiser. Consult a qualified professional for high-stakes copy.
Roadmap
- v0.2: PyPI mirror (
pip install kadlint), review of the 25 backlog rules in_needs_review.json, and a pipeline for tracking MFDS guideline revisions.
License
MIT © 2026 Jungkyun Lim
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。