API & MCP

Everything a person can do on Knotwork Wiki Link Map (Markdown notes), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://knotworkwikilinkmap.usefulweb.app/api/v1/calculate – run Knotwork Wiki Link Map (Markdown notes)
  • GET https://knotworkwikilinkmap.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Knotwork Wiki Link Map (Markdown notes)

Paste Markdown notes that link to each other with [[Page title]] (also [[Page|label]], [[KEY:Page]] and links to other .md files) and @[Name] mentions. The map resolves every link by title, lists broken links to pages that do not exist, orphan pages that nothing links to and nothing links from, the most linked pages and who is mentioned where — with Wikinest’s Markdown reader, the same one Knotwork uses for wiki pages and imported notes.

Inputs of Knotwork Wiki Link Map (Markdown notes)
FieldTypeDefaultDescription
notes (required)textarea"=== Onboarding\nStart with [[Team handbook]] and [[Tools we use]]. Ask @[Ana SiNotes (each starts with a line “=== Title”). Without any “=== Title” line, “# Title” headings start the notes. Links match titles case-insensitively.
topnumber10Show the top hubs

Example request

Team wiki with a broken link and an orphan page

curl -X POST https://knotworkwikilinkmap.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"notes":"=== Onboarding\nStart with [[Team handbook]] and [[Tools we use]]. Ask @[Ana Silva] for access.\n=== Team handbook\nHow we work: see [[Meeting rules]] and [[Release process]].\n=== Release process\nChecklist in [[Tools we use]]. Owner: @[Ben Okafor]. Old notes: [[Release 2025]].\n=== Tools we use\nIssue tracker, chat and the wiki. Back to [[Onboarding]].\n=== Meeting rules\nShort, with an agenda.\n=== Parking\nGarage on level -2."}'

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://knotworkwikilinkmap.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: knotwork_wikilink_map
  • Local stdio connector: node src/mcp-stdio.ts --tool=knotwork-wikilink-map
{
  "mcpServers": {
    "knotwork-wikilink-map": { "type": "http", "url": "https://knotworkwikilinkmap.usefulweb.app/mcp" }
  }
}