# Code Highlight Html — MCP tool `findutils:code_highlight_html`

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.

- Category: text
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/code-highlight-html/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/mcp/code-highlight-html/
- Same tool on the other surface: https://findutils.com/api/code-highlight-html/

## Connect

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

Claude Desktop (`claude_desktop_config.json`):

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

## Call the tool (verified example)

```bash
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):

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

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/code-highlight-html/execute \
  -H "Content-Type: application/json" \
  -d '{
    "code": "const x = greet(\"hi\", 42);",
    "language": "javascript",
    "theme": "dracula"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/code-highlight-html
```

Full REST reference: https://findutils.com/api/code-highlight-html/ · OpenAPI 3.1 spec: https://findutils.com/api/openapi.json

---
Full catalog: POST https://mcp.findutils.com/ with method `tools/list` · https://findutils.com/mcp/ · https://findutils.com/llms.txt
