# npm Package Leak Detector MCP

> npm Package Leak Detector MCP is a paid API for AI agents from api.m2mcent.com, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-16).

Scans npm package data to detect leaked secrets, credentials, or sensitive information embedded in package contents.

## Facts

- Endpoint: POST https://api.m2mcent.com/npm-package-leak-mcp/api/process?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-leak-detector-mcp-f7291fb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uskbiQE2GdCys2PJRwP9B

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability npm-package-leak-detector-mcp-f7291fb0 -d '<json body>'
```

Example prompt: Can you scan this npm package data for any leaked secrets, API keys, or hardcoded credentials? Here's the package content: 'const apiKey = "sk-abc123..."; module.exports = apiKey;'

## When to prefer this

Choose this endpoint when you need to programmatically detect leaked secrets or sensitive credentials within npm package content — especially before publishing packages, auditing third-party dependencies, or running automated supply-chain security checks. Prefer this over generic secret-scanning tools when working specifically with npm package data formats.

## Known failure modes

- Empty or malformed 'data' field returns an error or empty result
- Very large package payloads may time out or be rejected
- Obfuscated or minified code may reduce detection accuracy
- False positives may be returned for placeholder or example credential strings
- Non-npm or unrecognized data formats may not be analyzed correctly

## How this service works

The premier global index of 1,069 monetized MCP nodes across 205 specialized subdomains. Gasless USDC runtime settlements via x402 V2 Spec on Base L2. Save 95% token context.

## Output

Returns an analysis report identifying any detected leaked secrets, API keys, hardcoded credentials, tokens, or other sensitive data found within the provided npm package data, including details about the type and location of each finding.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-leak-detector-mcp-f7291fb0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.m2mcent.com](https://www.zero.xyz/host/api.m2mcent.com/llms.txt)
