API & MCP

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

HTTP API

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

Paste the links between your pages, issues, notes or any other items — as an edge list (“A -> B”) or JSON with nodes and edges — and get the number of links per item (in, out and total), the connected groups, the most linked hubs, the most central items by PageRank, the orphans nobody links to and, if you name two items, the shortest chain of links between them. The same analysis Knotwork runs on a workspace graph.

Inputs of Knotwork Link Graph Analyser
FieldTypeDefaultDescription
graph (required)textarea"# Product team knowledge: one link per line (from -> to)\nRoadmap 2027 -> CheckLinks (one per line: from -> to) or graph JSON. Lines like “A -> B”, “A → B”, “A, B” or tab-separated. A line with one name adds an item without links; # starts a comment. JSON: { "nodes": [{ "id", "title", "kind" }], "edges": [{ "from", "to", "kind" }] } — the format Knotwork exports. At most 20,000 nodes and 100,000 links.
fromtext—Path from (node id, optional)
totext—Path to (node id, optional)
directedbooleanfalsePath follows link direction only
topnumber10Hubs and PageRank: show the top
dampingnumber0.85PageRank damping factor. Probability that the random surfer follows a link instead of jumping anywhere. 0.85 is the classic value.

Example request

Product team: hubs, orphans and the path from Ana to the mobile app

curl -X POST https://knotworklinkgraph.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"graph":"# Product team knowledge: one link per line (from -> to)\nRoadmap 2027 -> Checkout redesign\nRoadmap 2027 -> Mobile app\nCheckout redesign -> WEB-12 Payment form\nCheckout redesign -> WEB-14 Address autocomplete\nWEB-12 Payment form -> WEB-14 Address autocomplete\nWEB-15 Card validation -> WEB-12 Payment form\nMobile app -> APP-3 Offline mode\n#design-review message -> Checkout redesign\n#design-review message -> WEB-12 Payment form\nCard: Usability test -> Checkout redesign\nAna -> WEB-12 Payment form\nBen -> APP-3 Offline mode\nOld onboarding notes","from":"Ana","to":"Mobile app"}'

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