A local document indexer MCP (Model Context Protocol) server written in Rust. Enables semantic search over PDF, Excel, SQL/PL-SQL, Markdown, and HTML files using Qdrant vector database and Voyage AI embeddings. Designed for integration with Claude Code CLI and other MCP-compatible tools.
Local document indexer MCP server for semantic search over PDF, Excel, SQL, Markdown, and HTML files using Qdrant and Voyage AI embeddings.
ดาว
2
เครื่องมือ
—
อัปไทม์
—
基于 Rust 编写的本地文档索引 MCP(模型上下文协议)服务器。使用 Qdrant 向量数据库和 Voyage AI 嵌入模型,支持对 PDF、Excel、SQL/PL-SQL、Markdown 和 HTML 文件进行语义搜索。专为 Claude Code CLI 及其他 MCP 兼容工具集成设计。
# Run all tests
cargo test
# Run tests with output
cargo test -- --nocapture
# Run specific test module
cargo test parsers::pdf::tests
cargo test parsers::excel::tests
cargo test parsers::sql::tests
Running
Start Qdrant:
./qdrant
Run the MCP server:
cargo run --release
The server communicates via stdio following the MCP protocol.
MCP Tools
Tool
Description
index_document
Index a single document file
index_directory
Recursively index all supported files in configured subdirectories
search_documents
Semantic search across indexed documents
delete_document
Remove a document from the index
get_stats
Get index statistics
Supported File Types
Extension
Parser
Notes
.pdf
pdftotext
Full Unicode support
.xlsx, .xls, .xlsm, .ods
calamine
All sheets parsed
.sql, .pls, .pks, .pkb
SQL Parser
PL/SQL object extraction
.md, .markdown
Markdown Parser
Section-aware chunking
.html, .htm
HTML Parser
UI text extraction
Integration with Claude Code CLI
Step 1: Build the server
cd /path/to/doc-indexer-mcp
cargo build --release
Step 2: Configure Claude Code CLI
Add the MCP server to your Claude Code configuration file ~/.claude.json:
Each parser in src/parsers/ implements intelligent chunking for its document type. You can customize the chunking behavior by modifying the section markers and patterns.
PDF Parser (src/parsers/pdf.rs)
The PDF parser uses section markers to split documents into logical chunks:
// Major section markers - customize for your document format
const MAJOR_SECTION_MARKERS: &[&str] = &[
"【Initial Display】", "【On Display】", "【On Save】",
// Add your own section markers here
];
// Sub-section headers
const SUB_SECTION_HEADERS: &[&str] = &[
"Action Definition", "Screen Definition", "Error Check",
// Add your own sub-section patterns
];
Key functions to customize:
classify_line() - Determines line type (section header, content, etc.)
rows_to_markdown() - Converts rows to searchable text
HTML Parser (src/parsers/html.rs)
The HTML parser extracts UI text from web application snapshots:
// CSS class patterns to extract text from
let patterns = [
("title", "ui-dialog-title"),
("button", "a-Button-label"),
("column", "a-GV-headerLabel"),
// Add patterns matching your UI framework
];
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
Doc Indexer ต้องใช้ API key ไหม?
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Doc Indexer ใช้ทรานสปอร์ตแบบใด?
Doc Indexer ทำงานแบบโลคัลผ่าน stdio
Doc Indexer ถูกตรวจสอบล่าสุดเมื่อใด?
ตรวจสอบล่าสุดเมื่อ 2026-10-28 Local document indexer MCP server for semantic search over PDF, Excel, SQL, Markdown, and HTML files using Qdrant and Voyage AI embeddings.