Prerequisites

1. Create a Markdown2doc MCP Server

Use the following endpoint to create a new remote Markdown2doc MCP server instance:

Request

from klavis import Klavis
from klavis.types import McpServerName, ConnectionType

klavis_client = Klavis(api_key="<YOUR_API_KEY>")

# Create a Markdown2doc MCP server instance
markdown2doc_server = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.MARKDOWN2DOC,
    user_id="<YOUR_USER_ID>",
    platform_name="<YOUR_PLATFORM_NAME>",
)

Response

{
  "serverUrl": "https://markdown2doc-mcp-server.klavis.ai/sse?instance_id=<instance-id>",
  "instanceId": "<instance-id>"
}
serverUrl specifies the endpoint of the Markdown2doc MCP server, which allows you to convert markdown to various document formats.
instanceId is used for authentication and identification of your server instance.

Explore MCP Server Tools