AI Proofreads Your Official Documents — GongMun Doctor MCP — 100% local Korean official document proofreading & generation. Free and open source.

🏛 22B Labs · Public Administration Open Source

AI Proofreads Your Official Documents — Without Sending Them Anywhere

GongMun Doctor MCP — 100% local Korean official document proofreading & generation. Free and open source.

Anyone who writes Korean official documents, business reports, or inter-department correspondence knows this problem. After drafting, you want to double-check spelling and formal style — but generic spell-checkers don't know Korean official document conventions. Asking a colleague every time isn't ideal either.

GongMun Doctor MCP connects to Claude or Codex to automate proofreading and document generation. Say "proofread this document" and three correction layers apply automatically: spelling, grammar, and official document style. It's built for anyone who writes in Korean official document format — government staff, public institution employees, corporate teams, administrative professionals, and beginners.

"Korean official documents have their own grammar rules.
GongMun Doctor corrects what generic spell-checkers miss.
Just connect to Claude or Codex and talk."

How It Works

⚙️ Architecture
🖥️
Correction Rule Engine — Local Spelling, grammar, and style rules run on your PC
🤖
AI Client — Claude / Codex Document content is sent to the connected AI service
🔑
No Extra API Keys GongMun Doctor itself needs no cloud credentials
📋
50 Templates — Built-in Local Document templates work without any network connection
📌 Note — When proofreading, document content is sent to the connected AI service (Claude, Codex, etc.). For sensitive documents, check the privacy policy of the AI service you use.

3-Layer Correction Rules

This is different from a general spell-checker. Korean official documents have their own grammar. Three layers apply in sequence.

L1 · SPELLING
Spacing & Spelling
General + official document compound word rules
"compound-word spacing example" -> "space the official notice term"
L2 · GRAMMAR
Particle Errors
Official docs prohibit dual-particle notation
"dual-particle placeholder" -> "single-particle form"
L3 · OFFICIAL STYLE
Administrative Manual
Corrections per official document style guide
"remove the trailing comma" -> "official-document form"

50 Built-in Administrative Templates

Ready-to-use templates across 6 categories — for government staff, corporate teams, administrative professionals, and anyone writing in Korean official document format.

📄 General Admin
15 types
Work cooperation requests, notices, replies, reports, data requests...
🔍 Audit
5 types
Audit result notices, corrective action requests, inspection notices...
👤 Civil Affairs
5 types
Civil complaint replies, processing period extensions, transfers...
🏗 Construction
10 types
Construction start/completion notices, design change requests...
👔 HR
5 types
Business trip reports, leave usage reports, concurrent job permits...
📦 Procurement
10 types
Bid announcements, award notices, contract requests, subsidy applications...

Sample Generated Document

# Work Cooperation Request — auto-generated from template Recipient: Director of Urban Construction, OO City Via: Administrative Planning Office Subject: Request for cooperation on the urban planning amendment review 1. Related document: Urban Planning Division-1234 (2026.03.10.) 2. We request your department's cooperation in reviewing the proposed urban planning amendment. 3. Requested action: Submit review comments by April 10, 2026. Attachment: Reference materials, 1 file. End.

10 MCP Tools

ToolDescription
correct_documentCorrect a single document (.hwpx/.hwp)
correct_documents_in_folderBatch correct all documents in a folder
list_rulesList correction rules
get_correction_reportRead correction report
preview_text_correctionsPreview corrections without touching files
list_document_templatesList administrative document templates
match_document_templatesSearch templates by keyword
get_template_variablesShow required template variables
render_document_templateRender template to generate document
get_server_infoServer info

Getting Started

⚠️ Python 3.12 or 3.13 recommended — Python 3.14 may have lxml build issues.
# 1. Clone git clone https://github.com/sinmb79/GongMun-Doctor-MCP.git cd GongMun-Doctor-MCP # 2. Install dependencies python -m pip install "mcp[cli]>=1.0,<2" python -m pip install -e . --no-deps # 3. Install HWPX runtime (for actual document correction) python -m pip install "python-hwpx>=2.8.0"
💡 Connect via Codex (simplest)

codex mcp add gongmun-doctor -- python -m gongmun_doctor.mcp.server

💡 Connect via Claude Code

claude mcp add --transport stdio gongmun-doctor -- python -m gongmun_doctor.mcp.server

FAQ

Q: The server starts but document correction doesn't work.
Actual .hwpx correction requires the python-hwpx runtime. Run: pip install "python-hwpx>=2.8.0"
Q: Do documents get sent to an AI server?
No. In default mode, documents never leave your PC. All corrections run locally. Cloud LLM analysis is an opt-in extension.
Q: Does it support .hwp (older format)?
Yes, both .hwpx and .hwp are supported.
Q: Claude Desktop connection doesn't work.
Primary support targets are Codex and Claude Code. Claude Desktop works via manual stdio — see examples/claude_desktop_config.json.

Get Started on GitHub

MIT License · Completely Free · 10 MCP Tools · 50 Templates
Python 3.12+ · Codex / Claude Code / Claude Desktop

🔗 View on GitHub
#GongMunDoctor #MCP #KoreanOfficialDocs #DocumentProofreading #HWP #LocalAI #OpenSource #PublicAdministration #22BLabs #The4thPath
22
22B Labs · The 4th Path GitHub: sinmb79 · the4thpath.com
The 4th Path: ⟨H⊕A⟩ ↦ Ω — Human × AI → a better world.

Comments

Popular Now

Paperclip AI Review: "If Agents Are Employees, This Is the Company"

oh-my-openagent (OmO) — Full Review: "The Multi-Model Harness That Escaped Claude's Prison"

GitHub's VS Code BYOK move matters more than it looks