Create powerful AI workflows by connecting multiple MCP servers including Stripe, Zendesk, Dropbox for enhanced automation capabilities in Klavis AI.
Stripe is a suite of payment APIs that powers commerce for online businesses
Zendesk is a customer service software company
Dropbox is a file hosting service that offers cloud storage and file synchronization
Follow these steps to connect LlamaIndex to these MCP servers
Sign up for KlavisAI to access our MCP server management platform.
Add your desired MCP servers to LlamaIndex and configure authentication settings.
Verify your connections work correctly and start using your enhanced AI capabilities.
import os
from klavis import Klavis
from klavis.types import McpServerName, ConnectionType
from llama_index.tools.mcp import (
BasicMCPClient,
get_tools_from_mcp_url,
aget_tools_from_mcp_url,
)
from llama_index.core.agent.workflow import FunctionAgent, AgentWorkflow
# Initialize clients
klavis_client = Klavis(api_key=os.getenv("KLAVIS_API_KEY"))
stripe_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.STRIPE,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
zendesk_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.ZENDESK,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
dropbox_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.DROPBOX,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
stripe_tools = await aget_tools_from_mcp_url(
stripe_mcp_instance.server_url,
client=BasicMCPClient(stripe_mcp_instance.server_url)
)
zendesk_tools = await aget_tools_from_mcp_url(
zendesk_mcp_instance.server_url,
client=BasicMCPClient(zendesk_mcp_instance.server_url)
)
dropbox_tools = await aget_tools_from_mcp_url(
dropbox_mcp_instance.server_url,
client=BasicMCPClient(dropbox_mcp_instance.server_url)
)
stripe_agent = FunctionAgent(
name="stripe_agent",
tools=stripe_tools,
llm=llm,
)
zendesk_agent = FunctionAgent(
name="zendesk_agent",
tools=zendesk_tools,
llm=llm,
)
dropbox_agent = FunctionAgent(
name="dropbox_agent",
tools=dropbox_tools,
llm=llm,
)
workflow = AgentWorkflow(
agents=[stripe_agent, zendesk_agent, dropbox_agent],
root_agent="stripe_agent",
)
Everything you need to know about connecting to these MCP servers
Join developers who are already using KlavisAI to power their LlamaIndex applications with these MCP servers.
Start For Free