Skip to Content
mlab docs

Connect mlab to your AI assistant

Connect Claude to mlab.sh through MCP in about five minutes, try your first prompts, and control what the assistant is allowed to do.

Instead of switching between your chat and mlab, you can let your AI assistant call mlab for you: "is this link dangerous?", "what is CVE-2021-44228?", "check this email". This works through MCP (Model Context Protocol), an open standard that lets an assistant use outside tools.

The mlab MCP integration is tested and officially supported on Claude (claude.ai on the web, and Claude Desktop). Other MCP clients may work, but are not tested or supported.

What you'll need

  • A free mlab.sh account.
  • A Claude account (web), or Claude Desktop installed. For Claude Desktop, also Node.js.
  • Five minutes.

There is no key to copy: you approve the connection on mlab, and that's it.

Add the connector

In Claude, open Settings → Integrations → Add connector (or the connector icon in the chat input bar).

Enter the server address

https://mlab.sh/mcp

Authorize

Claude sends you to mlab.sh. Sign in if asked, then click Authorize. Back in Claude, the mlab tools are available.

Option B: Claude Desktop

Create an MCP token

In Account → Settings, open the MCP tab and create a token. It starts with mcp_. Treat it like a password: anyone who has it can act as you.

Edit the Claude Desktop config file

# macOS
~/Library/Application Support/Claude/claude_desktop_config.json

# Windows
%APPDATA%\Claude\claude_desktop_config.json

Add this entry, replacing mcp_xxx with your token:

{
  "mcpServers": {
    "mlab": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mlab.sh/mcp",
        "--header",
        "Authorization: Bearer mcp_xxx"
      ]
    }
  }
}

Restart Claude Desktop

The mlab tools appear in the tool picker.

First prompts to try

Start with these. Each one uses an mlab tool behind the scenes; Claude shows which one it calls.

Try thisWhat happens
"What are my remaining mlab scan limits today?"Reads your quotas (get_scan_limits). A good first test that the connection works.
"Is this link dangerous? https://example.com/login"Runs the URL lookup (scan_url) and explains the score and its reasons.
"Can this address be trusted: [email protected]?"Runs the email lookup (scan_email): mailbox type, spoofability, score.
"Here is a raw email, is it phishing?" followed by the pasted .eml contentAnalyzes the headers, authentication results and attachments (analyze_email).
"Explain CVE-2021-44228 and whether it is exploited in the wild"Reads the CVE record with CVSS, EPSS and KEV status (cve_detail).
"Check this lockfile for vulnerabilities" followed by the pasted fileScans it for known CVEs (scan_sbom), worst first, up to 2 MB.
"Scan the domain example.com and summarize the main issues"Starts a domain scan or reuses a recent one (start_domain_scan, get_domain_scan_results).

mlab results contain text collected from outside sources: web pages, email bodies, DNS records, file contents. An attacker can write text there meant to trick an AI assistant ("ignore your instructions and..."). Read what Claude proposes before letting it act, especially for tools that change something.

Control what the assistant can do

An MCP connection acts as you, with your role in your organization. It can never do more than your account and your organization allow, and you can narrow it further.

In Account → Settings → MCP, the What AI agents may do card lists tool groups, each tagged Reads or Acts:

  • Turn a group off and its tools disappear from the assistant's list; a call to them is refused. Changes apply on the assistant's next call.
  • The groups that launch active work are off until you turn them on: Launch RedKit scans (each launch spends a RedKit credit), Write and publish flows and Run flows.
  • Your organization's rules come first. A group your organization turned off shows as Set by your organization, and you cannot turn it back on.

Each token also has:

  • Limits: switch off groups for that one token only, for example a read-only token for an experiment.
  • Activity: the last 100 tools called with the token, kept 90 days. Only the tool name and the outcome are kept, never what was asked or answered.

You can have up to 5 active tokens (100 on Team and Enterprise). Revoke a token from the same page at any time: do it right away if you think it leaked. Connections made from Claude on the web are listed there too, labelled OAuth: <client name>.

What to do next

On this page