Gnosis-markdown
gnosis-markdown
Prove where every document came from.
Web → clean, RAG-ready Markdown — with proof of origin baked into every byte.
Markdown is a projection; the raw bytes + WARC are the source of truth.
For RAG engineers, compliance & data-governance teams, and security-sensitive researchers who need to prove — not just assume — where a document came from, gnosis-markdown fetches and crawls any page into LLM-ready Markdown while stamping every file with byte-level SHA-256, WARC archival, and Ed25519 signatures you can verify independently.
Byte-level provenance. Re-fetchable. Re-verifiable. No sidecar bookkeeping.
It started with an audit. I tested my own scraper against a page I'd written, and its "completeness" metric reported 106% retention on a document that had lost a third of its text. The number was arithmetically valid; every test was green. The fix — and the open problem it exposed — are in the self-audit and spec §4.4.
Known limitations, stated plainly:
retention_ratiomeasures how much text survived extraction, not which text (a single dropped table in a long document barely moves it — see §4.4 of the spec). JS rendering is opt-in via a sidecar. The SSRF guard covers direct connections, not proxies. Full disclosure in SECURITY.md.
Why gnosis-markdown
The citation/provenance layer for LLM pipelines — not another scraper.
You can scrape the web with a dozen tools. You can only prove where a document came from with one. gnosis-markdown turns every fetch into an auditable Capture Record: hash the bytes, archive the raw response, record the consent signals, and sign the result — so the document in your RAG index is traceable to the bytes on the wire.
Firecrawl, Crawl4AI and Jina Reader win on speed, scale and hosting. gnosis-markdown doesn't compete there — it wins on auditability, the one axis none of them ship as a first-class feature.
The honest comparison
This table is deliberately not a feature matrix. It claims only the provenance / audit / consent / signing surface gnosis-markdown ships in its own tree — and nothing about speed, scale, or hosting, where we do not claim to compete.
Audit-surface capability | gnosis-markdown | Firecrawl | Crawl4AI | Jina Reader |
| ✅ | ❌ | ❌ | ❌ |
| ✅ | ⚠️ | ⚠️ | ❌ |
WARC archival + content-addressed store (replay via pywb) | ✅ | ❌ | ❌ | ❌ |
Ed25519 seal of origin (sign + pinned-key verify) | ✅ | ❌ | ❌ | ❌ |
ai.txt / llms.txt consent recording per fetch | ✅ | ❌ | ❌ | ❌ |
Deny-overrides compliance policy engine + | ✅ | ❌ | ❌ | ❌ |
IP-pinned SSRF guard (closes DNS-rebinding TOCTOU) | ✅ | ➖ | ❌ | ➖ |
Per-job Data Card ( | ✅ | ❌ | ❌ | ❌ |
Versioned, machine-readable Capture Record spec | ✅ | ❌ | ❌ | ❌ |
Legend: ✅ first-class, shipped in-tree and verifiable · ⚠️ partial / not the same thing · ❌ not offered as a documented feature · ➖ opaque (managed service; behavior not verifiable in a self-hosted deployment).
As of September 2026. gnosis-markdown claims are verifiable against this
repository (--sign, --warc, --profile, gnosis-keygen, gnosis-verify).
Competitor columns reflect their public docs at time of writing — re-verify
each project against its own repository before relying on this table.
Firecrawl and Jina Reader are hosted services: some server-side behavior
(e.g. SSRF handling) exists but cannot be verified by a third party in a
self-hosted build, hence ➖.
Sources (verified 2026-09-04): gnosis-markdown — 280-test suite and the Capture Record spec · Firecrawl — docs.firecrawl.dev · Crawl4AI — github.com/unclecode/crawl4ai · Jina Reader — jina.ai/reader.
Related MCP server: AIMLPM/markcrawl
Verify it yourself
The provenance claim is the product. After a fetch:
gnosis https://docs.python.org/3/tutorial/ -o out/ --warc
# One command: extract the hash from the frontmatter and re-verify the stored body.
h=$(sed -n 's/^bytes_sha256: *//p' out/*.md | head -1); printf '%s %s\n' "$h" "out/.gnosis-store/$h" | shasum -a 256 -c -
# prints: <hash>: OKEvery markdown file is re-fetchable and re-verifiable — no sidecar bookkeeping.
Reproducible benchmark evidence: see BENCHMARKS.md.
Quick start
Requires Python 3.12+.
pip install gnosis-markdown
# One page → one markdown file (written to ./ by default; use -o to change it)
gnosis https://docs.python.org/3/tutorial/
# Crawl an entire section
gnosis https://docs.python.org/3/tutorial/ --all -o ./python-docs/
# Archive the raw bytes to WARC + a content-addressed store, and sign the record
gnosis https://docs.python.org/3/tutorial/ --warc --sign --sign-key key.pem
# Emit per-chunk citation manifests for RAG
gnosis https://docs.example.com --chunk
# Export with provenance (JSON / JSONL / Parquet)
gnosis https://docs.example.com --format json
# Evaluate yourself against a corpus (one URL per line)
printf 'https://docs.python.org/3/\nhttps://example.com/\n' > urls.txt
gnosis-bench --urls urls.txt
# Convert a PDF/Office doc to Markdown (pip install gnosis-markdown[docs])
gnosis-doc report.pdf -o report.mdJS rendering is opt-in via a sidecar binary (default obscura); install the
Obscura binary, then
gnosis https://my-spa.example --render (or set render.engine in config).
Features
Provenance & audit — the moat
bytes_sha256— SHA-256 of the response body bytes (after content decoding). You hash the bytes, not the derived text.content_hash— SHA-256 of the emitted Markdown, so transforms are auditable too.WARC archival (
--warc) — WARC-grade evidence, replayable via pywb, plus a content-addressed store keyed onbytes_sha256. Every file is re-fetchable and re-verifiable — no sidecar bookkeeping.Ed25519 signing — seal of origin —
--signcryptographically signs each record;gnosis-keygenmints keypairs andgnosis-verifychecks them against a pinned key. Prove a document came from a capture you made, untouched.Data cards — every scrape/crawl job writes a
data-card.json: sources, sizes, licenses encountered, ai.txt/llms.txt coverage, and compliance decisions — one artifact an auditor reads instead of opening every file.
Consent & compliance policy
ai.txt / llms.txt consent recording — a host's
ai.txtdirectives andllms.txtpresence are captured into the frontmatter of every affected file.Compliance policy engine — per-page
allow_if/deny_ifrules with deny-overrides semantics, matched on license, ai.txt directives, and URL path. Decisions are recorded in the frontmatter and data card, not just applied.--profilepresets —strict-optout(block training/data opt-outs andDisallow:paths) andopen-only(permissive/open licenses only).
ai.txt is advisory, not enforced by default. gnosis records a site's ai.txt opt-out but does not, by default, refuse to scrape. To stop scraping at opt-outs, use
--profile strict-optoutor an explicitdeny_ifrule. "We record the opt-out and scrape anyway" is exactly the behavior a regulator will ask about — decide it deliberately.
Security
IP-pinned SSRF guard — blocks loopback, RFC1918, link-local, multicast, CGNAT/6to4/Teredo/NAT64, and every redirect hop — closing the DNS-rebinding TOCTOU by resolving once, validating every address, and dialing only pinned IPs (TLS SNI still uses the hostname, so pinning never weakens TLS).
robots.txt + politeness respected (per-host rate limiting,
Crawl-delaycapped), fail-open on errors.Auth/custom headers are sent only to the original origin — never replayed to cross-origin redirect targets.
Secrets via
${ENV_VAR}— keep credentials out of config files and shell history.
Extraction & output
Clean, main-content Markdown with valid GFM tables, metadata extraction, and boilerplate stripping — plus a
retention_ratio/stripped_elements/low_contentaudit trail over the transform itself.Token-aware chunking (
--chunk) — stable chunk IDs, heading paths, and exact byte offsets in a per-page.chunks.jsoncitation manifest.Multi-format export —
--format json|jsonl|parquet, each record carrying full provenance.llms.txt/llms-full.txtemission on every crawl.
Crawling at scale
Incremental crawl + conditional GET —
If-None-Match/304skip unchanged downloads; a hash-native checkpoint makes--allresumable, growing pastmax_pagesacross runs.
Integrations
MCP server (
gnosis-mcp) — expose gnosis as an MCPfetch_and_converttool that returns provenance-stamped Markdown ([mcp]extra).LlamaIndex reader and LangChain document loader — return provenance- stamped
Documents ([llamaindex]/[langchain]extras).Plugin hooks —
pre_fetch/post_fetch/post_processfor custom auth, filtering, and post-processing.Companion CLIs —
gnosis-bench(reproducible scorecard),gnosis-doc(PDF/Office → Markdown),gnosis-keygen/gnosis-verify(signing).
Provenance: the contract
The full machine-readable contract — every field, its exact semantics, and conformance rules — is in the Capture Record Specification.
---
title: Quickstart
url: https://docs.example.com/quickstart
fetched_at: '2026-09-02T08:41:44Z'
content_hash: 1549512c...16fd # SHA-256 of the markdown body
bytes_sha256: 85052df6...bcb31 # SHA-256 of the response body bytes
status_code: 200
generator: gnosis/2.2.0
etag: '"61e917f4..."'
last_modified: Fri, 31 Jul 2026 16:07:37 GMT
---Standard YAML, parseable by python-frontmatter, Jekyll, Hugo, Obsidian, and
any downstream pipeline. Opt out with --no-frontmatter.
CLI reference
gnosis URL [OPTIONS]Flag | Description |
| Crawl all child pages under the URL path |
| Discover and count pages only (requires |
| Output directory (default |
| YAML configuration file |
| Overwrite existing files |
| Suppress / show diagnostics |
| Write bare markdown (no provenance) |
| Extra constant frontmatter field (repeatable) |
| Extra request header (repeatable) |
| Bearer token from environment variable |
| HTTP Basic username (requires |
| HTTP Basic password/token from environment variable |
| Bypass the SSRF guard (opt-in) |
| Archive raw bytes to WARC + content-addressed store |
| Render pages with the configured JS renderer |
| Write per-chunk citation manifests ( |
| Treat URL as a sitemap.xml and list its page URLs |
| Index output into QMD (requires |
| Cryptographically sign the output (Ed25519 seal of origin) |
| Ed25519 private key (PEM) for |
| Also export documents (with provenance) |
| Compliance preset: |
Also available: gnosis-bench (reproducible scorecard), gnosis-doc
(document → Markdown), gnosis-keygen (generate a signing keypair),
gnosis-verify (verify a signed document), and gnosis-mcp (MCP server).
Installation
pip install gnosis-markdown # core
pip install 'gnosis-markdown[sign]' # Ed25519 signing (cryptography)
pip install 'gnosis-markdown[parquet]' # Parquet export (pyarrow)
pip install 'gnosis-markdown[mcp]' # MCP server
pip install 'gnosis-markdown[llamaindex]' # LlamaIndex reader
pip install 'gnosis-markdown[langchain]' # LangChain loader
pip install 'gnosis-markdown[docs]' # document conversion (MarkItDown)
pip install 'gnosis-markdown[qmd]' # QMD vector-DB indexingRequires Python 3.12+. See
gnosis/config/default.yaml for the full
configuration reference.
Development
git clone https://github.com/SHCV-it/gnosis.git
cd gnosis
pip install -e '.[test]'
python -m pytest tests/ -q # offline suite (localhost fixtures)Contributing
Contributions are welcome — open an issue first to discuss. Report security issues privately (see SECURITY). See ROADMAP.md for the project plan.
License
MIT — see LICENSE.
Authors: Steffen Hoehne & Ali Zahid Raja, SHCV.IT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Clean Markdown and AI-readability scoring for any URL. Built for AI agents.
11Fetch any URL and get clean Markdown. Web scraping for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceFast, token-efficient web content extraction tool that converts websites to clean Markdown for AI agents, featuring smart caching, content extraction with Mozilla Readability, and polite crawling capabilities.1534161MIT
- AlicenseAqualityCmaintenanceCrawl any website into clean Markdown, search through pages, read full content, and extract structured data using OpenAI, Claude, Gemini, or Grok — with auto-citation and resume support.53MIT
- AlicenseAqualityBmaintenanceEnables AI agents to read web pages reliably, returning clean markdown content, hyperlinks, and metadata without navigation or ad noise.315MIT
- AlicenseAqualityCmaintenanceEnables AI agents to fetch any web page as clean markdown or screenshot it, turning URLs into LLM-ready context.211MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SHCV-it/gnosis'
If you have feedback or need assistance with the MCP directory API, please join our Discord server