API & MCP
Everything a person can do on Knotwork, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
GET https://knotwork.usefulweb.app/api/v1/tools– catalogGET https://knotwork.usefulweb.app/api/v1/tools/{id}– inputs, output schema, examplesPOST https://knotwork.usefulweb.app/api/v1/tools/{id}/calculate– run a toolGET https://knotwork.usefulweb.app/api/v1/workflows·POST https://knotwork.usefulweb.app/api/v1/workflows/{id}/run- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tools on Knotwork
- Knotwork Link Graph Analyser – Degree, groups, shortest path and PageRank for any link graph — find hubs and orphans.
knotwork_link_graph - Knotwork Wiki Link Map (Markdown notes) – Map the [[links]] between Markdown notes: broken links, orphan pages, hubs and mentions.
knotwork_wikilink_map - Graph Algorithm Visualizer – BFS, DFS, Dijkstra, Bellman–Ford, A*, MST, topological sort and SCCs on your edge list.
graph_algorithm_visualizer
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://knotwork.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,knotwork_wikilink_map,graph_algorithm_visualizer - Local stdio connector:
node src/mcp-stdio.ts
{
"mcpServers": {
"usefulweb": { "type": "http", "url": "https://knotwork.usefulweb.app/mcp" }
}
}