Repository avatar
AI Tools
v0.1.3
active

humanless

com.usehumanless/humanless

Identity for AI agents: email inboxes, OTPs, magic links and TOTP for apps you own.

Documentation

Humanless

Humanless MCP server

Humanless is a verification inbox for AI browser agents and end-to-end tests. Your agent or test creates a short-lived identity (an email address, a TOTP secret, or both). It enters those details into your own app's sign-up or login form, then waits for the code. Humanless parses the OTP or magic link out of the email and returns it as soon as it arrives. The wait is push-based, so there are no sleep loops and no polling. Receive-only US phone numbers for SMS are coming soon.

This repository holds the connection details for the hosted, remote MCP server. There is nothing to install.

  • MCP endpoint: https://api.usehumanless.com/mcp
  • Transport: Streamable HTTP, stateless (POST only; GET and DELETE return 405)
  • Auth: Authorization: Bearer hl_live_... (the same API key as the REST API)
  • Get a key: https://api.usehumanless.com/app
  • Website: https://usehumanless.com
  • Registry name: com.usehumanless/humanless

Use policy. Use Humanless only with apps and services that you own or are authorized to test. Typical uses are QA and E2E testing of your sign-up, login and 2FA flows, and agents that operate on your own products. Do not use it to create accounts on, or get around verification on, third-party services. See the Terms.

Tools

ToolWhat it doesArgumentsAnnotations
create_verification_identityCreates a disposable identity: an email address (email) and/or a TOTP secret to enroll as an authenticator app (totp). The sms channel (receive-only US number) is coming soon.channels (array of email/sms/totp, 1 to 3 items, default ["email"]), ttl_seconds?, domain?not read-only, not destructive
wait_for_verification_codeBlocks until the next message for the identity arrives, then returns the extracted OTP and/or magic link. A timeout is not an error: call it again. Each message is returned once.identity_id, channel? (any/email/sms, default any), timeout_seconds? (default 30, max 60), since_unix_ms?not read-only, not destructive
get_totp_codeReturns the current 6-digit TOTP code and how many seconds it stays valid.identity_idread-only
delete_verification_identityDeletes the identity. The address stops receiving mail. Safe to call more than once.identity_iddestructive, idempotent

Typical flow: create_verification_identity, then fill in and submit your app's form, then wait_for_verification_code, then enter the code or open the link. Call get_totp_code if the flow enrolls 2FA, and delete_verification_identity when you are done.

Errors come back as tool results with isError: true. The text gives the status, the error code and what to do next. structuredContent.error holds { status, code, message, retry_after_seconds, details? }. For example, credits_exhausted means the account has no credits left: top up at the URL in details.billing_url.

Setup

Replace hl_live_YOUR_KEY with your API key. Do not commit keys to shared config. Use your client's secret or input mechanism where it has one.

Claude Code

claude mcp add --transport http humanless https://api.usehumanless.com/mcp \
  --header "Authorization: Bearer hl_live_YOUR_KEY"

Add --scope user to make it available in all projects.

Claude Desktop

Claude Desktop's config file starts local (stdio) servers, so bridge to the remote server with mcp-remote:

{
  "mcpServers": {
    "humanless": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://api.usehumanless.com/mcp",
        "--header", "Authorization:${HUMANLESS_AUTH}"
      ],
      "env": { "HUMANLESS_AUTH": "Bearer hl_live_YOUR_KEY" }
    }
  }
}

The header value goes through an environment variable because some platforms mangle spaces inside args.

Cursor

~/.cursor/mcp.json, or .cursor/mcp.json in a project:

{
  "mcpServers": {
    "humanless": {
      "url": "https://api.usehumanless.com/mcp",
      "headers": { "Authorization": "Bearer hl_live_YOUR_KEY" }
    }
  }
}

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json. VS Code prompts for the key once and stores it securely:

{
  "servers": {
    "humanless": {
      "type": "http",
      "url": "https://api.usehumanless.com/mcp",
      "headers": { "Authorization": "Bearer ${input:humanless-api-key}" }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "humanless-api-key",
      "description": "Humanless API key (hl_live_...)",
      "password": true
    }
  ]
}

Any other MCP client

Any client that supports Streamable HTTP with custom headers will work:

{
  "type": "http",
  "url": "https://api.usehumanless.com/mcp",
  "headers": { "Authorization": "Bearer hl_live_YOUR_KEY" }
}

TypeScript (MCP SDK)

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const client = new Client({ name: "my-e2e-suite", version: "1.0.0" });
await client.connect(
  new StreamableHTTPClientTransport(new URL("https://api.usehumanless.com/mcp"), {
    requestInit: { headers: { Authorization: `Bearer ${process.env.HUMANLESS_API_KEY}` } },
  }),
);
const { structuredContent: identity } = await client.callTool({
  name: "create_verification_identity",
  arguments: { channels: ["email"] },
});

Smoke test with curl

curl -s https://api.usehumanless.com/mcp \
  -H "Authorization: Bearer $HUMANLESS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Notes

  • wait_for_verification_code holds the request open for up to timeout_seconds, which is 60 at most. Any proxy between your agent and Humanless needs an idle timeout above 60 seconds.
  • Pass since_unix_ms, set to a time just before you submitted the form, to catch a message that arrived before the wait started.
  • Each MCP request counts toward the same per-key rate limit as the REST API. Over the limit, you get HTTP 429 with Retry-After.
  • Prefer REST? The same features are available at https://api.usehumanless.com/v1 (POST /v1/identities, GET /v1/identities/:id/wait, GET /v1/identities/:id/totp, DELETE /v1/identities/:id).

Plans

  • Pay as you go: $0.01 per email/TOTP identity from prepaid credits (top-ups from $20, no subscription)
  • SMS: coming soon (dedicated receive-only US numbers)

The current prices are at https://usehumanless.com/pricing.md.

Related repositories

Privacy and support

Humanless is built by Ninety Nine Oranges.

No installation packages available.