Create powerful AI workflows by connecting multiple MCP servers including Airtable, Freshdesk, Shopify for enhanced automation capabilities in Klavis AI.
Airtable is a cloud-based database and spreadsheet platform that combines the flexibility of a spreadsheet with the power of a database, enabling teams to organize, track, and collaborate on projects with customizable views and powerful automation features
Freshdesk is a cloud-based customer support software that helps businesses manage customer inquiries across multiple channels. Create and manage tickets, contacts, companies, and agents with powerful automation and collaboration features
Shopify is a complete commerce platform that lets you start, grow, and manage a business. Manage products, process orders, track customers, and build your online store with powerful e-commerce tools
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"))
airtable_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.AIRTABLE,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
freshdesk_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.FRESHDESK,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
shopify_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.SHOPIFY,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
airtable_tools = await aget_tools_from_mcp_url(
airtable_mcp_instance.server_url,
client=BasicMCPClient(airtable_mcp_instance.server_url)
)
freshdesk_tools = await aget_tools_from_mcp_url(
freshdesk_mcp_instance.server_url,
client=BasicMCPClient(freshdesk_mcp_instance.server_url)
)
shopify_tools = await aget_tools_from_mcp_url(
shopify_mcp_instance.server_url,
client=BasicMCPClient(shopify_mcp_instance.server_url)
)
airtable_agent = FunctionAgent(
name="airtable_agent",
tools=airtable_tools,
llm=llm,
)
freshdesk_agent = FunctionAgent(
name="freshdesk_agent",
tools=freshdesk_tools,
llm=llm,
)
shopify_agent = FunctionAgent(
name="shopify_agent",
tools=shopify_tools,
llm=llm,
)
workflow = AgentWorkflow(
agents=[airtable_agent, freshdesk_agent, shopify_agent],
root_agent="airtable_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