Skip to content

aspose-html-cloud/Aspose.HTML-Cloud-MCP

Repository files navigation

Aspose.HTML Cloud MCP Server

A Model Context Protocol (MCP) server that exposes Aspose.HTML Cloud document conversion as tools for AI assistants like Claude Desktop, Cursor, VS Code Copilot, and other MCP-compatible clients.

What it does

Converts documents between formats via the Aspose.HTML Cloud API.

Supported input formats Supported output formats
html, mhtml, xhtml, epub, svg, md pdf, xps, docx, doc, jpeg, png, bmp, gif, tiff, webp, md, mhtml, svg

Available tools:

Tool Input source
convert_url_to_format Public URL
convert_content_to_format Raw HTML / SVG / Markdown string
convert_base64_to_format Base64-encoded document
convert_file_to_format Local file path

Example prompts:

"Convert https://example.com to PDF"

"Convert this HTML to DOCX: <html><body><h1>Hello</h1></body></html>"

"Convert C:\docs\report.html to PNG"

Prerequisites

Installation

git clone https://github.com/aspose-html-cloud/Aspose.HTML-Cloud-MCP.git
cd Aspose.HTML-Cloud-MCP
dotnet build

Configuration with MCP Clients

Credentials are passed via environment variables ASPOSE_CLIENT_ID and ASPOSE_CLIENT_SECRET.

Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "aspose-html-cloud": {
      "command": "dotnet",
      "args": ["run", "--project", "/absolute/path/to/Aspose.HTML-Cloud-MCP"],
      "env": {
        "ASPOSE_CLIENT_ID": "your-client-id",
        "ASPOSE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

VS Code (Copilot)

Add to your .vscode/settings.json or user settings:

{
  "mcp": {
    "servers": {
      "aspose-html-cloud": {
        "command": "dotnet",
        "args": ["run", "--project", "/absolute/path/to/Aspose.HTML-Cloud-MCP"],
        "env": {
          "ASPOSE_CLIENT_ID": "your-client-id",
          "ASPOSE_CLIENT_SECRET": "your-client-secret"
        }
      }
    }
  }
}

Cursor

Add to your Cursor MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "aspose-html-cloud": {
      "command": "dotnet",
      "args": ["run", "--project", "/absolute/path/to/Aspose.HTML-Cloud-MCP"],
      "env": {
        "ASPOSE_CLIENT_ID": "your-client-id",
        "ASPOSE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

License

This project is licensed under the MIT License. See LICENSE for details.

The Aspose.HTML Cloud API itself requires a separate subscription — a free tier is available at aspose.cloud.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages