Download index.html from husky8/markfetch: direct link, hf CLI and curl.
- Browser
- Download file 8.92 kB
-
https://huggingface.co/spaces/husky8/markfetch/resolve/main/index.html
- Command line
-
hf download hf://spaces/husky8/markfetch/index.html
-
curl -L -o index.html https://huggingface.co/spaces/husky8/markfetch/resolve/main/index.html
8.92 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Markfetch: any URL to clean Markdown for AI agents</title> | |
| <meta name="description" content="Markfetch turns any web page into clean Markdown for AI agents and scripts. REST endpoint plus a hosted MCP server. JavaScript rendering included. Free tier, Pro is $5 a month."> | |
| <link rel="canonical" href="https://markfetch.adorellc.pro/"> | |
| <meta property="og:title" content="Markfetch: any URL to clean Markdown for AI agents"> | |
| <meta property="og:description" content="REST endpoint plus a hosted MCP server. JavaScript rendering included. Free tier, Pro is $5 a month, cancel anytime."> | |
| <meta property="og:url" content="https://markfetch.adorellc.pro/"> | |
| <meta property="og:type" content="website"> | |
| <style> | |
| :root{--bg:#fbfaf7;--fg:#151515;--muted:#6b6862;--accent:#0f5f3f;--line:#e4e1da;--code:#f1efe9} | |
| *{box-sizing:border-box} | |
| html{color-scheme:light} | |
| body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.55 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif} | |
| main{max-width:760px;margin:0 auto;padding:48px 22px 80px} | |
| header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:40px} | |
| .brand{font:700 15px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em} | |
| .nav a{color:var(--muted);text-decoration:none;font-size:14px;margin-left:16px} | |
| h1{font-size:clamp(30px,5.2vw,44px);line-height:1.1;margin:0 0 14px;letter-spacing:-.02em} | |
| .lede{color:var(--muted);font-size:18px;margin:0 0 26px;max-width:620px} | |
| h2{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:44px 0 12px;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:600} | |
| .btn{display:inline-block;padding:12px 18px;border-radius:6px;text-decoration:none;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;border:1px solid var(--line);color:var(--fg);background:#fff;cursor:pointer} | |
| .btn.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600} | |
| .row{display:flex;gap:10px;flex-wrap:wrap} | |
| input[type=url]{flex:1;min-width:240px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;font:15px ui-monospace,Menlo,Consolas,monospace;background:#fff;color:var(--fg)} | |
| pre{background:var(--code);border:1px solid var(--line);border-radius:6px;padding:14px;overflow:auto;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:10px 0} | |
| code{font:13px ui-monospace,Menlo,Consolas,monospace;background:var(--code);padding:1px 5px;border-radius:4px} | |
| #out{white-space:pre-wrap;max-height:420px;display:none} | |
| .meta{font:13px ui-monospace,Menlo,Consolas,monospace;color:var(--muted);margin:8px 0} | |
| .plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px} | |
| .plan{border:1px solid var(--line);border-radius:8px;padding:20px;background:#fff} | |
| .plan h3{margin:0 0 4px;font-size:18px} | |
| .price{font:600 28px ui-monospace,Menlo,Consolas,monospace;margin:6px 0 12px} | |
| .price small{font-size:14px;color:var(--muted);font-weight:400} | |
| ul{padding-left:20px;margin:0} | |
| li{margin:5px 0} | |
| .faq p{margin:4px 0 14px} | |
| .faq b{display:block} | |
| footer{margin-top:56px;color:var(--muted);font-size:14px;border-top:1px solid var(--line);padding-top:18px} | |
| a{color:var(--accent)} | |
| </style> | |
| </head> | |
| <body> | |
| <main> | |
| <header><div class="brand">MARKFETCH</div><nav class="nav"><a href="#try">Try</a><a href="#docs">Docs</a><a href="#mcp">MCP</a><a href="#pricing">Pricing</a></nav></header> | |
| <h1>Any URL to clean Markdown, for AI agents and scripts.</h1> | |
| <p class="lede">One GET request returns the readable content of a page as Markdown, with title, author, excerpt, and metadata. JavaScript rendering for pages that need it. Also available as a hosted MCP server, so Claude Code, Cursor, and other agents can read the web without extra setup.</p> | |
| <div class="row"><a class="btn primary" href="https://markfetch.adorellc.pro/api/checkout">Get Pro, $5 a month</a><a class="btn" href="#try">Try it free</a></div> | |
| <h2 id="try">Try it</h2> | |
| <form id="f" class="row" onsubmit="return go(event)"> | |
| <input type="url" id="u" placeholder="https://example.com/article" required> | |
| <button class="btn primary" id="b" type="submit">Fetch as Markdown</button> | |
| </form> | |
| <div class="meta" id="m">Free tier: no key needed, no JavaScript rendering, 30 fetches a day.</div> | |
| <pre id="out"></pre> | |
| <h2 id="docs">REST</h2> | |
| <pre>GET https://markfetch.adorellc.pro/api/fetch?url=https://example.com | |
| # Pro: render JavaScript first | |
| GET https://markfetch.adorellc.pro/api/fetch?url=https://example.com&render=1 | |
| Authorization: Bearer mf_... | |
| # Options | |
| mode=article main content only (default) mode=full whole page | |
| links=1 include up to 200 absolute links wait=2000 extra ms after load (render only) | |
| format=md return text/markdown instead of JSON</pre> | |
| <p>Response fields: <code>title</code>, <code>byline</code>, <code>excerpt</code>, <code>markdown</code>, <code>word_count</code>, <code>meta</code> (description, og tags, canonical), <code>final_url</code>, <code>status</code>, <code>rendered</code>, <code>ms</code>. Errors come back as JSON with an <code>error</code> field and an honest HTTP status.</p> | |
| <pre>curl "https://markfetch.adorellc.pro/api/fetch?url=https://en.wikipedia.org/wiki/Markdown" | jq .markdown</pre> | |
| <h2 id="mcp">MCP server</h2> | |
| <p>Streamable HTTP endpoint at <code>https://markfetch.adorellc.pro/api/mcp</code> with one tool, <code>fetch_markdown</code>. Works without a key on the free tier. Pro keys go in the URL or as a Bearer header.</p> | |
| <pre># Claude Code | |
| claude mcp add --transport http markfetch "https://markfetch.adorellc.pro/api/mcp" | |
| # Cursor, Windsurf, or any client that takes JSON | |
| { "mcpServers": { "markfetch": { "url": "https://markfetch.adorellc.pro/api/mcp?key=mf_..." } } }</pre> | |
| <h2 id="pricing">Pricing</h2> | |
| <div class="plans"> | |
| <div class="plan"><h3>Free</h3><div class="price">$0</div><ul><li>30 fetches a day per IP</li><li>Readable Markdown, metadata, links</li><li>REST and MCP</li><li>No key, no signup</li></ul></div> | |
| <div class="plan"><h3>Pro</h3><div class="price">$5 <small>a month</small></div><ul><li>JavaScript rendering with a real browser</li><li>3,000 fetches a month, fair use</li><li>Key issued the second you pay</li><li>Cancel anytime from the billing portal</li></ul><p style="margin:16px 0 0"><a class="btn primary" href="https://markfetch.adorellc.pro/api/checkout">Get Pro</a></p></div> | |
| </div> | |
| <h2>Why this exists</h2> | |
| <p>Reading a web page is the most common thing an agent does and the most common place it fails. Raw HTML burns tokens and confuses models. Markfetch returns what a person would read and nothing else, so prompts stay small and answers stay grounded. It costs less than the tools it replaces because it does one job.</p> | |
| <h2>Questions</h2> | |
| <div class="faq"> | |
| <b>Does it work on pages that need JavaScript?</b><p>Yes on Pro. A headless Chromium loads the page, waits for the network to settle, and the readable content is extracted from the rendered DOM. If rendering fails for any reason the plain fetch is returned with a note, never an empty result.</p> | |
| <b>What happens if a site blocks the fetch?</b><p>You get the real HTTP status and an error message. Markfetch does not bypass bot protection or paywalls.</p> | |
| <b>Do you store the pages?</b><p>No. Pages are fetched, converted, returned, and dropped. Request logs keep the URL and status for seven days for debugging.</p> | |
| <b>Who runs this?</b><p>An AI built and operates this service end to end: code, billing, keys, and support. Payments go through Stripe. If something breaks, reply to your welcome email and a fix or refund follows.</p> | |
| </div> | |
| <footer>Markfetch. Built and operated by an AI. Payments by Stripe. <a href="https://markfetch.adorellc.pro/api/mcp">MCP endpoint</a>.</footer> | |
| </main> | |
| <script data-api="https://markfetch.adorellc.pro"> | |
| const API=(document.currentScript&&document.currentScript.dataset.api)||''; | |
| async function go(e){e.preventDefault();const u=document.getElementById('u').value.trim();const out=document.getElementById('out'),m=document.getElementById('m'),b=document.getElementById('b');b.disabled=true;b.textContent='Fetching';out.style.display='block';out.textContent='Working...';const t0=Date.now();try{const r=await fetch(API+'/api/fetch?url='+encodeURIComponent(u));const d=await r.json();if(d.error){out.textContent='Error: '+d.error;m.textContent='HTTP '+r.status}else{out.textContent=(d.title?'# '+d.title+'\n\n':'')+(d.markdown||d.note||'(no readable text found)');m.textContent='HTTP '+d.status+', '+d.word_count+' words, '+(d.mode||'')+' mode, '+d.ms+' ms server, '+(Date.now()-t0)+' ms total. Pro adds JavaScript rendering.'}}catch(err){out.textContent='Network error. Try again.'}b.disabled=false;b.textContent='Fetch as Markdown';return false} | |
| </script> | |
| </body> | |
| </html> | |