opdstar-nhi-mcp
This server is a read-only Taiwan NHI reference MCP for querying billing rules and official datasets.
Look up or browse NHI rejection codes by exact code or category, with severity, category, and official Chinese description.
Map ICD-10 codes plus specialty to candidate NHI procedure codes.
Search and browse audit guidance: 審查注意事項 clauses by procedure/specialty/keyword, threshold-based audit indicators, and prescribing-pattern indicators.
Look up drug catalog entries across NHI/TFDA and read drug payment rules.
Look up fee-schedule codes, points, effective dates, audit notes, and NHI floating point values.
Check major-illness categories and ICD eligibility, chronic-prescription rules, preventive services, and ICD-10-CM descriptions.
Search official NHI wiki content and administrative interpretations, and list recent rule amendments.
Get aggregate appeal statistics by dispute category or rejection/procedure code.
Access preview-only NHI-safe SOAP phrasing by specialty.
All tools are reference-only, read-only, and do not provide diagnosis, prescribing, or clinical decision support.
Who is this for?
Taiwan healthcare professionals using AI assistants (Claude Desktop, Cursor, ChatGPT Desktop) who want to:
🩺 Check NHI rejection risk before submitting a claim, without leaving their AI chat
📋 Look up procedure codes applicable to a diagnosis in seconds
📖 Ask questions in Chinese about NHI rules and get grounded answers with source URLs
🏥 Integrate NHI data into their own clinic software / HIS without building from scratch
Developers building Taiwan-specific healthcare AI tools — hook into one well-curated data source instead of scraping 健保署 manually.
Related MCP server: autoicd-mcp
Real-world examples
👩⚕️ Scenario 1 — Audit risk pre-check
You're writing a chart in Claude Desktop:
You: 我給 L30.9 慢性濕疹病人開了 prednisolone 30mg QD 5 天會不會被核刪?
Claude (auto-calls
lookup_rejection_code+get_indicator):依健保審查 008 指標,口服類固醇 + 濕疹類診斷若 PE 描述不足,會觸發核刪代碼 0320A。建議:PE 補充病灶面積 ≥ 30% 全身,或加入更嚴重的 ICD-10 佐證。
資料來源:OPDSTAR
🔍 Scenario 2 — Procedure lookup
You: 中耳炎 H66.9 耳鼻喉科能申報哪些處置?
Claude (auto-calls
get_procedures_for_icd):
27002C耳鏡檢查(25 點)
27018C耳膜穿刺(120 點)
36005C鼓室通氣管置入Full list: NHI procedures across major specialties.
📚 Scenario 3 — Wiki Q&A
You: 慢性病連續處方箋最長可以開多久?
Claude (auto-calls
search_nhi_wiki):依健保署規定,慢性病連續處方箋每次調劑之藥品使用期間最長 3 個月。原文:nhi.gov.tw/ch/cp-XXX.html
What is this?
@opdstar/nhi-mcp lets any Model Context Protocol client — Claude Desktop, Cursor, ChatGPT Desktop, custom agents — directly query Taiwan's National Health Insurance dataset curated and maintained by OPDSTAR.
Ask your AI in natural language:
"慢性濕疹 L30.9 開 prednisolone 30mg 5 天會不會被核刪?"
It auto-calls the right tools and pulls real NHI data:
NHI rejection codes (e.g.
0317A,0338A) with severity + categoryNHI procedure codes across major specialties, mapped to ICD-10
NHI audit indicators (008 / 014 / 027 / P043) with thresholds
Semantic + full-text search over the 健保署 official wiki
All served through the opdstar.com edge layer — zero configuration, cached globally, under 100ms response.
Install
# Claude Desktop — one-line, no install
npx @opdstar/nhi-mcp
# Or persist as a dependency
npm install -g @opdstar/nhi-mcpRequires Node.js 18+.
Claude Desktop config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"opdstar-nhi": {
"command": "npx",
"args": ["-y", "@opdstar/nhi-mcp"]
}
}
}Restart Claude Desktop. You should see 10 new tools appear in the tools menu.
Cursor config
Add to .cursor/mcp.json in your project root (or global ~/.cursor/mcp.json):
{
"mcpServers": {
"opdstar-nhi": {
"command": "npx",
"args": ["-y", "@opdstar/nhi-mcp"]
}
}
}Tools
1. lookup_rejection_code
Look up a Taiwan NHI rejection code (5-character, e.g. 0317A).
Arguments: { code: string }
Example:
> Claude, what does rejection code 0317A mean?
→ [tool call: lookup_rejection_code(code="0317A")]
→ {
"code": "0317A",
"description": "處方含抗生素,診斷碼未見感染性疾病",
"severity": "critical",
"category": "03",
"category_name": "藥品特材",
"opdstar_relevant": true,
"source_url": "https://opdstar.com/faq?q=核刪代碼 0317A"
}2. get_procedures_for_icd
Given an ICD-10 code and specialty, return the NHI procedure codes applicable.
Arguments: { icd10: string, specialty: string, limit?: number }
Example:
> What NHI procedures apply to L30.9 in dermatology?
→ [tool call: get_procedures_for_icd(icd10="L30.9", specialty="dermatology", limit=5)]
→ {
"count": 4,
"results": [
{
"code": "48010C",
"name_zh": "傷口處置",
"nhi_points": 125,
"audit_notes": "需記錄傷口大小、深度、分泌物",
"source_url": "https://opdstar.com/faq?q=處置碼 48010C"
},
...
]
}3. get_indicator
Look up a Taiwan NHI audit indicator — threshold, applicable drugs/diagnoses.
Arguments: { code: string }
Example:
> What's indicator 008 about?
→ [tool call: get_indicator(code="008")]
→ {
"code": "008",
"name": "急性上呼吸道感染抗生素使用率",
"threshold_pct": 10,
"applicable_drugs": ["antibiotic"],
"applicable_icd_patterns": ["J00","J06","J11","J02","J03","J04"],
"severity": "critical",
"rejection_codes": ["0311A", "0349A"]
}4. search_nhi_wiki
Semantic + full-text search over Taiwan's official NHI wiki (9 categories).
Arguments: { query: string, category?: "audit"|"drugs"|..., limit?: number }
Example:
> Search NHI wiki for chronic prescription rules
→ [tool call: search_nhi_wiki(query="慢性病連續處方箋天數上限", category="drugs")]
→ {
"count": 3,
"results": [
{
"title": "慢性病連續處方箋使用規定",
"content": "慢性病連續處方箋每次調劑之藥品使用期間,最長以 3 個月為限...",
"similarity": 0.87,
"source_url_nhi": "https://www.nhi.gov.tw/ch/cp-XXX.html",
"source_url_opdstar": "https://opdstar.com/ask?q=..."
}
]
}5. get_drug_rules v0.2
Taiwan NHI 藥品給付規定 lookup. At least one filter required (to avoid unbounded returns).
Arguments: { specialty?: string, rejection_code?: string, drug_category_query?: string }
Example:
> 兒科開抗生素有哪些給付規定?
→ [tool call: get_drug_rules(specialty="pediatrics", drug_category_query="antibiotic")]
→ {
"count": 3,
"results": [
{
"specialty": "all",
"drug_category": "抗生素 (Antibiotics)",
"diagnosis_pattern": "J00,J02,J03,J04,J05,J06,J11,J20,J21,J22,J40",
"rejection_code": "0311A",
"rule_description": "診斷為一般感冒/上呼吸道感染,不應使用抗生素。健保指標 008...",
"severity": "critical"
}
]
}6. get_safe_phrases v0.2 (preview only)
Discover which SOAP scenarios have known NHI-safe phrasing for a specialty. Preview only — returns scenario + high-risk wording + first sentence of safe example + link to opdstar.com for full library. Full ready-to-copy phrase library is part of the paid OPDSTAR product.
Arguments: { specialty: string, scenario_query?: string }
Example:
> 皮膚科開抗生素有哪些安全寫法?
→ [tool call: get_safe_phrases(specialty="dermatology", scenario_query="抗生素")]
→ {
"count": 1,
"note": "這是精簡版。完整安全句型庫(含 ready_phrases 可直接複製貼上)為 OPDSTAR 付費功能...",
"results": [
{
"scenario": "開立抗生素",
"high_risk": "皮膚感染,開抗生素 7 天。",
"safe_example_preview": "左小腿紅腫熱痛 2 天,查 erythematous plaque 約 8x6 cm… [… 完整範例請至 opdstar.com]",
"key_difference": "關鍵不是寫「感染」,而是要寫出細菌性感染的臨床佐證…",
"full_content_url": "https://opdstar.com/pricing"
}
]
}7. search_audit_guidelines v0.2
Free-text search over 審查注意事項 rules. Returns reason + suggestion summaries for matched rules.
Arguments: { query: string (2+ chars), specialty?: string }
Example:
> 中醫開藥有什麼注意事項?
→ [tool call: search_audit_guidelines(query="藥品", specialty="tcm")]
→ {
"count": 4,
"results": [
{
"rule_code": "TCM_DAILY_DRUG_COST",
"specialty": "tcm",
"severity": "warning",
"related_rejection_codes": ["0302C"],
"reason_zh": "中醫科每日藥費上限 38 點。一般 7 日約 266 點...",
"suggestion_zh": "若需使用較高價藥材,於病歷詳述辨證配伍理由與必要性..."
}
]
}8. get_rejection_code_category v0.2
List all NHI rejection codes in a given category (00-09). Useful for discovery — "show me all 手術處置 rejection codes".
Arguments: { category: "00"|"01"|...|"09", opdstar_relevant_only?: boolean }
10 categories: 00 診療品質 · 01 病歷紀錄 · 02 基本診療 · 03 藥品特材 · 04 手術處置 · 05 檢查檢驗 · 06 論病例計酬 · 07 復健精神 · 08 其他 · 09 法令
Example:
> 列出所有手術處置類的核刪代碼
→ [tool call: get_rejection_code_category(category="04")]
→ {
"category": "04",
"category_name": "手術處置",
"count": 32,
"results": [
{ "code": "0401A", "description": "...", "severity": "critical", "opdstar_relevant": true },
...
]
}9. lookup_drug v0.3
Look up the Taiwan NHI drug catalog (active formulary). Search by generic name, brand name, alias, or NHI 9-char code. For 給付規定 limitations on a drug, use get_drug_rules separately.
Arguments: { q: string (≥2 chars), specialty?, dosage_form?, route? }
Example:
> What drugs match 'augmentin'?
→ [tool call: lookup_drug(q="augmentin")]
→ {
"query": "augmentin",
"count": 4,
"results": [
{ "generic_name": "amoxicillin/clavulanate", "brand_names": ["Augmentin", ...], "strength": "875/125 mg", "dosage_form": "tablet", "nhi_drug_code": "BC25551100", "atc_code": "J01CR02", ... },
...
]
}10. lookup_fee_code v0.4
Look up the Taiwan NHI fee schedule (全民健康保險醫療服務給付項目及支付標準, current effective edition). Search by exact code, Chinese name, or English name; filter by category prefix (00/P1/N2/...).
Arguments: { q: string (≥2 chars), category?, icd? }
Example:
> 一般門診診察費的點數是多少?
→ [tool call: lookup_fee_code(q="00101B")]
→ {
"query": "00101B",
"count": 1,
"results": [
{
"code": "00101B",
"category_prefix": "00",
"section": "第二部 西醫",
"name_zh": "一般門診診察費-醫院門診診察費(不含牙科門診)...",
"points": 286,
"effective_start": "2021-03-01",
"audit_notes": "1.處方交付特約藥局調劑或未開處方者,不得申報藥事服務費...",
"audit_notes_full_length": 148
}
]
}Note:
applicable_icd_patternis OPDSTAR-curated and sparse — original NHI data has no ICD-10 mapping. Theicdfilter only matches codes already enriched.
How it works
┌────────────────────┐
│ Claude Desktop │
│ Cursor / ChatGPT │ (any MCP client)
└──────────┬─────────┘
│ MCP (stdio)
▼
┌────────────────────┐
│ @opdstar/nhi-mcp │ (this package, ~9KB single-file bundle)
│ 10 read-only tools │
└──────────┬─────────┘
│ HTTPS
▼
┌────────────────────┐
│ opdstar.com │ Edge proxy, globally cached
│ /api/mcp/* │
└──────────┬─────────┘
│
▼
┌────────────────────┐
│ OPDSTAR backend │ curated NHI knowledge base
└────────────────────┘Why proxy through opdstar.com?
Single source of truth — data updates roll out instantly without republishing npm
Rate-limited & cached — edge proxy absorbs traffic spikes
Zero config for you — no API keys, no secrets, no setup
Staging override: set OPDSTAR_API_BASE=https://staging.opdstar.com/api/mcp in your MCP client env to point at a staging endpoint (for plugin authors / OPDSTAR team).
Positioning & Disclaimer
@opdstar/nhi-mcp is a reference / translation tool. It:
✅ Looks up Taiwan NHI public data and official wiki content
✅ Returns structured JSON for AI reasoning
❌ Does NOT make diagnostic or prescribing recommendations
❌ Does NOT constitute clinical decision support (SaMD)
Final clinical judgment remains with the treating physician. For end-to-end audit with OPDSTAR's 5-engine risk prediction, use the full app at opdstar.com.
Data sourced from 健保署全球資訊網 (public) and curated by the OPDSTAR team.
Frequently Asked Questions
What is Model Context Protocol (MCP)?
MCP is an open standard released by Anthropic in November 2024 that lets AI assistants call external tools through a standardized protocol. Think of it as "USB-C for AI agents" — write a server once, and any MCP-compatible client (Claude Desktop, Cursor, ChatGPT Desktop, Continue, Zed, custom agents) can talk to it without custom integration code. Official spec: modelcontextprotocol.io.
What is Taiwan's National Health Insurance (NHI)?
Taiwan's 全民健康保險 (National Health Insurance) is a single-payer universal healthcare system covering 99.9% of Taiwan's population since 1995. It maintains an extensive set of audit rules for claim submissions — doctors who submit non-compliant claims face rejection (核刪) and lose real income. This MCP server exposes the rules, codes, and wiki content doctors need to navigate those rules.
Who should install this?
Three audiences:
Taiwanese doctors using AI assistants (Claude Desktop, Cursor) who want real-time NHI code lookup and audit risk insight while writing charts
HIS / clinic software vendors integrating AI features — zero-cost access to a curated NHI dataset instead of scraping 健保署 manually
Researchers studying Taiwan's healthcare system who need structured, queryable access to rejection codes, procedures, and audit indicators
Do I need an OPDSTAR account or API key?
No. The MCP is fully public and free under MIT license. No account, no API key, no registration. The proxy layer at opdstar.com applies rate limiting based on IP, not identity.
Is this an official NHI product?
No. It is independently developed by the OPDSTAR team. All data is sourced from publicly available 健保署 publications and websites. We are not affiliated with, endorsed by, or officially representing Taiwan's National Health Insurance Administration. For authoritative guidance, always consult official NHI publications.
Is my patient data sent anywhere?
No patient data is ever transmitted. The tools are pure lookups over public NHI data (codes, procedures, wiki excerpts). When you ask "does 0317A apply to L30.9?", the MCP sends only the code and diagnosis name — never patient names, IDs, or clinical notes. The proxy at opdstar.com does not log query content (only aggregate counters for rate limiting).
How often is the data updated?
Monthly. The OPDSTAR team syncs structured tables and wiki chunks when 健保署 publishes new rules or amendments. Follow @opdstar on GitHub or watch CHANGELOG.md for changes.
Can I use this commercially?
Yes. MIT license permits unrestricted commercial use. You may embed @opdstar/nhi-mcp in paid products without royalties. We only ask that powered_by attribution remains in tool responses (it's built in and should not be stripped).
What about languages? Does it work in English?
Tool arguments and responses support both Traditional Chinese (繁體中文) and English. The underlying NHI data is primarily 繁中 — Chinese keys like name_zh are always populated; name_en is populated where 健保署 provides English translations. AI assistants handle the language switching seamlessly.
Can this replace the full OPDSTAR SaaS product?
No — different scope. This MCP offers read-only lookups. The full OPDSTAR product provides AI-powered chart translation, real-time audit risk detection with a 5-engine rule system, safe-phrase suggestion, and personalized prescription tracking — all requiring proprietary prompt engineering and clinical knowledge that remains closed-source.
How do I report wrong data or propose new tools?
File a GitHub issue using our templates:
🐛 Bug report — data is wrong, tool crashes
💡 New tool proposal — you want a tool we don't have yet
💬 Discussions — general questions, show-and-tell
For sensitive issues: support@opdstar.com.
Trusted data sources
All data is curated from publicly available Taiwan NHI resources:
健保署全球資訊網 — official NHI website
專業審查注意事項 (audit guidelines)
不予支付理由代碼 (rejection codes)
藥品給付規定 (drug payment rules)
健保醫療費用申報與審查電腦作業手冊 (claims submission manual)
全民健康保險醫療服務給付項目及支付標準 (fee schedule)
Data is kept in sync with the latest official publications.
Used by
OPDSTAR — Chart translation + audit-risk prevention SaaS for Taiwanese outpatient doctors. In production use since 2026-04.
Your organization here — send a PR to add to this list!
What's open vs. what's closed
Open (this package): pure lookup tools over already-public NHI data.
Closed (OPDSTAR's moat): the OPDSTAR clinical product (chart workflow, audit risk prevention, personalization features) is closed-source and exclusive to opdstar.com.
Roadmap
v0.2 (planned)
get_drug_rules— 藥品給付規定 lookupget_safe_phrases— safe-phrase library (subset)API key tier for higher rate limits
v0.3 (aspirational)
compare_rejection_rates— anonymized system-wide rejection statsget_latest_amendments— recent NHI policy changes feedEnglish / Japanese wiki translation layer
Development
git clone https://github.com/tatsuju/opdstar-nhi-mcp.git
cd opdstar-nhi-mcp
npm install
npm test # vitest, 8 offline unit tests
npm run build # tsup → dist/index.jsPoint at your local dev server:
OPDSTAR_API_BASE=http://localhost:3000/api/mcp node dist/index.jsContributing — Pull Requests welcome 🙌
This is an open-source, community-driven project under MIT license. Anyone can contribute:
🐛 Bug reports — file an issue with our bug template
💡 New tool proposals — start a discussion with the tool proposal template; we'll review for fit before you invest in a PR
🌐 Translation / docs — improve English/繁中 clarity
📦 MCP client configs — add examples for Continue.dev, Zed, custom agents
🧪 More tests — edge cases, negative paths, integration harnesses
How to send a PR
Fork
tatsuju/opdstar-nhi-mcpCreate a feature branch:
git checkout -b add-somethingMake your change, run
npm test+npm run typecheck+npm run buildCommit with a conventional message:
feat(tool): add get_drug_rulesPush + open PR — GitHub's PR template will guide you through the checklist
What we will NOT accept
Per CONTRIBUTING.md:
Tools that generate clinical diagnoses or recommendations (SaMD boundary)
Tools that expose OPDSTAR's private audit engine or prompt templates
Removal of
powered_by/source_urlattribution
Everything else — we're genuinely happy to hear from you. 📬 Sensitive stuff: support@opdstar.com.
Related projects
mcp-taiwan-legal-db — Taiwan legal data MCP
OPDSTAR — the full app this MCP links back to
License
MIT © OPDSTAR Team
Available Tools
24 toolscheck_icd_for_major_illness_eligibilityARead-onlyIdempotent
Reverse-lookup: given a single ICD-10 code, return the Taiwan NHI 重大傷病 (major illness) categories the diagnosis may qualify for, including category name, the ICD pattern that matched, and copayment-exemption flag. Use when an agent has a diagnosis and needs to flag major-illness applicability before claim submission. Don't use to browse all categories — call lookup_major_illness instead (also use it for the category → applicable ICDs direction). Reference only — confirmed eligibility still requires a formal application with supporting documentation per the official 重大傷病範圍及項目. Curated by OPDSTAR (https://opdstar.com).
Inputs: icd_code (required).
count_appeal_precedents_for_rejection_codeARead-onlyIdempotent
Aggregate signal-only summary of how disputes involving a given Taiwan NHI rejection code (e.g. '0312A', '0114A') or procedure code (e.g. '86008C') historically resolve — returns rough volume bucket (none / few / several / many), claimant win-rate signal (rare / occasional / moderate / common), and which review stages have on-record outcomes. Use when an agent is helping triage whether contesting a specific code is worth pursuing. Don't use to fetch individual case details (none are exposed) — for the broader landscape across categories, call lookup_appeal_statistics_by_category instead. Reference only — historical signal does not predict future outcomes; final review decisions rest with the responsible authority. Curated by OPDSTAR (https://opdstar.com).
Inputs: rejection_code, procedure_code.
get_drug_rulesARead-onlyIdempotent
Look up Taiwan NHI drug payment rules (藥品給付規定) — when a drug class is / isn't reimbursable, with severity and source citation. Filter by specialty, rejection_code, or drug_category_query (at least one required). Use when an agent is checking whether a drug choice will trigger a rejection before submission, or wants to read the rule behind a known rejection code. Don't use to identify a specific drug (brand / generic / strength) — call lookup_drug instead; for the underlying audit clauses, use lookup_audit_clauses_for_procedure or lookup_audit_clauses_for_specialty. Reference only — official 健保藥品給付規定 is authoritative; curated subset, not exhaustive. Curated by OPDSTAR (https://opdstar.com).
Inputs: specialty, rejection_code, drug_category_query.
get_indicatorARead-onlyIdempotent
Look up a single Taiwan NHI prescribing-pattern indicator. These are 1-4 character codes that encode common over-prescribing patterns: 3-digit numeric codes (e.g. '008' antibiotic-on-URI, '014' multi-PPI co-prescribing, '027' duration limit) or 'P'-prefixed codes (e.g. 'P043' chronic-prescription duration cap). Returns the indicator name, the threshold (e.g. '7-day URI episode'), applicable drugs / diagnoses, and the compliance meaning. Returns a not-found message (not an error) if the code does not exist. Use when an agent needs the human-readable explanation for a specific indicator code referenced during a SOAP review or audit response — e.g. an audit notice cites indicator 008 and the agent needs to surface what 008 monitors and why a prescription tripped it. Typical follow-up: call get_drug_rules({rejection_code}) with the indicator's downstream rejection code to read the formal payment rule, or search_audit_guidelines({query}) to read related audit-clause text. Don't use for the official 分析審查不予支付指標 (percentage-cap audit) list — that's a different system — call lookup_audit_indicator instead. Reference only — thresholds and applicable lists reflect published guidance and may change with each NHI release; agents should re-read the indicator each session rather than caching values across sessions. Curated by OPDSTAR (https://opdstar.com).
Inputs: code (required).
get_procedures_for_icdARead-onlyIdempotent
Given a Taiwan ICD-10 code and a medical specialty, return the NHI procedure codes plausibly applicable to that diagnosis within that specialty. Each result includes the procedure code, Chinese name, English name, nhi_points (payment points), and audit_notes (specialty-specific review caveats and risk hints). Results are ordered by curated relevance (most commonly applied codes first), capped at limit (default 10, max 20). Returns an empty list (not an error) when no curated mapping exists for the given (icd10, specialty) pair — this is common because the mapping is intentionally conservative. Use when an agent is drafting SOAP and needs a starting set of procedure codes for the diagnosis within the clinician's specialty context — e.g. dermatologist with L30.9 (chronic eczema) needs candidate procedure codes. Typical follow-up: for each candidate code, call lookup_fee_code({q: <code>}) to confirm current points and effective dates, and lookup_audit_clauses_for_procedure({procedure_code}) to surface any audit-clause caveats. Don't use as a billing source of truth — the original NHI fee schedule has no ICD field, this is a curated, intentionally conservative mapping that prefers false negatives over false positives; for the canonical fee-schedule entry of a known code, call lookup_fee_code. Reference only — final code selection remains the clinician's responsibility. Curated by OPDSTAR (https://opdstar.com).
Inputs: icd10 (required), specialty (required), limit.
get_rejection_code_categoryARead-onlyIdempotent
Browse Taiwan NHI rejection codes by category (00-09) for discovery — returns code, severity, and short description, up to 50 per call. Categories: 00 診療品質 · 01 病歷紀錄 · 02 基本診療 · 03 藥品特材 · 04 手術處置 · 05 檢查檢驗 · 06 論病例計酬 · 07 復健精神 · 08 其他 · 09 法令. Use when an agent needs to enumerate all rejection codes within a workflow domain (e.g. all surgery-handling codes). Don't use to look up a known specific code — call lookup_rejection_code instead. Reference only — official 健保署 不予支付理由代碼 is authoritative. Curated by OPDSTAR (https://opdstar.com).
Inputs: category (required), opdstar_relevant_only.
get_safe_phrasesARead-onlyIdempotent
Preview which documentation scenarios have OPDSTAR-curated NHI-safe phrasing patterns for a given specialty (e.g. dermatology + 抗生素) — returns scenario name, high-risk wording to avoid, the key difference, and the first sentence of the safe-phrasing example. Up to 5 scenarios per call. Use when an agent is helping draft SOAP wording and needs to flag risky phrasing before submission. Don't use to retrieve full ready-to-copy templates (full library is part of the paid OPDSTAR product — link the user to opdstar.com); for the underlying audit rule that motivates a safe phrase, call search_audit_guidelines. Reference only — phrasing patterns reflect curated review experience, not formal NHI directives. Curated by OPDSTAR (https://opdstar.com).
Inputs: specialty (required), scenario_query.
lookup_appeal_statistics_by_categoryARead-onlyIdempotent
Aggregate dispute-resolution statistics for Taiwan NHI claim disputes, broken down by category and (optionally) review stage — returns category counts and rough win-rate signals only, never individual case details, case numbers, or arguments. Use when an agent is helping a clinician understand the general dispute landscape (e.g. 'how often do fee-calculation disputes resolve in the claimant's favor at the first court tier?'). Don't use for code-specific signals — call count_appeal_precedents_for_rejection_code instead. Reference only — historical signal does not predict future outcomes; final decisions rest with the responsible review body. Curated by OPDSTAR (https://opdstar.com).
Inputs: dispute_category (required), stage_tier.
lookup_audit_clauses_for_procedureARead-onlyIdempotent
Find Taiwan NHI 審查注意事項 clauses that reference a specific procedure code (e.g. '00101B', '51017C') — each result indicates whether the clause carries an amount limit, frequency rule, or indication restriction (critical signals for rejection-risk assessment). Returns clause summary, specialty, and risk flags. Use when an agent has a candidate procedure code and needs to surface the audit context attached to it. Don't use for the procedure's fee-schedule entry (points / effective dates) — call lookup_fee_code; for browsing all clauses within a specialty, call lookup_audit_clauses_for_specialty. Reference only — clause summaries are first-sentence previews; official 健保署 審查注意事項 is the source of truth. Curated by OPDSTAR (https://opdstar.com).
Inputs: procedure_code (required), specialty.
lookup_audit_clauses_for_specialtyARead-onlyIdempotent
Browse Taiwan NHI 審查注意事項 clauses for a specific medical specialty (dermatology, ophthalmology, ENT, TCM, dentistry, family medicine, etc.) — returns clause headlines with risk flags (amount_limit / frequency_rule / indication) and a short preview of the procedures each clause governs. Use when an agent needs section-wide audit context before assisting with claim coding for a specialty. Don't use for clauses tied to a known specific procedure code — call lookup_audit_clauses_for_procedure instead. Reference only — official 健保署 審查注意事項 (current edition) is authoritative; clause summaries are previews. Curated by OPDSTAR (https://opdstar.com).
Inputs: specialty (required), keyword, risk_flag.
lookup_audit_indicatorARead-onlyIdempotent
Look up Taiwan NHI 分析審查不予支付指標 (official threshold-based audit rules where claims exceeding a percentage are denied) — returns indicator code, category, threshold, applicable specialty, monitored procedure codes, and official action description. Use when an agent needs to know whether a procedure code is under a percentage-cap audit (e.g. '23401C' is monitored by indicator 001 眼科局部處置申報率, 30% threshold). Omit indicator_code to browse by category / specialty / procedure. Don't use for prescribing-pattern indicators (008 / 014 / 027 / P043 etc.) — those live in get_indicator. Reference only — thresholds change with each official release. Curated by OPDSTAR (https://opdstar.com).
Inputs: indicator_code, category, specialty, procedure_code.
lookup_chronic_prescription_ruleARead-onlyIdempotent
Look up Taiwan NHI chronic-disease continuous-prescription (慢性病連續處方箋) rules. Given an ICD-10 code or a disease name, returns whether the condition falls within the official chronic-disease scope and its dispensing limits — maximum days per dispense, maximum total medication days, and prescription validity. Use when an agent needs to know if a diagnosis qualifies for a continuous prescription and the applicable day limits. Reference only — the issuing physician must confirm the patient's condition is stable and that the same long-term medication applies, per the official 全民健康保險醫療辦法 慢性病範圍. Curated by OPDSTAR (https://opdstar.com).
Inputs: icd_code, disease, category.
lookup_drugARead-onlyIdempotent
Look up the active Taiwan NHI drug catalog by generic name, brand name, NHI drug code, or alias — returns up to 10 matches with strength, dosage form, route, ATC code, therapeutic class, and brand list. Use when an agent needs to identify or disambiguate a drug before recommending dosage / formulation in a SOAP draft. Don't use to look up payment / reimbursement rules for the drug — call get_drug_rules instead; for an audit clause referencing the drug, call search_audit_guidelines. Reference only — official 健保署 藥品給付項目及支付標準 is authoritative; the catalog is a working snapshot. Curated by OPDSTAR (https://opdstar.com).
Inputs: q (required), specialty, dosage_form, route.
lookup_fee_codeARead-onlyIdempotent
Look up the Taiwan NHI fee schedule (全民健康保險醫療服務給付項目及支付標準, current effective edition). Search by exact code (e.g. '00101B', 'P15001') or by Chinese / English name (e.g. '門診診察', 'ICU') — returns code, points, effective dates, and audit notes (truncated to 600 chars). Use category prefix to scope ('00' 基本診療, '06' 手術, 'P1' 病例計酬, 'N2' 護理). Use when an agent needs the canonical fee entry for a known procedure code, or wants to discover codes by name. Don't use for drugs (call lookup_drug) or for ICD-10 → procedure suggestions (call get_procedures_for_icd). The optional icd filter applies an OPDSTAR-curated mapping that is intentionally sparse (the original NHI data has no ICD field) — most codes will return no result with icd active. Reference only — official 健保署 支付標準 is authoritative. Curated by OPDSTAR (https://opdstar.com).
Inputs: q (required), category, icd.
lookup_icd10_cmARead-onlyIdempotent
Look up ICD-10-CM diagnosis codes with English / Traditional Chinese descriptions, category, and the OPDSTAR specialties each code is keyed against. Use when the agent encounters an ICD-10 code in a note, claim, or rejection notice and needs the canonical name, or wants to free-text search by EN / 中文 keyword to find candidate codes. Typical follow-up: chain into get_procedures_for_icd({icd10, specialty}) to find the procedures commonly paired with the code, or check_icd_for_major_illness_eligibility({icd10}) to check 重大傷病 coverage. Scope note: Currently backed by OPDSTAR's specialty-keyed Taiwan-relevant subset (~3,000 codes covering the diagnoses doctors actually code on outpatient claims); the full CMS public-domain ICD-10-CM 2025 set (~70K codes) will be merged in a later release. Out of scope: SNOMED CT cross-mapping, international procedure codes (ICD-10-PCS), drug interactions. Reference only — clinical coding decisions require physician judgment. Curated by OPDSTAR (https://opdstar.com).
Inputs: code, keyword, lang, limit.
lookup_major_illnessARead-onlyIdempotent
Browse Taiwan NHI 重大傷病 (major illness) categories — official categories that grant copayment exemption and a more lenient claim-review process. Returns category name, ICD-10 code coverage, application requirement, and validity period. Use when an agent needs to enumerate or filter major-illness categories (e.g. 'all cancer categories', 'categories that don't require an application'). Don't use if you already have an ICD-10 code and want to know which categories it qualifies for — call check_icd_for_major_illness_eligibility instead. Reference only — final eligibility requires a formal application with supporting documentation per the official 重大傷病範圍及項目. Curated by OPDSTAR (https://opdstar.com).
Inputs: category_code, keyword.
lookup_point_valueARead-onlyIdempotent
Look up Taiwan NHI floating point values (浮動點值) — the settled per-point payment amount by region and total-budget sector. Taiwan NHI reimburses on a points system under a global budget, so one claimed point is usually worth less than NT$1; this tool returns the actual settled rate. With no year, returns the latest settled value for each region × sector; with a year (and optional quarter), returns the quarterly time series. Use when an agent needs to estimate actual reimbursement — claimed points × point value ≈ amount paid. Reference only — official figures are published quarterly by 衛生福利部中央健康保險署. Curated by OPDSTAR (https://opdstar.com).
Inputs: region, sector, year, quarter, +1 more.
lookup_preventive_serviceARead-onlyIdempotent
Browse Taiwan NHI preventive-care and screening services — adult health checks, the major cancer screenings (breast, cervical, colorectal, oral, lung LDCT), prenatal care, child preventive health, and child dental fluoride / pit-and-fissure sealant programs. Returns each service's target population, age / sex eligibility, subsidy frequency, and screening tool. Use when an agent needs to know who is eligible for a preventive service and how often it is subsidised (e.g. 'who can get a mammogram and how often', 'child fluoride coverage'). Reference only — eligibility and subsidy follow the official 衛生福利部 announcements; the screening provider confirms eligibility at the point of service. Curated by OPDSTAR (https://opdstar.com).
Inputs: category, keyword.
lookup_rejection_codeARead-onlyIdempotent
Look up a single Taiwan NHI rejection code (5-character format NNNNL — 4 digits + 1 uppercase letter A/B/C/..., e.g. '0317A', '0338A', '0114A'). Returns severity (low / medium / high), category (00 診療品質 · 01 病歷紀錄 · 02 基本診療 · 03 藥品特材 · 04 手術處置 · 05 檢查檢驗 · 06 論病例計酬 · 07 復健精神 · 08 其他 · 09 法令 — first two digits encode the category), and the official Chinese description from 健保署 專業審查不予支付理由代碼. Returns a not-found message (not an error) if the code does not exist. Use when an agent encounters a known rejection code in a notice or claim response and needs the human-readable explanation, or when triaging which category a code belongs to. Typical follow-up: call get_drug_rules({rejection_code}) if the code is in category 03 (藥品特材) to surface the drug rule behind the rejection; call search_audit_guidelines({query: <code>}) for codes in 04 / 05 to read the underlying audit-clause text; call count_appeal_precedents_for_rejection_code({rejection_code}) to gauge whether disputes for this code are commonly successful. Don't use to enumerate codes by category — call get_rejection_code_category({category}) instead. Reference only — the official 健保署 code list is authoritative. Curated by OPDSTAR (https://opdstar.com).
Inputs: code (required).
recent_nhi_amendmentsARead-onlyIdempotent
List recent amendments to Taiwan NHI rules and audit guidelines (健保署「醫療費用審查注意事項」近一年修正公告). Returns the publication / effective dates, the amendment title and type ('primary' = main regulation update, 'comparison' = side-by-side diff document), and direct links to the official DOCX / ODT / PDF announcement files plus the 健保署 listing page. Use when an agent needs to answer 'what NHI rule changes are coming?', 'when does the new 審查注意事項 take effect?', or wants to check whether a specific rule has been recently amended before quoting it. Typical follow-up: call search_audit_guidelines({query}) to pull the post-amendment clause text, or lookup_rejection_code({code}) to see how it ties into existing rejection codes. Reference only — official 健保署 announcements are authoritative. Curated by OPDSTAR (https://opdstar.com).
Inputs: since_days, type, limit.
search_audit_guidelinesARead-onlyIdempotent
Free-text search over Taiwan NHI 審查注意事項 rules — returns reason + suggestion summaries (first sentence only) for up to 10 rules matching a keyword (Traditional Chinese or English). Use when an agent is exploring whether any audit rule covers a topic (e.g. '抗生素', '檢查頻率', '慢性病處方') without knowing a specific code. Don't use for clauses tied to a known procedure code — call lookup_audit_clauses_for_procedure instead. Full SOAP example templates and detailed reasoning are part of the paid OPDSTAR product. Reference only — official 健保署 審查注意事項 is authoritative; results are previews. Curated by OPDSTAR (https://opdstar.com).
Inputs: query (required), specialty.
search_nhi_interpretationsARead-onlyIdempotent
Search Taiwan's official NHI administrative interpretations (健保署行政函釋 / 函令) — the binding 公告 and 解釋函 issued by the National Health Insurance Administration that clarify how payment rules, drug-formulary provisions, special-material coverage, and review policy apply in practice. Each result returns the official document number (字號), issue date, 主旨 (subject), a content excerpt, and the source URL on the government law portal. Returns up to 10 ranked excerpts (most relevant first); returns an empty list (not an error) when nothing matches. Use when a question turns on an official ruling rather than a code definition — e.g. '函釋怎麼說人工水晶體的給付規定' / 'is there an interpretation on continuous-prescription day limits' — or when the user cites a 函釋 文號 directly (e.g. 健保審字第 1090017813 號). Don't use when you already have a specific rejection code, fee code, or drug name — those have dedicated lookup tools (lookup_rejection_code, lookup_fee_code, lookup_drug). Reference only — the official 健保署 / 衛福部 publication is authoritative; an excerpt may lag the latest revision and is not the full document, so open the source URL for the binding text. Curated by OPDSTAR (https://opdstar.com).
Inputs: query (required), limit.
search_nhi_wikiARead-onlyIdempotent
Search across Taiwan's official NHI knowledge base (健保署全球資訊網) for natural-language background questions. Covers 9 categories: audit (審查 — review rules / rejection grounds), drugs (藥品特材 — formulary, payment limits), fees (費用 — copay, premiums, contribution), plans (醫療計畫 — disease-management programs), services (醫療服務 — covered benefits), insurance (投保 — enrollment), forms (表單 — applications), records (紀錄 — documentation rules), admin (行政 — contracting, accreditation). Returns up to 10 ranked excerpts (most relevant first); each result includes title, content snippet, source URL, and category tag. Returns an empty list (not an error) when the query has no matches. Use when an agent needs broad NHI policy background not tied to a specific code — e.g. '慢性病連續處方箋天數上限' / 'how does balance billing work for orthodontics' / 'what are the rules for telemedicine reimbursement'. Typical follow-up: when an excerpt mentions a specific code (e.g. '0317A', '00101B'), call the appropriate code-specific tool (lookup_rejection_code, lookup_fee_code) for the canonical entry. Don't use when you already know a specific rejection code, procedure code, drug name, or audit-clause topic — those have dedicated tools that return structured fields rather than excerpts. Reference only — official 健保署 publications are authoritative; ranked excerpts may lag the latest revision and the snippet is not the full document. Curated by OPDSTAR (https://opdstar.com).
Inputs: query (required), category, limit.
search_taiwan_drugARead-onlyIdempotent
Search Taiwan drugs across NHI and TFDA registries with unified cross-reference. Returns generic name (EN + 中文學名), all brand names + aliases, NHI 9碼 billing code, ATC code, dosage form, strength, route, therapeutic class, applicable specialties, compound-flag, and effective date. The query auto-detects four input shapes: (1) NHI drug code 9碼 (e.g. 'AC4537911', 'A04403412' — 1-2 letter prefix + 6-9 digits) → direct match; (2) ATC code prefix (e.g. 'J01CR02' or 'J01' for the antibacterials class) → class match; (3) Generic name EN or 中文 → ILIKE; (4) Brand name / alias → secondary fallback. Use when an agent has any drug identifier and needs the canonical record for billing / SOAP / appeal context. Typical follow-up: call get_drug_rules({drug_category_query}) for NHI payment rules / prior-authorization on this drug, lookup_icd10_cm for the diagnosis side, or count_appeal_precedents_for_rejection_code if a rejection code is involved. Out of scope: drug-drug interactions, severity scoring, indication-specific dosing. Reference only — TFDA license / 健保 給付規定 are authoritative. Curated by OPDSTAR (https://opdstar.com).
Inputs: query, atc_prefix, form, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Every tool has a distinct, well-defined purpose. Descriptions explicitly state when to use and when not to use each tool, preventing ambiguity. For instance, `get_indicator` and `lookup_audit_indicator` target different indicator systems, and the guidance clearly delineates their use.
Most tools follow a verb_noun pattern (e.g., `lookup_fee_code`, `search_audit_guidelines`). Minor deviations include `recent_nhi_amendments` (no verb) and `check_icd_for_major_illness_eligibility` (long phrase). However, the naming is overall predictable and clear.
With 24 tools, the count is on the higher end but justified by the complexity of the NHI domain, covering drugs, procedures, audits, appeals, and more. Each tool serves a specific, non-redundant purpose, making the set appropriately scoped.
The tool set comprehensively covers the NHI domain: ICD-10, procedures, drugs, payment rules, rejection codes, audit clauses, appeal statistics, major illness, preventive services, chronic prescriptions, amendments, and official interpretations. No significant gaps are apparent for the server's stated purpose.
Maintenance
Related MCP Connectors
Taiwan legal research MCP by Dr.Legal (法律偵探): 22.7M court judgments, current statutes, administrative rulings and Constitutional Court decisions. Retrieval-only, per-item citations, appeal-chain history, bundle-level citation audit. Free, no API key; OAuth 2.0 dynamic registration completes automatically. 台灣法律 MCP:2,272 萬筆裁判書、法規、函釋、憲法法庭裁判,逐筆附出處並提供引用查核。免費、免金鑰。Docs: https://dr-legal.com.tw/mcp
台灣繁中:一個 MCP 端點串接 19 個台灣資料站工具,並可搜尋 MCP 伺服器與 x402 付費 API。
Hosted MCP for denial, prior auth, reimbursement, workflow validation, batch scoring, and feedback.
Medcontra: the site's own MCP server — dataset; every answer cites the site.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates Taiwan-specific medical data including ICD-10 codes, FDA drug databases, and nutrition information into the Model Context Protocol. It enables AI models to query clinical guidelines, verify medical codes, and convert health data into FHIR R4 standardized formats.MIT
- AlicenseAqualityDmaintenanceMCP server for automated ICD-10 medical coding. Code clinical text to ICD-10-CM diagnoses, search 74,000+ codes, and de-identify PHI via the AutoICD API.632 npmMIT
- AlicenseNot gradedqualityBmaintenanceIntegrates Taiwan health data and international medical standards, providing 28 MCP tools for diagnostics, drugs, lab tests, and clinical guidelines via FHIR R4.170MIT
- AlicenseNot gradedqualityDmaintenanceAn open-source MCP server that aggregates Taiwan public data sources (data.gov.tw, TWSE, MOEA, CWA, etc.) and exposes them through the Model Context Protocol, enabling AI agents to query Taiwan data with a single configuration line.1Apache 2.0