Skip to main content
Glama

Draftsman

Draftsman takes a markdown draft to a publish-ready post. You talk to the AI you already use, and Draftsman does the layout work: images found, licensed and credited, tables turned into figures, pull quotes picked and styled, figures numbered, weak lists fixed and a carousel built from the summary.

It is a local MCP server. It works with any AI app on your computer that runs local MCP tools, such as VS Code, Claude Code, Claude Desktop or Cursor. It calls no model of its own.

Status: early work, not ready to use. SPEC.md describes what version 1 will do. Built so far:

  • find_slots lists the image spots in an article. An image spot is a markdown image whose link is draftsman:pending, like ![drought map of Texas](draftsman:pending).

  • mark_slot adds an image spot at a given line.

  • A renderer that turns an HTML template into a PNG with your installed Chrome or Edge.

Try it

You need Node 22.12 or later, and Chrome or Edge for rendering.

npm install
npm run test-browser   # once: the pinned Chrome for Testing the render test uses (~170 MB)
npm test
npm run build

To try it in an MCP client, point the client at node /path/to/Draftsman/dist/server.js over stdio. To render with a browser in a non-standard place, set DRAFTSMAN_BROWSER to its path.

Related MCP server: substack-mcp

Development

  • npm run lint, npm run typecheck, npm test

  • UPDATE_REFERENCE=1 npm test rewrites the reference image after a deliberate change to the sample table.

  • scripts/check-private-names.sh fails if any name in the PRIVATE_NAMES environment variable (one per line) appears in the repo. CI runs it with the repository secret of the same name.

License

MIT

Available Tools

2 tools
find_slotsFind image spotsA
Read-only

List the image placeholders in a markdown article: markdown images whose link is draftsman:pending, like drought map of Texas. Each comes with its line, its description and the paragraph around it (plus the blocks before and after), so you can judge what image fits. Placeholders inside code are ignored.

Inputs: path (required). Returns: path, slots

mark_slotMark an image spotA

Insert one image placeholder, description, as its own block starting at the given line; the line that was there moves down, and blank lines are added only where needed. Use a blank line or the start or end of a block: the tool refuses a line that would split a paragraph or fall inside a code block.

Inputs: line (required), path (required), description (required). Returns: path, slot

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    find_slots and mark_slot have clearly distinct purposes: one discovers existing placeholders, the other inserts a new placeholder. There is no overlapping or ambiguous behavior between the two tools.

    Naming Consistency5/5

    Both tools follow the same snake_case verb_noun convention: find_slots and mark_slot. The naming is predictable and easy to map to their actions.

    Tool Count3/5

    The server has only two tools for a very narrow domain. While both tools earn their place, the surface feels thin and leaves little room for related placeholder-management operations.

    Completeness3/5

    The set covers discovering and inserting placeholders, but there is no operation to remove, move, edit, or resolve a placeholder with an actual image URL. These are notable lifecycle gaps for a placeholder-management tool.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers