Code Highlight Html

Text REST API MCP

Returns syntax-highlighted HTML for a code snippet: HTML-escaped text wrapped in <span style="color: ..."> elements using one of six colour themes (dracula, monokai, github, nord, one-dark, solarized). This is the pure highlighting step of the Code Screenshot Generator page; it returns markup plus the theme background and foreground colours, not an image.

This page documents the MCP tool findutils:code_highlight_html. See the REST reference →

Call it over MCP

Tool name findutils:code_highlight_html · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "code_highlight_html",
      "arguments": {
        "code": "const x = greet(\"hi\", 42);",
        "language": "javascript",
        "theme": "dracula"
      }
    }
  }'

Input schema

Argument Type Required Description
code string yes The source code to highlight.
language string (javascript | typescript | python | html | css | json | markdown | bash | sql | php | java | go | rust | plaintext) no Language used for keyword and comment rules. Default: "javascript". Default: "javascript".
theme string (dracula | monokai | github | nord | one-dark | solarized) no Colour theme. Default: "dracula". Default: "dracula".

Example arguments (verified)

{
  "code": "const x = greet(\"hi\", 42);",
  "language": "javascript",
  "theme": "dracula"
}

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/code-highlight-html/execute — no key, 60 requests/min.

Open the REST reference for Code Highlight Html →

More Text tools