API & MCP

Everything a person can do on Knotwork Link Suggestion Finder, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://knotworklinksuggestions.usefulweb.app/api/v1/calculate – run Knotwork Link Suggestion Finder
  • GET https://knotworklinksuggestions.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 Link Suggestion Finder

Paste Markdown notes and the finder lists every place where one note names another note (or one of your extra titles) without a [[link]]: which note, which title, the words as written, how often and a short context. Matching is by whole words, ignores case and accents, handles titles of several words, scripts without spaces such as Chinese or Thai and Korean particles, and skips titles that are too short or too common. You also get the notes back with the first mention of each suggestion turned into a [[link]] — the same engine as Knotwork’s “Suggested links”.

Inputs of Knotwork Link Suggestion Finder
FieldTypeDefaultDescription
notes (required)textarea"=== Onboarding\nStart with the Team handbook. Ask Ana for access to the tools wNotes (each starts with a line “=== Title”). Without any “=== Title” line, “# Title” headings start the notes. Existing [[links]], code and web addresses are not searched.
titlestextarea—More titles to look for (optional, one per line). Pages that are not in the pasted notes, e.g. other pages of your wiki. Other names of the same page after a | sign.
minCharsnumber3Ignore titles shorter than (letters). Scripts written without spaces (Chinese, Japanese, Thai …) need at least 2 characters.
perNotenumber20Suggestions per note (at most)

Example request

Team wiki: unlinked mentions of other notes and of two extra pages

curl -X POST https://knotworklinksuggestions.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"notes":"=== Onboarding\nStart with the Team handbook. Ask Ana for access to the tools we use.\n=== Team handbook\nHow we work: meeting rules, the release process and our [[Glossary]].\n=== Release process\nEvery second Tuesday. Run the deployment checklist first; the Release Process page is the source of truth.\n=== Meeting rules\nShort, with an agenda. Decisions go to the decision log.\n=== Glossary\nWords we use. See the team handbook.\n=== Tools we use\nIssue tracker, chat and the wiki.","titles":"Decision log | decisions\nDeployment checklist"}'

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