Create powerful AI workflows by connecting multiple MCP servers including Supabase, Figma, Motion for enhanced automation capabilities in Klavis AI.
Supabase official MCP Server
Figma is a collaborative interface design tool for web and mobile applications.
Motion is an intelligent project management and calendar application that automatically schedules your tasks, meetings, and projects to optimize your productivity and help you focus on what matters most
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"))
supabase_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.SUPABASE,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
figma_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.FIGMA,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
motion_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.MOTION,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
supabase_tools = await aget_tools_from_mcp_url(
supabase_mcp_instance.server_url,
client=BasicMCPClient(supabase_mcp_instance.server_url)
)
figma_tools = await aget_tools_from_mcp_url(
figma_mcp_instance.server_url,
client=BasicMCPClient(figma_mcp_instance.server_url)
)
motion_tools = await aget_tools_from_mcp_url(
motion_mcp_instance.server_url,
client=BasicMCPClient(motion_mcp_instance.server_url)
)
supabase_agent = FunctionAgent(
name="supabase_agent",
tools=supabase_tools,
llm=llm,
)
figma_agent = FunctionAgent(
name="figma_agent",
tools=figma_tools,
llm=llm,
)
motion_agent = FunctionAgent(
name="motion_agent",
tools=motion_tools,
llm=llm,
)
workflow = AgentWorkflow(
agents=[supabase_agent, figma_agent, motion_agent],
root_agent="supabase_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