md-chunk-lite
Split Markdown into heading-aware chunks for RAG, with paths and line numbers
- Pricing
- Open source
- Platforms
- CLI, Windows, macOS
- Runs
- Locally
- Version
- 1.1.1
- Listing updated
- 3 days ago
About md-chunk-lite
md-chunk-lite is an open-source MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.
Chunking here is plain code, not a model, so the same file always yields the same chunks. Each heading starts a new section, a small section becomes one chunk, and a large one is split at blank lines. Code blocks and tables stay whole when they fit, and chunk text is copied straight from the file so line numbers match.
Every chunk is a JSON line with an id such as guide.md#3, the source, a heading path like Garden Guide > Planting > Tomatoes, heading level, GitHub-style anchor, start and end lines, part and parts counters, and a character count. Options set a maximum size, print only the outline, or read from stdin.
It handles Markdown and plain text only, no PDF or Word. Install with pip, Python 3.10 or newer, MIT licensed. Paid options from the same maker: an Apify version at $0.0001 per chunk and a Gumroad tool for PDF, Word and HTML.
Install
Run in a terminal
claude mcp add md-chunk-lite -- uvx md-chunk-liteAdd to claude_desktop_config.json
{
"mcpServers": {
"md-chunk-lite": {
"command": "uvx",
"args": [
"md-chunk-lite"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"md-chunk-lite": {
"command": "uvx",
"args": [
"md-chunk-lite"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"md-chunk-lite": {
"type": "stdio",
"command": "uvx",
"args": [
"md-chunk-lite"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"md-chunk-lite": {
"command": "uvx",
"args": [
"md-chunk-lite"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"md-chunk-lite": {
"command": "uvx",
"args": [
"md-chunk-lite"
]
}
}
}What it does
- Heading-first splitting
- Chunks never mix two sections.
- Whole code and tables
- Blocks are not cut in the middle when they fit.
- Rich chunk metadata
- Heading path, anchor, line range, part counters and size.
- Deterministic output
- No model is involved, so results repeat.
- Outline mode
- Print just the headings with line numbers and sizes.
Good for
- Prepare docs for embeddings and a RAG index
- Build a documentation search bot with linkable anchors
- Check how a Markdown file will be split before indexing
- Chunk many files into one JSONL
Pricing
Open source
MIT licensed; Apify cloud version $0.0001 per chunk
Prices change. Check tidybytetools.github.io before you buy.
md-chunk-lite FAQ
Does it use AI to split text?
No. It is deterministic code.
Can it read PDFs?
No, only Markdown and plain text.
What does each chunk contain?
Id, source, index, heading path, level, anchor, line range, part, parts, size and text.
Is there a paid option?
Apify charges $0.0001 per chunk, and a separate Gumroad tool covers PDF and Word.
Is md-chunk-lite free?
Yes. md-chunk-lite is open source, so you can use and self-host it for free.
How do I add md-chunk-lite to Claude Code?
Run this command in your terminal: claude mcp add md-chunk-lite -- uvx md-chunk-lite
What are the best alternatives to md-chunk-lite?
The closest alternatives to md-chunk-lite are Claude Code Ultimate Guide, ASTra, CARTESIAN ECU, Invoices and SigPen.
Alternatives to md-chunk-lite

Claude Code Ultimate Guide
MCP serverMCP server for searching the Claude Code Ultimate Guide from any MCP client
Runs locally- Open source
- 6.5K GitHub stars
- AI models and LLM tooling

ASTra
MCP serverLet agents read, edit, validate and undo Word .docx files with exact operations
Runs locally- 5 tools
- Freemium
- Files and documents

CARTESIAN ECU
MCP serverCheck and repair ECU and TCU flash-file checksums from Claude (Ultimate plan)
Not checked yet- 5 tools
- Remote
- Paid
- Files and documents
Invoices
MCP serverMCP server that reads supplier invoices and returns data plus DATEV, CSV or Excel files
- 4 tools
- Remote
- Paid
- Files and documents

SigPen
MCP serverMCP server that drafts e-signature documents while you approve every send
Not checked yet- 13 tools
- Remote
- Freemium
- Files and documents

ConvertAudioToText
MCP serverTranscribe audio and video links from Claude or ChatGPT and read the results
Not checked yet- 5 tools
- Remote
- Freemium
- Design and media