Connectto Gmail, WhatsApp, Mem0 MCP Servers

Create powerful AI workflows by connecting multiple MCP servers including Gmail, WhatsApp, Mem0 for enhanced automation capabilities in Klavis AI.

Gmail icon

Gmail

featured

Gmail is a free email service provided by Google

Available Tools:

  • gmail_send_email
  • gmail_draft_email
  • gmail_read_email
  • +5 more tools
WhatsApp icon

WhatsApp

featured

WhatsApp Business API integration that enables sending text messages, media, and managing conversations with customers. Perfect for customer support, marketing campaigns, and automated messaging workflows through the official WhatsApp Business platform.

Available Tools:

  • whatsapp_send_text
Mem0 icon

Mem0

featured

Mem0 is an intelligent memory layer for AI applications that provides long-term memory storage and retrieval. Store code snippets, implementation details, and programming knowledge for seamless context retention across conversations

Available Tools:

  • mem0_add_memory
  • mem0_get_all_memories
  • mem0_search_memories
  • +2 more tools

Quick Setup Guide

Follow these steps to connect LlamaIndex to these MCP servers

1

Create Your Account

Sign up for KlavisAI to access our MCP server management platform.

2

Configure Connections

Add your desired MCP servers to LlamaIndex and configure authentication settings.

3

Test & Deploy

Verify your connections work correctly and start using your enhanced AI capabilities.

LlamaIndex + KlavisAI Integration Snippets

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"))

gmail_mcp_instance = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.GMAIL,
    user_id="1234",
    platform_name="Klavis",
    connection_type=ConnectionType.STREAMABLE_HTTP,
)

whatsapp_mcp_instance = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.WHATSAPP,
    user_id="1234",
    platform_name="Klavis",
    connection_type=ConnectionType.STREAMABLE_HTTP,
)

mem0_mcp_instance = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.MEM0,
    user_id="1234",
    platform_name="Klavis",
    connection_type=ConnectionType.STREAMABLE_HTTP,
)
gmail_tools = await aget_tools_from_mcp_url(
    gmail_mcp_instance.server_url, 
    client=BasicMCPClient(gmail_mcp_instance.server_url)
)
whatsapp_tools = await aget_tools_from_mcp_url(
    whatsapp_mcp_instance.server_url, 
    client=BasicMCPClient(whatsapp_mcp_instance.server_url)
)
mem0_tools = await aget_tools_from_mcp_url(
    mem0_mcp_instance.server_url, 
    client=BasicMCPClient(mem0_mcp_instance.server_url)
)

gmail_agent = FunctionAgent(
    name="gmail_agent",
    tools=gmail_tools,
    llm=llm,
)

whatsapp_agent = FunctionAgent(
    name="whatsapp_agent",
    tools=whatsapp_tools,
    llm=llm,
)

mem0_agent = FunctionAgent(
    name="mem0_agent",
    tools=mem0_tools,
    llm=llm,
)
workflow = AgentWorkflow(
    agents=[gmail_agent, whatsapp_agent, mem0_agent],
    root_agent="gmail_agent",
)

Frequently Asked Questions

Everything you need to know about connecting to these MCP servers

Ready to Get Started?

Join developers who are already using KlavisAI to power their LlamaIndex applications with these MCP servers.

Start For Free