API & MCP

Everything a person can do on Flashcards from Markdown, CSV or Anki Text, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Flashcards from Markdown, CSV or Anki Text

Reads study notes and makes flashcards with stable ids: Markdown “Q:”/“A:” pairs, “term :: definition” lines (“:::” adds the reverse card), {{c1::cloze}} gaps with optional hints (one card per gap number, like Anki), # headings as tags, CSV or tab-separated rows, an Anki “Notes in Plain Text” export (HTML turned into text) or a Deckwright slide deck (slide titles become questions). Returns the cards, a CSV file, the cards as editable Markdown and a link that opens them in Deckwright’s Study view.

Inputs of Flashcards from Markdown, CSV or Anki Text
FieldTypeDefaultDescription
texttextarea"# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank yoCards. Markdown: “Q:” and “A:” lines, “term :: definition” (“:::” also makes the reverse card), {{c1::cloze}} gaps, # headings as tags. Or CSV/TSV rows (front, back, tag), an Anki plain-text export, or a slide deck.
formatselect (auto, markdown, csv, tsv, anki, deck)"auto"Format
reversebooleanfalseAlso make reverse cards (answer → question)
langtext—Card language (BCP 47, e.g. en, es, ja). Used for answer checks and fonts; empty = English.

Example request

Spanish phrases with reverse cards and two cloze gaps

curl -X POST https://deckwrightcardsfrommarkdown.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n","lang":"es"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "deckwright-cards-from-markdown": { "type": "http", "url": "https://deckwrightcardsfrommarkdown.usefulweb.site/mcp" }
  }
}