korean-docs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KOREAN_DOCS_DB | No | Path to the SQLite index database. Defaults to ~/.local/share/korean-docs-mcp/index.sqlite3. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Searches the user's local Korean documents (HWP, HWPX, PDF, DOCX, XLSX, PPTX, Markdown, text). Call index_documents on a folder once before searching it; calling it again only re-reads files that changed. search uses Korean morpheme analysis, so query with the plain words you are looking for (e.g. "예산 편성 기준"), not with full sentences. Use read_document with a path and chunk number from a search hit to read the surrounding text; tables come back as Markdown tables, with merged cells repeated in every row they span. list_documents shows what is indexed; remove_document takes documents out of the index (never off disk).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| index_documentsA | Index the HWP, HWPX, PDF, DOCX, XLSX, PPTX, Markdown and text files in a folder. Call this once before search can find anything in the folder, and again whenever its files may have changed: only new or modified files are parsed again, and files deleted from the folder are dropped from the index. It reads the files but never changes them; the index is a local SQLite file. The first run over many files takes a while (parsing, and embedding if the server runs with embeddings). Returns how many files were indexed, updated, unchanged or removed, and which files failed to parse and why. |
| searchA | Find the passages in indexed documents that match a query. Use this to answer a question from the user's documents; use list_documents instead to see which documents exist. Korean morpheme analysis drops particles and endings, so "예산을" also finds "예산의". Ranking is BM25; with embeddings enabled, the last quarter of the hits are semantic matches the keyword search missed. Each hit has the passage text (a table is returned whole as a Markdown table, with merged cells repeated in every row they span), its heading, the document path and title, and a chunk number; pass the path and chunk to read_document for the surrounding text. Read-only. If nothing matches, try other or fewer words, or check that the folder was indexed. |
| read_documentA | Read an indexed document as Markdown, from the start, around a search hit, or from an offset. Use after search, when a hit's passage is not enough and you need the text around it, or to read a whole document page by page: when the result has a next_offset, call again with offset=next_offset. The document must have been indexed; the text comes from the index, so re-run index_documents if the file changed. Read-only. |
| list_documentsA | List the documents in the index, sorted by path, with title, size, chunk count and modification time. Use this to see what has been indexed (for example to check that index_documents covered a folder, or to pick a document to read with read_document). To find content inside documents, use search instead. Results are paged: total is the number of matching documents, and when more remain, call again with offset=next_offset. Read-only. |
| remove_documentA | Remove a document, or every document under a folder, from the search index. Use this when a document should no longer appear in search results, for example a file that was moved out of an indexed folder or a folder that should not be searched any more. It deletes index entries only: the files on disk are never touched, and running index_documents on the folder again adds them back. Returns the paths that were removed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct action on the index: list, remove, index, search, and read. The descriptions actively disambiguate by cross-referencing each other (e.g. 'use list_documents instead to see which documents exist', 'use search instead' to find content), leaving no realistic misselection path.
Names follow a clear verb_noun pattern: list_documents, remove_document, index_documents, read_document. The one deviation is 'search', a bare verb with no object, whereas 'search_documents' would complete the pattern; also singular/plural noun forms are mixed but readably so.
Five tools exactly cover the lifecycle of a document index: ingest, query, read, enumerate, and purge. Nothing feels padded or missing at the count level; each tool earns its place.
Index, search, read, list and remove cover the core loop, including a re-index path via index_documents. Minor gaps: indexing is folder-only with no single-file option, and there is no status/stats or 'what changed since last index' tool beyond list_documents output.