API & MCP
Everything a person can do on Flashcard Format Converter, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://flashcardformatconverter.usefulweb.app/api/v1/calculate– run Flashcard Format ConverterGET https://flashcardformatconverter.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Flashcard Format Converter
Converts flashcards between six text formats: the card syntax of Deckwright and Lessonleaf (Q:/A:, term :: definition, cloze), CSV, Anki “Notes in Plain Text” with note types and tags, Quizlet import text, Mochi Markdown and the Obsidian Spaced Repetition plugin syntax. Two-way cards, cloze gaps with hints and tags are carried over where the target can hold them; everything a format cannot hold is listed. The result is read back to check it.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | "# Spanish\nhola :: hello\ngracias ::: thank you\nQ: How do you say \"good morni | Cards |
from | select (auto, markdown, csv, anki, obsidian, quizlet, mochi) | "auto" | From |
to | select (markdown, csv, anki, obsidian, quizlet, mochi) | "anki" | To |
deckTag | text | "flashcards" | Obsidian deck tag. The plugin’s flashcard tag (without #); tags become sub-decks like #flashcards/Spanish. |
mochiDelimiter | text | "===" | Mochi card delimiter. The line between cards; choose the same delimiter in Mochi’s Markdown import. |
Example request
Shared card syntax to Anki (note types and tags)
curl -X POST https://flashcardformatconverter.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"text":"# Spanish\nhola :: hello\ngracias ::: thank you\nQ: How do you say \"good morning\"?\nA: buenos días\n\n# Biology\nThe {{c1::nucleus}} stores the {{c2::DNA::molecule}}.\n","to":"anki"}'
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)
- Streamable HTTP endpoint:
https://flashcardformatconverter.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flashcard_format_converter - Local stdio connector:
node src/mcp-stdio.ts --tool=flashcard-format-converter
{
"mcpServers": {
"flashcard-format-converter": { "type": "http", "url": "https://flashcardformatconverter.usefulweb.app/mcp" }
}
}