Create powerful AI workflows by connecting multiple MCP servers including WordPress, Confluence, Firecrawl Web Search for enhanced automation capabilities in Klavis AI.
WordPress is an open-source content management system for building websites and blogs
Confluence is a team workspace where knowledge and collaboration meet
Advanced web crawling, scraping, and search capabilities powered by Firecrawl
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"))
wordpress_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.WORDPRESS,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
confluence_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.CONFLUENCE,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
firecrawl_web_search_mcp_instance = klavis_client.mcp_server.create_server_instance(
server_name=McpServerName.FIRECRAWL_WEB_SEARCH,
user_id="1234",
platform_name="Klavis",
connection_type=ConnectionType.STREAMABLE_HTTP,
)
wordpress_tools = await aget_tools_from_mcp_url(
wordpress_mcp_instance.server_url,
client=BasicMCPClient(wordpress_mcp_instance.server_url)
)
confluence_tools = await aget_tools_from_mcp_url(
confluence_mcp_instance.server_url,
client=BasicMCPClient(confluence_mcp_instance.server_url)
)
firecrawl_web_search_tools = await aget_tools_from_mcp_url(
firecrawl_web_search_mcp_instance.server_url,
client=BasicMCPClient(firecrawl_web_search_mcp_instance.server_url)
)
wordpress_agent = FunctionAgent(
name="wordpress_agent",
tools=wordpress_tools,
llm=llm,
)
confluence_agent = FunctionAgent(
name="confluence_agent",
tools=confluence_tools,
llm=llm,
)
firecrawl_web_search_agent = FunctionAgent(
name="firecrawl_web_search_agent",
tools=firecrawl_web_search_tools,
llm=llm,
)
workflow = AgentWorkflow(
agents=[wordpress_agent, confluence_agent, firecrawl_web_search_agent],
root_agent="wordpress_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