Skip to main content

OpenAI with Danube MCP Server

This guide shows how to connect OpenAI to the Danube MCP Server using the Model Context Protocol (MCP). This approach allows OpenAI models to access Danube tools through a standardized protocol.

Overview

The Danube MCP Server exposes tools via the MCP protocol, which can be accessed over HTTP/SSE. You can:
  1. Connect to the Danube MCP Server
  2. List available tools
  3. Execute tools and return results to OpenAI

Prerequisites

MCP Client for Danube

First, let’s create a simple MCP client that connects to the Danube MCP Server:

Converting MCP Tools to OpenAI Format

Complete Agent Example

Here’s a full implementation of an OpenAI agent using the Danube MCP Server:

Using SSE Transport (Streaming)

For better performance with long-running operations, use Server-Sent Events:

Advanced: Multi-Service Agent

Create an agent that can work with multiple Danube services:

MCP Tool Reference

The Danube MCP Server exposes these tools:
ToolDescription
list_servicesList/search available services
search_toolsSearch for tools by query
get_service_toolsGet all tools for a service
execute_toolExecute a tool by ID or name
search_skillsSearch for skills
get_skillGet skill with full content

Example MCP Calls

Connection Details

SettingValue
MCP Server URLhttps://mcp.danubeai.com/mcp
Authenticationdanube-api-key header
TransportHTTP + SSE
ProtocolJSON-RPC 2.0

Error Handling

See Also