MarkdownScribe does the Markdown work in one API call: parse frontmatter, build a TOC, lint, format, render Mermaid to SVG, convert any URL to Markdown. Pay per credit.

Six operations behind one key, one error format and one price list. Built for agents that work in Markdown, and for the people who approve what the agent picked.

Get an API keyRead the docs

What it does

URL to Markdown

Send a URL, get the page back as Markdown. Pages that need JavaScript are rendered in a headless browser on our side.

When: Your agent has to read a web page as text: a changelog, a docs page, a competitor's pricing table. Without this it writes a scraper and installs a browser first.

3 to 8 credits per call · 3 for `clean` when an official .md file or a static fetch is enough; 8 when the page needed the headless browser. `raw` always uses the browser, so it always costs 8.

Mermaid to SVG

Send a Markdown document with Mermaid code blocks, get each diagram back as SVG, ready for a web page or a Markdown renderer.

When: Your agent writes a diagram and there is no browser around to render it, or you want the SVG checked in next to the document.

from 1 credit per call · 1 when the document contains no diagram. Otherwise 5 for the first rendered diagram plus 2 for each additional rendered one; diagrams that fail to render are not counted, and a call where none renders is an error (422 render_failed) and costs nothing.

The everyday chores

If your agent has a terminal, it can format and lint with local tools. Use MarkdownScribe when it runs where there is no terminal, or when you want all six operations behind one key, with one error format and one bill.

Format

Normalizes list markers, emphasis, tables and spacing. Same input, same output, every time.

2 credits per call

Lint

Checks the document against structural rules and returns every finding with its line and rule id.

2 credits per call

Table of contents

Builds a table of contents from the headings, with anchor links, ready to paste at the top.

1 credit per call

Frontmatter

Splits the YAML frontmatter from the body and returns it as JSON.

1 credit per call

How to start

  1. Create an account in the dashboard. You get 2,000 credits on sign-up, no card needed.
  2. Create an API key in the dashboard and keep it on the server side, never in a published app.
  3. Make one call. Every operation takes a JSON body and returns JSON:
curl -X POST https://api.markdownscribe.com/v1/md/frontmatter \
  -H "X-API-Key: $MDSCRIBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"markdown": "---\ntitle: Hello\n---\nBody"}'

Prefer a package? npm install @markdownscribe/sdk for TypeScript, or npm install -g markdownscribe for the mdscribe command line.

Made to be read by agents