# io.github.pgalyen1987/gate402-mcp (npm · gate402-mcp)

Pay-per-call agent APIs over x402: web scraping, token compression, and semantic cache.

- Trust score: 66/100 (medium)
- Change this week: +20
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `gate402-mcp`: 66/100 (this document), [markdown](https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp.md), [page](https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp)

## Channel facts

- Registry: `npm`
- Package: `gate402-mcp`
- Version: `0.5.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (98 of 102), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (98 of 102), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 8 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 77/100
  - AI-judged instruction clarity (excellent).
  - Tool/resource definitions use about 825 tokens (~75/item across 11 items; 11 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add pgalyen1987-gate402-mcp -- npx -y gate402-mcp
```

### Codex

```bash
codex mcp add pgalyen1987-gate402-mcp -- npx -y gate402-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "pgalyen1987-gate402-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "gate402-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add pgalyen1987-gate402-mcp --command npx --arg -y --arg gate402-mcp
```

### Hermes

```yaml
mcp_servers:
  pgalyen1987-gate402-mcp:
    command: "npx"
    args: ["-y", "gate402-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "pgalyen1987-gate402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gate402-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 66, +45)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional regression] Security disclosure: fail → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] Schema quality: unverified → excellent
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional] Licence: MIT

### 2026-08-01 (score 21, +16)

- [functional improvement] Tool coverage: unverified → 100

### 2026-07-31 (score 5, −23)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 28, −18)

- [security regression] Malware scan: pass → unverified

### 2026-07-27 (score 46)

First indexed and scored.

## MCP tools (11)

### `gate402_scrape` (~66 tokens)

Fetch any public URL, render client-side JS, strip nav/ads, and return clean LLM-ready Markdown. Pay-per-call ($0.002) via Gate402; free tier on first runs.

Input parameters:

- `url` (string, required): Public URL to fetch and convert to Markdown.

### `gate402_scrape_stealth` (~60 tokens)

Hardened headless fetch for JS-heavy or lightly bot-protected pages. Use when gate402_scrape is blocked or returns little content. Pay-per-call ($0.05).

Input parameters:

- `url` (string, required): Protected URL to scrape.

### `gate402_minify` (~83 tokens)

Compress text to cut downstream LLM token spend (~40%): strips filler, collapses JSON, densifies prose. Pay-per-call ($0.005/10k tokens).

Input parameters:

- `aggressive` (boolean): Compress harder at some fidelity cost.
- `format` (string): Hint for the compressor (default auto).
- `text` (string, required): Text to compress.

### `gate402_dedup` (~112 tokens)

Semantic vector-cache lookup: exact-match then 0.88 cosine similarity. Returns a cache hit/miss for a query, sub-10ms. Pay-per-call ($0.001 hit / $0.003 miss).

Input parameters:

- `namespace` (string): Optional cache namespace.
- `query` (string, required): Text to look up in the cache.
- `storeOnMiss` (boolean): Store the query on a miss for future hits.
- `vector` (array): Optional embedding to store on a miss.

### `gate402_onchain` (~90 tokens)

On-chain wallet & token intelligence on Base: native ETH + ERC-20 balances, EOA/contract detection, tx count, and token metadata. Pay-per-call ($0.01).

Input parameters:

- `address` (string, required): Base address — a wallet or an ERC-20 token contract (0x-hex).
- `tokens` (array): Optional extra ERC-20 contract addresses to check balances for.

### `gate402_dex` (~58 tokens)

Live DEX price, liquidity, and 24h volume for a Base token across its trading pairs. Pay-per-call ($0.01).

Input parameters:

- `address` (string, required): Base ERC-20 token contract address (0x-hex).

### `gate402_news` (~77 tokens)

Recent news headlines + heuristic bull/bear sentiment for a ticker, company, or topic. Pay-per-call ($0.02).

Input parameters:

- `limit` (number): Max headlines (1–25, default 10).
- `query` (string, required): Ticker, company, or topic (e.g. "NVDA", "ethereum ETF").

### `gate402_edgar` (~121 tokens)

Latest SEC EDGAR filings (10-K/10-Q/8-K) for a US ticker or CIK, with direct document links. Pay-per-call ($0.02).

Input parameters:

- `cik` (string): SEC CIK number (alternative to ticker).
- `form` (string): Optional filing-type filter, e.g. "10-K", "8-K".
- `limit` (number): Max filings (1–40, default 10).
- `ticker` (string): US stock ticker, e.g. AAPL (ticker or cik required).

### `gate402_token_count` (~50 tokens)

FREE. Estimate the token count of a string (cl100k/o200k tokenizer). Use to budget context windows. No payment required.

Input parameters:

- `text` (string, required): Text to count tokens for.

### `gate402_html_to_md` (~54 tokens)

FREE. Convert an HTML string you already have into clean Markdown. (To FETCH a live page instead, use gate402_scrape.) No payment required.

Input parameters:

- `html` (string, required): HTML to convert to Markdown.

### `gate402_json_repair` (~54 tokens)

FREE. Coerce malformed / LLM-mangled JSON (trailing commas, single quotes, unquoted keys) into valid JSON. No payment required.

Input parameters:

- `text` (string, required): Broken JSON string to repair.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp#diagnostics

## Score history

- 2026-08-03: 66
- 2026-08-02: 66
- 2026-08-01: 21
- 2026-07-31: 5
- 2026-07-30: 28
- 2026-07-28: 46
- 2026-07-27: 46

## Links

- npm package: https://www.npmjs.com/package/gate402-mcp
- Socket report: https://socket.dev/npm/package/gate402-mcp
- Repository: https://github.com/pgalyen1987/gate402-mcp
- Changelog RSS feed: https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/pgalyen1987-gate402-mcp/gate402-mcp
