docxtract
Python documentation crawler that extracts compact, clean Markdown for LLM context, with CLI, web UI, and MCP server.
At a Glance
Self-hosted docxtract core (CLI, Web UI, MCP server) distributed under the Apache-2.0 License; install via pip.
Engagement
Available On
Listed Dec 2026
About docxtract
docxtract is an Apache-2.0 licensed Python toolkit that crawls documentation sites and course portals and converts them into compact Markdown for use as LLM context. It ships as a CLI, a local web UI, and a stdio MCP server, and can optionally synthesize crawled content with a user-supplied LLM.
What It Is
docxtract is a documentation crawler and Markdown extractor. It strips boilerplate such as navigation menus, footers, and cookie banners, while keeping code blocks, YAML schemas, tables, and video embeds (Mux, Loom, YouTube). The README states it removes 70%+ of page noise and cites an example reducing roughly 115,000 raw HTML tokens to about 18,000 Markdown tokens.
Workflow and Outputs
You install it with pip install docxtract-ai, then either run docxtract ui to open a web UI at localhost:7860 or use CLI commands: test-llm to check an endpoint, crawl to pull a documentation site to an output folder at a chosen depth, and synthesize to build a master_review.md. Synthesis runs in three stages: document distillation, executive synthesis, and master compendium assembly.
Bring Your Own LLM
The synthesis step uses an OpenAI-compatible client layer that works with llama.cpp, Ollama, LM Studio, vLLM, and cloud providers such as OpenAI and Groq. The README says it includes safeguards against token exhaustion with thinking models such as DeepSeek-R1.
MCP Integration
The built-in MCP server can be added to Claude Desktop, Cursor, or Windsurf with the command docxtract mcp. It exposes crawl_docs, extract_page, and synthesize_docs tools so an assistant can crawl portals, extract single pages, or synthesize folders of docs from inside the IDE. A Google Colab notebook is also provided.
Collections
Popular collections
- Frameworks
Collection by @joemseifi
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
- Let Your Agents Talk to Each Other
Collection by @leftchannel
- See What Your Agent Is Doing remix
Collection by @joemseifi
Add docxtract to one of your collections.
Community Discussions
Be the first to start a conversation about docxtract
Share your experience with docxtract, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted docxtract core (CLI, Web UI, MCP server) distributed under the Apache-2.0 License; install via pip.
- Apache-2.0 licensed core
- CLI, Web UI (localhost:7860) and native stdio MCP server
- Install via pip install docxtract-ai
- BYOLLM synthesis uses user's own local or cloud LLM endpoint (external cost, not sold by the tool)
Capabilities
Key Features
- Documentation site crawling to clean Markdown
- Boilerplate removal (navbars, footers, cookie banners)
- Preserves code blocks, YAML, tables, and video embeds
- Three-stage synthesis into master_review.md
- BYOLLM support for local and cloud endpoints
- Token exhaustion safeguards for thinking models
- Web UI at localhost:7860
- Native stdio MCP server
- Google Colab notebook
