Connectto Doc2markdown, Cloudflare MCP Servers

Create powerful AI workflows by connecting multiple MCP servers including Doc2markdown, Cloudflare for enhanced automation capabilities in Klavis AI.

Doc2markdown icon

Doc2markdown

featured

Convert any file to markdown using markitdown

Available Tools:

  • convert_document_to_markdown
Cloudflare icon

Cloudflare

featured

Cloudflare provides content delivery network services, DDoS protection, and security.

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

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

cloudflare_mcp_instance = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.CLOUDFLARE,
    user_id="1234",
    platform_name="Klavis",
    connection_type=ConnectionType.STREAMABLE_HTTP,
)
doc2markdown_tools = await aget_tools_from_mcp_url(
    doc2markdown_mcp_instance.server_url, 
    client=BasicMCPClient(doc2markdown_mcp_instance.server_url)
)
cloudflare_tools = await aget_tools_from_mcp_url(
    cloudflare_mcp_instance.server_url, 
    client=BasicMCPClient(cloudflare_mcp_instance.server_url)
)

doc2markdown_agent = FunctionAgent(
    name="doc2markdown_agent",
    tools=doc2markdown_tools,
    llm=llm,
)

cloudflare_agent = FunctionAgent(
    name="cloudflare_agent",
    tools=cloudflare_tools,
    llm=llm,
)
workflow = AgentWorkflow(
    agents=[doc2markdown_agent, cloudflare_agent],
    root_agent="doc2markdown_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