mcpField
L
LayerCall

LayerCall

Remote
layercall.comSecurity0Updated 5w ago

About LayerCall

LayerCall is a fraud-scoring service for signup flows and risk investigations. Its API scores IPs, emails, phone numbers, domains, devices, and combined user data, returning a verdict with the underlying signals.

Key features

  1. 01Fraud scores for IPs, emails, phone numbers, domains, and devices
  2. 02Combined user risk verdict
  3. 03Risk score, verdict, and supporting signals
  4. 04Batch checks for up to 500 values
  5. 05Synthetic test-mode results

Use cases

  1. 01Assess signup risk before account creation
  2. 02Review VPN, proxy, and datacenter signals
  3. 03Verify contact details and domain reputation
  4. 04Test fraud-check logic with deterministic fixtures

MCP support

LayerCall provides a remote MCP server over Streamable HTTP. It exposes seven tools for scoring IPs, domains, devices, and users, plus email and phone checks and agent verification.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://www.layercall.com/api/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://www.layercall.com/api/mcpAuth required

Tools

7
ParameterTypeRequiredDescription
ipstringYesIPv4 or IPv6 address, e.g. 8.8.8.8
strictnessintegerNo0 lenient, 1 balanced (default), 2 strict, 3 paranoid. Moves the verdict thresholds only; the score is unchanged.

Details

From the project README

LayerCall SDKs

npm PyPI License Dependencies

Official clients for LayerCall — score an IP, email, phone number, domain, or a whole signup for fraud in a single call.

InstallDocs
Node / TypeScriptnpm i layercallnode/README.md
Pythonpip install layercallpython/README.md
CLInpx layercall ip 8.8.8.8below

Both clients have zero dependencies. A trust check sits on your signup path, which is the worst place in an application to introduce a dependency tree.

Get a free API key — 1,000 lookups a month, no card required, no daily cap.

Try it without installing anything

export LAYERCALL_API_KEY=tl_live_...
npx layercall ip 8.8.8.8
npx layercall email [email protected]
npx layercall domain example.com
npx layercall user --ip 1.2.3.4 --email [email protected]

What it returns

Every endpoint returns the same shape: a 0–100 risk_score, an allow | review | block verdict, and the signals behind it.

{
  "ip": "185.220.101.1",
  "risk_score": 60,
  "verdict": "review",
  "signals": {
    "is_vpn": true,
    "is_proxy": true,
    "is_datacenter": true,
    "is_tor": true,
    "recent_abuse": false
  },
  "geo": { "country": "DE", "city": "Berlin", "asn": "AS60729" },
  "vpn_provider": null
}

Two things worth reading before you integrate

Prefer step-up over rejection. The review band starts where an ordinary commercial VPN lands, and most VPN users are ordinary customers. Send them an OTP or a 3-D Secure challenge instead of a refusal: a real user clears it in seconds, an attacker cannot, and a false positive costs friction rather than a customer. This is what Stripe Radar and Sift both converged on.

null means unknown, not "no". newly_registered is null when a TLD publishes no RDAP (.de, .ru, .ac.uk among them), and mailbox_exists is null when the mail provider does not answer honestly — Gmail and Yahoo accept mail for addresses that do not exist. Treating either as a negative finding is the specific mistake these fields exist to prevent.

Endpoints

POST/GET /v1/score/ipVPN, proxy, Tor, datacenter, geo, ASN
/v1/verify/emailSyntax, MX, disposable, role account, domain age
/v1/lookup/phoneNumbering-plan validation worldwide, line type
/v1/score/domainRDAP age, registrar, MX/SPF/DMARC, risky TLD
/v1/score/deviceDevice fingerprint reputation + bot probability
/v1/score/userAll of the above weighted into one verdict
/v1/verify/agentWeb Bot Auth (RFC 9421) — prove an AI agent is who it claims
/v1/batchUp to 500 values of one type

Full reference: layercall.com/docs · OpenAPI 3.1: layercall.com/openapi.json

Testing without spending anything

Test-mode keys return deterministic synthetic data, drawn from ranges reserved for exactly this purpose — RFC 5737 addresses, example.com, the 555-01XX fiction block. Same shape and fields as production, so your assertions are real ones. They never bill, never hit live data sources, and never write to the shared reputation network.

Every fixture is documented, so you can assert on exact values rather than "did it return a number": layercall.com/docs/test-mode

MCP — call it from an AI agent

LayerCall speaks the Model Context Protocol over Streamable HTTP, so Claude Code, Claude Desktop, ChatGPT, Cursor, VS Code, Windsurf and Zed can run a fraud check mid-conversation. There is nothing to install — it is a remote server, so you add a URL and your API key:

{
  "mcpServers": {
    "layercall": {
      "url": "https://www.layercall.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Seven tools are exposed: score_ip, verify_email, lookup_phone, score_domain, score_device, verify_agent and score_user.

VS Code names the top-level key servers, not mcpServers. That one difference is the usual reason a copied config silently does nothing.

Per-client setup: layercall.com/docs/mcp

Framework middleware

Drop-in for the two places this usually goes. The middleware attaches req.trust and leaves the decision to you:

import { layercall } from "layercall/express";

app.post("/signup", layercall(), (req, res) => {
  if (req.trust.verdict === "block") return res.status(403).json({ error: "..." });
  if (req.trust.verdict === "review") flagForManualReview(req.trust);
  createAccount(req.body);
});

There is deliberately no autoBlock: true. A one-line install that starts rejecting people is the wrong default for a fraud tool — the failure is silent, it lands on real customers, and you find out from a support ticket.

By default it only scores POST/PUT/PATCH, because a global app.use() bills a lookup for every request including favicon.ico.

See node/src/express.ts and node/src/next.ts (scoreRequest, withTrust).

Guides

Written for someone mid-incident rather than someone shopping. Each one ends with what a naive version gets wrong — including the parts that need no LayerCall at all.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.