Icon

Client Calls

<p>This example workflow shows how a KNIME workflow can communicate via a MCP Server, somewhat mimicing an MCP Client. It is not a full MCP Client, as it does not communicate with a MCP Host or keeps track of the connections. It does showcase the results of e.g. listing or calling tools.</p><p>Especially note that no information of the available tools needs to be given here, as this information comes from the MCP Server. The server can be any MCP Server, and this example uses the example MCP Server described in the blog post linked below.</p>

URL: Model Context Protocol https://modelcontextprotocol.io/
URL: Blog post: KNIME Business Hub as a Model Context Protocol (MCP) Server https://www.knime.com/blog/knime-as-model-context-protocol-server

1. Enter the ID of MCP-Server service deployment here.

3. Investigate result

This is what an MCP Host would receive, e.g. the list of tools or result of a tool call.

2. Authenticate with your KNIME Business Hub here.

One of

  • "use current hub" if executed remotely

  • mountpoint

  • application password

A technicality: we are using the header

Prefer: edge-compatible

to strip away job execution information that is not needed in the MCP context.

MCP "Client"

These example calls demonstrate how a MCP Client would interact with an MCP Server that is implemented with a KNIME Workflow and deployed as a service deployment.

Note that due to the standard by MCP, these calls could in a very similar fashion also go to any other MCP Server.

method: notifications/initialized
POST Request
method: initialize
POST Request
error: Method Not Found
POST Request
method: tools/call weather_forecast
POST Request
"Use current Hub"Authentication in the MCP Clienthappens via Application Password
KNIME Hub Authenticator
method: tools/call weather_alert
POST Request
MCP Server Deployment IDShould be user scoped to list only tools the user has access to.Can be Team scoped to list tools the team has access to.
Variable Creator
method: tools/list
POST Request
Calling endpoint<Hub Base URL>/deployments/<MCP Server Deployment ID>
String Manipulation (Variable)

Nodes

Extensions

Links