How to use a remote MCP server tool in Dataiku

JohnB
JohnB Registered Posts: 35 ✭✭✭✭✭

Is there a doc about how to do this in a recipe or notebook?

I have created an MCP server following the tutorial here:

Building your MCP Server in Dataiku - Dataiku Developer Guide

I have tested this via MCP Inspector. Now I'd like to see how I can test this or an external MCP server from a Dataiku project.
The "wrapping up" section of the above tutorial says this:

"You can also access remote MCP servers in Dataiku using Python Recipe or Code Agent."

We're on DSS 14.2.3

Operating system used: RHEL

Answers

  • FlorentD
    FlorentD Dataiker, Dataiku DSS Core Designer, Registered Posts: 33 Dataiker

    Hi,

    This tutorial is composed of two main sections:

    1. Create a Python file/script that runs an MCP server with a Tool.
    2. A Code Studio template to run and expose this script (so the MCP server with a Tool).

    In 14.2.1 (and above), there is an Agent Tool to run a local MCP server (https://doc.dataiku.com/dss/latest/agents/tools/local-mcp.html), and then you can use this tool in a Code Agent, so in a Notebook.

    Isn't it what you need?

  • JohnB
    JohnB Registered Posts: 35 ✭✭✭✭✭

    My question is about how to use a tool presented by an MCP server (remote or local) within a code agent.

    I was hoping there would be a starter code template for it in the current list that starts with "Simple LLM Mesh integration with streaming" …

Setup Info
    Tags
      Help me…