API & MCP
Everything a person can do on Lessonleaf, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
GET https://lessonleaf.usefulweb.site/api/v1/tools– catalogGET https://lessonleaf.usefulweb.site/api/v1/tools/{id}– inputs, output schema, examplesPOST https://lessonleaf.usefulweb.site/api/v1/tools/{id}/calculate– run a toolGET https://lessonleaf.usefulweb.site/api/v1/workflows·POST https://lessonleaf.usefulweb.site/api/v1/workflows/{id}/run- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tools on Lessonleaf
- Outline Notes to Flashcards – Turn an indented Markdown outline with term :: definition lines into flashcards, CSV and Anki text.
lessonleaf_outline_cards - Flashcards from Markdown, CSV or Anki Text – Turn notes into flashcards: Q:/A: pairs, term :: definition lines, cloze gaps, CSV or Anki text.
deckwright_cards_from_markdown - Spaced Repetition Scheduler (FSRS) – Which flashcards are due today? FSRS-5 or SM-2 from your review log, with a 30-day forecast.
deckwright_review_schedule - Printable Flashcards (Double-sided PDF) – Print flashcards on both sides: questions on the front, answers exactly behind them, as a PDF.
deckwright_print_cards - Knotwork Wiki Link Map (Markdown notes) – Map the [[links]] between Markdown notes: broken links, orphan pages, hubs and mentions.
knotwork_wikilink_map - Knotwork Link Suggestion Finder – Find notes that mention another note by name but do not link to it yet — and add the [[links]].
knotwork_link_suggestions - Exam Study Planner for Flashcards – How many new cards and reviews a day so every flashcard is learned before the exam.
exam_study_planner - Highlights to Flashcards – Turn ==marked== text or PDF highlights into page-referenced notes and cloze or Q/A cards.
highlights_to_flashcards - Flashcard Format Converter – Convert flashcards between Anki text, CSV, Quizlet, Mochi, Obsidian and Lessonleaf.
flashcard_format_converter - Cloze Card Maker – Sentences plus key terms → fill-in-the-blank cloze cards for Anki, Deckwright, Lessonleaf.
cloze_card_maker
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://lessonleaf.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lessonleaf_outline_cards,deckwright_cards_from_markdown,deckwright_review_schedule,deckwright_print_cards,knotwork_wikilink_map,knotwork_link_suggestions,exam_study_planner,highlights_to_flashcards,flashcard_format_converter,cloze_card_maker - Local stdio connector:
node src/mcp-stdio.ts
{
"mcpServers": {
"usefulweb": { "type": "http", "url": "https://lessonleaf.usefulweb.site/mcp" }
}
}