Refinery MCP

v0.1.6
io.github.LareLabs/refinery-mcp Checked 2 days ago Published 5 months ago

Clean raw HTML into LLM-ready text before agents spend tokens.

Values you need

VariableWhat it is
APIFY_TOKENrequired secret Apify API token for the Refinery HTML cleaner actor

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add refinery-mcp -e 'APIFY_TOKEN=<APIFY_TOKEN>' -- npx -y @larelabs/refinery-mcp@0.1.6
Add to claude_desktop_config.json
{
  "mcpServers": {
    "refinery-mcp": {
      "args": [
        "-y",
        "@larelabs/refinery-mcp@0.1.6"
      ],
      "command": "npx",
      "env": {
        "APIFY_TOKEN": "<APIFY_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "refinery-mcp": {
      "args": [
        "-y",
        "@larelabs/refinery-mcp@0.1.6"
      ],
      "command": "npx",
      "env": {
        "APIFY_TOKEN": "<APIFY_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "APIFY_TOKEN",
      "id": "apify-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "refinery-mcp": {
      "args": [
        "-y",
        "@larelabs/refinery-mcp@0.1.6"
      ],
      "command": "npx",
      "env": {
        "APIFY_TOKEN": "${input:apify-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.refinery-mcp]
command = "npx"
args = ["-y", "@larelabs/refinery-mcp@0.1.6"]
env = { "APIFY_TOKEN" = "<APIFY_TOKEN>" }

For AI agents

  1. Ask the user for: APIFY_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: clean_url, clean_html, estimate_savings.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json