Icon

MCP Server

<p>This example shows how KNIME integrates with the Model Context Protocol (MCP).</p><p>To use it, upload it to your KNIME Business Hub and create a service deployment from it. This allows to call it via POST requests. Depending on the requested method (e.g. "initialize", "tools/list", "tools/call", ...), you'll receive a standardized output according to MCP.</p><p>This example shows the implementation of listing and calling tools, and can be extended to provide prompts or resources as well, by adding branches (i.e. more of the orange source components).</p><p>See the blog post linked below for more details.</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

Execute method

Call Tool

List Tool

Initialize

Input interface

Output interface

Initialized

Errors

result
Container Output (JSON)
List Tools
jsonrpc
Container Input (JSON)
List Service Deployments
method
Container Input (JSON)
0: initialize1: initialize2: list tools3: call tools4: unknown
CASE Switch Start
State handling
Call Tool
params
Container Input (JSON)
Initialized
Method branch
Prepare output
id
Container Input (JSON)
collect results(Errors first!)
CASE Switch End
Method Not Found
id
Container Output (JSON)
list capabilities
Initialize
collect errors
CASE Switch End
jasonrpc
Container Output (JSON)

Nodes

Extensions

Links