Markdown for Agents
A self-hosted proxy that turns web pages and documents into clean Markdown for AI agents.
Status, in the repository's words: Released; releases follow semver.
What it is
A small FastAPI service that fetches a web page, or a PDF, DOCX, PPTX or XLSX file, for conversion to Markdown.
It starts from the view that AI agents work better with Markdown than with raw HTML.
It has no database, no external state store and no login.
By default it listens on the local machine only (loopback), on port 8090.
What it does today
- Blocks hostile pages: the caller gets HTTP 403 with an empty body.
- Returns suspicious pages marked as untrusted in the frontmatter.
- Wraps untrusted content in an envelope, so the agent can treat it as data.
- The envelope carries a nonce of 16 hex characters that is fresh on every response.
- Every fetch goes through an SSRF guard, so redirects and DNS rebinding cannot reach internal services.
- In URL-path mode only, converts PDF, DOCX, PPTX and XLSX documents with MarkItDown 0.1.8, then applies the same injection scan as for a web page.
- Document conversion runs in a disposable, sandboxed child process with resource limits, seccomp on Linux and no network.
- Renders JavaScript-heavy pages in headless Chromium (Playwright) before extracting the text.
- The injection scan uses 22 deterministic detectors, scored by signal family.
- Links and images that could leak data are defanged, and detectors fail closed.
What it ships
- One FastAPI application with a separate detection engine.
- A sandboxed document worker; the whole service is packaged as a Docker image.
- A health endpoint that returns status, version and the current settings as JSON.
- A stats endpoint that returns request, cache and timing counters as JSON.
- An nginx content-negotiation config for header mode.
- An optional embedding-similarity tier, off by default. Its threshold is uncalibrated: calibrate against your own Ollama before enabling.
- It is not an MCP server: there are no MCP tools, it is a plain HTTP service.
What it needs
- Docker Engine 24+ and the Docker Compose plugin.
- About 2 GB of RAM available to the container.
- Outbound HTTPS from the container to the sites you want to convert.
- Document conversion needs the host kernel setting kernel.yama.ptrace_scope to be 1 or higher.
- On a host without systemd-journald, such as Docker Desktop, the compose log driver has to be overridden.
Install
Copied from the repository's README. This site has not run these commands.
docker compose up -d --build
Limits and known issues, as the repository lists them
As listed on branch main of BulletproofSoftwareAI/bulletproof-markdown-for-agents on 2026-11-30, commit 563e30d: newer than the version described above.
- The service has no authentication of its own.
- Trusted hosts and sidecar mode are not scanned for prompt injection.
- In sidecar mode the backend must have a public address; loopback, private and compose-network backends are refused with 403.
- Known limitation: the injection scan log line still records the URL for any response that scores 10 or more.
- There are no document-specific hidden-text detectors; they are a follow-on.
- The container image has accepted HIGH findings in base operating-system packages for which no fixed version has been published.
Documents in the repository
Where each statement on this page comes from
Read from BulletproofSoftwareAI/bulletproof-markdown-for-agents, branch main, commit 9cd4c73; the limits and known issues from BulletproofSoftwareAI/bulletproof-markdown-for-agents, branch main, commit 563e30d, read on 2026-11-30. File and line for each statement:
- A self-hosted proxy that turns web pages and documents into clean Markdown for AI agents.
README.md:3 - Released; releases follow semver.
README.md:216 - 1.1.5
app/version.py:8 - 2026-11-14
CHANGELOG.md:8 - Apache-2.0
README.md:222 - A small FastAPI service that fetches a web page, or a PDF, DOCX, PPTX or XLSX file, for conversion to Markdown.
README.md:15 - It starts from the view that AI agents work better with Markdown than with raw HTML.
README.md:13 - It has no database, no external state store and no login.
docs/OVERVIEW.md:13 - By default it listens on the local machine only (loopback), on port 8090.
README.md:27 - Blocks hostile pages: the caller gets HTTP 403 with an empty body.
README.md:18 - Returns suspicious pages marked as untrusted in the frontmatter.
README.md:19 - Wraps untrusted content in an envelope, so the agent can treat it as data.
README.md:20 - The envelope carries a nonce of 16 hex characters that is fresh on every response.
README.md:105 - Every fetch goes through an SSRF guard, so redirects and DNS rebinding cannot reach internal services.
README.md:25 - In URL-path mode only, converts PDF, DOCX, PPTX and XLSX documents with MarkItDown 0.1.8, then applies the same injection scan as for a web page.
README.md:115 - Document conversion runs in a disposable, sandboxed child process with resource limits, seccomp on Linux and no network.
CHANGELOG.md:181 - Renders JavaScript-heavy pages in headless Chromium (Playwright) before extracting the text.
README.md:72 - The injection scan uses 22 deterministic detectors, scored by signal family.
CHANGELOG.md:162 - Links and images that could leak data are defanged, and detectors fail closed.
CHANGELOG.md:166 - One FastAPI application with a separate detection engine.
docs/OVERVIEW.md:11 - A sandboxed document worker; the whole service is packaged as a Docker image.
docs/OVERVIEW.md:13 - A health endpoint that returns status, version and the current settings as JSON.
README.md:65 - A stats endpoint that returns request, cache and timing counters as JSON.
README.md:66 - An nginx content-negotiation config for header mode.
README.md:54 - An optional embedding-similarity tier, off by default. Its threshold is uncalibrated: calibrate against your own Ollama before enabling.
docs/CONFIGURATION.md:61 - It is not an MCP server: there are no MCP tools, it is a plain HTTP service.
docs/OVERVIEW.md:73 - Docker Engine 24+ and the Docker Compose plugin.
docs/INSTALL.md:11 - About 2 GB of RAM available to the container.
docs/INSTALL.md:14 - Outbound HTTPS from the container to the sites you want to convert.
docs/INSTALL.md:13 - Document conversion needs the host kernel setting kernel.yama.ptrace_scope to be 1 or higher.
docs/DEPLOYMENT.md:39 - On a host without systemd-journald, such as Docker Desktop, the compose log driver has to be overridden.
docs/DEPLOYMENT.md:29 - The service has no authentication of its own.
docs/INSTALL.md:92 at 563e30d - Trusted hosts and sidecar mode are not scanned for prompt injection.
docs/OVERVIEW.md:30 at 563e30d - In sidecar mode the backend must have a public address; loopback, private and compose-network backends are refused with 403.
README.md:59 at 563e30d - Known limitation: the injection scan log line still records the URL for any response that scores 10 or more.
CHANGELOG.md:59 at 563e30d - There are no document-specific hidden-text detectors; they are a follow-on.
docs/markitdown-spec.md:70 at 563e30d - The container image has accepted HIGH findings in base operating-system packages for which no fixed version has been published.
docs/SECURITY-ACCEPTED-RISK.md:6 at 563e30d - Install section of the README
README.md:29
Bulletproof suite v1.0.0 pins tag v1.1.5, commit 9cd4c73, tagged 2026-11-14. The installer has no build file for it at v1.0.0, so the release images do not carry it.