Skip to main content

Distill MCP server

M8ven Score CI PyPI Python 3.10+ License: MIT

Give your AI agent clean Markdown from any web page: the main content only, without navigation, ads or scripts. Distill honours robots.txt and AI opt-outs.

The server is open source (MIT). It calls the Distill API, which is paid, with a free plan.

  • You use your own key, from RapidAPI or api.market.
  • Every tool call is one request on your plan.
  • The free Basic plan has 15 requests a month, with a hard limit, so it never runs up a bill.

1. Get a key

marketplace
RapidAPI plans
api.market store

2. Add the server to your MCP client

The server runs locally over stdio with uv. Put your key in its environment.

JSON configuration (Claude Desktop, Cursor, VS Code and most clients):

{
  "mcpServers": {
    "distill": {
      "command": "uvx",
      "args": ["--from", "hybridforgelab-distill-mcp", "distill-mcp"],
      "env": { "RAPIDAPI_KEY": "your-rapidapi-key" }
    }
  }
}

Claude Code:

claude mcp add distill --env RAPIDAPI_KEY=your-rapidapi-key -- uvx --from hybridforgelab-distill-mcp distill-mcp

Environment

variable meaning
RAPIDAPI_KEY your RapidAPI key
API_MARKET_KEY your api.market key, used when RAPIDAPI_KEY is not set
HFL_MARKETPLACE rapidapi or apimarket, when both keys are set

Without a key the server still starts. The first tool call then explains where to get one.

Also listed on Glama:

distill-mcp on Glama

3. Tools

tool what it does
fetch_markdown(url, max_chars=20000, include_links=True, include_images=False, include_tables=True) fetches the page and returns its main content as Markdown, with the title, author, date and language
html_to_markdown(html, base_url=None, …) the same, for HTML you already have; nothing is fetched

When a site refuses (robots.txt, a noai directive, bot protection), status says so and a note asks the agent to respect it. Don't fetch the page another way: the terms forbid it.

status is ok on success. Other values (robots_txt, opted_out, blocked, not_html, http_error, unreachable) explain why there is no content.

Every tool returns the API's JSON response.

  • When the marketplace reports it, quota_remaining is added: the requests left on your plan this month.
  • Errors are explained in plain words, with what to do next:
    • key refused, with the link to subscribe;
    • quota reached, with the plans;
    • input the API couldn't process, with the API's reason.

Privacy

  • Local files are read only when a tool is given their path. They are sent to the API for that one request.
  • The API processes inputs in memory and doesn't store them. See the privacy policy.
  • Your key is only sent to the marketplace you chose.

Limits

  • html up to 5 MB.
  • Only HTML pages; PDFs and other files are refused (use Unfold for documents).
  • The server needs Python 3.10+ (uv installs it for you).

Development

uv venv && uv pip install -e ".[dev]"
.venv/bin/pytest            # unit tests, no network; 100% coverage required
.venv/bin/ruff check src tests scripts

scripts/e2e_stdio.py distill runs the server over stdio, as a client would, and calls its tools against the real API. It needs RAPIDAPI_KEY or API_MARKET_KEY.

Licence

MIT. Distill itself is a paid API with a free plan, run by Hybrid Forge Lab.

Metadata

Release files for hybridforgelab-distill-mcp 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hybridforgelab-distill-mcp 0.2.3
File Size Uploaded Provenance Actions
hybridforgelab_distill_mcp-0.2.3.tar.gz 12.5 kB With provenance Details for hybridforgelab_distill_mcp-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hybridforgelab-distill-mcp 0.2.3
File Interpreter ABI Platform Actions
hybridforgelab_distill_mcp-0.2.3-py3-none-any.whl Python 3 none any Details for hybridforgelab_distill_mcp-0.2.3-py3-none-any.whl

Total release size: 20.7 kB

Release files / hybridforgelab_distill_mcp-0.2.3.tar.gz

Download URL hybridforgelab_distill_mcp-0.2.3.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
42c6249f4d8c75a64283d5fd654defa5bfe7c4070d8334747510e8a043f51fcf
BLAKE2b-256 checksum
How to use checksums
6cdfa70a8ac7300cee7a18e4cfa498e64241274fdd2d70bef286e523fb52b6f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / hybridforgelab_distill_mcp-0.2.3-py3-none-any.whl

Download URL hybridforgelab_distill_mcp-0.2.3-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
519795d9fd1aafd76fc4ba88b1d3d77096da3dbdb264ba4e90e59e5f6d38b7cf
BLAKE2b-256 checksum
How to use checksums
bbbfb8f63607f18829d4adde44b88e7f78765642051a88f0ab628057f2143ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for hybridforgelab-distill-mcp 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hybridforgelab_distill_mcp-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page