Skip to main content
Glama
README.md
# legible-check — AI, Web-to-Markdown, DeFi Verdicts & EVM Tools (MCP + OpenAI SDK + x402)

[![legible-check MCP connector](https://glama.ai/mcp/connectors/io.github.EzeAlfaro/legible-check/badges/score.svg)](https://glama.ai/mcp/connectors/io.github.EzeAlfaro/legible-check)
[![Legible Check MCP server](https://mcprush.com/badge/legible-check-mcp/card.svg)](https://mcprush.com/to/legible-check-mcp?ref=badge)

Remote **Streamable HTTP MCP server**, **OpenAI-compatible Edge Gateway**, and **x402 seller** providing 25+ real-time tools for AI agents, Cursor, Claude Code, Windsurf, n8n, Make.com, and Python/Node backends.

- **MCP Endpoint (Streamable HTTP + SSE):** `https://legible-check.ezealfa.workers.dev/mcp`
- **Glama Connector:** [io.github.EzeAlfaro/legible-check](https://glama.ai/mcp/connectors/io.github.EzeAlfaro/legible-check)
- **Developer API Keys (Free Starter Credits, No Crypto Required):** `https://legible-check.ezealfa.workers.dev/keys`
- **OpenAI SDK Base URL:** `https://legible-check.ezealfa.workers.dev/v1`
- **x402 Seller Directory (32,000+ audited endpoints):** `https://legible-check.ezealfa.workers.dev/directory`
- **OpenAPI 3.1 Schema:** `https://legible-check.ezealfa.workers.dev/openapi.json`
- **Receiving Wallets (x402):**
  - **Base (`eip155:8453`) & Celo (`eip155:42220`):** `0xc8844b6D05f5758A355E765e9f9841D5D1953E16`
  - **Solana (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`):** `BU68xE3VCAECR4QP7nG2FcKU8uKg7jqePGAYMFjkP6Qx`

---

## Connect in 30 Seconds

### Option A — Standard Bearer API Key (Cursor, Claude Desktop, n8n, OpenAI SDK — No Wallet Needed)
Generate a free starter key (`$0.20` included) at [`https://legible-check.ezealfa.workers.dev/keys`](https://legible-check.ezealfa.workers.dev/keys):

```json
{
  "mcpServers": {
    "legible-check": {
      "type": "streamable-http",
      "url": "https://legible-check.ezealfa.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer lgb_live_YOUR_API_KEY"
      }
    }
  }
}
```

Or use directly with the **OpenAI Python / Node SDK**:
```python
from openai import OpenAI

client = OpenAI(
    base_url="https://legible-check.ezealfa.workers.dev/v1",
    api_key="lgb_live_YOUR_API_KEY",
)
resp = client.chat.completions.create(
    model="llama-3.3-70b",
    messages=[{"role": "user", "content": "Explain Base EIP-3009 settlement in 2 sentences."}],
)
print(resp.choices[0].message.content)
```

### Option B — Keyless x402 Pay-Per-Call (Base, Celo, Solana)
No account or API key required:
1. Call any route or MCP tool without auth (`?dry_run=1` previews the schema for free).
2. Unpaid calls return HTTP `402` with `accepts[]` (`payTo`, `amount`, `asset`, `network`).
3. Sign an EIP-3009 `TransferWithAuthorization` (Base/Celo) or SPL `TransferChecked` (Solana) and retry with `PAYMENT-SIGNATURE` — gas is sponsored by the facilitator.

---

## Tools Catalogue

### AI Inference, Web Scraping & OSINT
| Tool / Route | Price (USD) | Description |
|---|---|---|
| `/v1/chat/completions` | `0.015` | OpenAI-compatible `Llama-3.3-70B` chat completions |
| `/ai/image` (`/v1/images/generations`) | `0.040` | GPU text-to-image generation (`FLUX.1-schnell`, base64 + data URL) |
| `/ai/extract-json` | `0.030` | Scrape any public HTTPS URL and extract structured JSON with `Llama-3.3-70B` |
| `/extract/markdown` | `0.020` | Clean URL-to-Markdown converter with SSRF protection and metadata |
| `/search/read` | `0.025` | Search the web and extract clean Markdown from top matching pages in one call |
| `/enrich/email` | `0.015` | Email syntax, live DNS-over-HTTPS MX records, SPF policy & disposable burner check |
| `/enrich/domain` | `0.020` | Domain DNS, TLS, security headers, tech hints & `robots.txt`/`llms.txt` inspection |
| `/enrich/github-repo` | `0.020` | GitHub repository stars, forks, license, release cadence & activity health |

### Free Pre-Audited DEX Router & Zero-Fee Base Token Launchpad (Zero x402 Header Needed)
| Tool / Route | Price | Description |
|---|---|---|
| `safe_swap_quote` (`GET /swap/quote`, UI at `/swap`) | **FREE** (`50 bps` DEX router fee) | Audits ERC-20 contract powers (`proxy`, `mint`, `pause`, liquidity) and builds non-custodial swap calldata via AugustusV6 / Li.Fi (Base, Arbitrum, Polygon) & Jupiter Metis (Solana) |
| `build_base_token_launch` (`POST /launch/tx`, UI at `/launch`) | **FREE** (`$0` launch fee, `80/20` LP fee split) | Builds non-custodial Base Mainnet `Clanker_v4` ERC-20 + Uniswap V4 WETH pool deploy calldata (`~$27.6k` starting MCap, 2s anti-snipe decay, 80% creator LP trading fees) |

### Quantitative Verdicts, DeFi, Macro Odds & Multi-Chain EVM (`base`, `polygon`, `arbitrum`, `celo`)
| Tool / Route | Price (USD) | Description |
|---|---|---|
| `/verdict/q-verdict` | `0.020` | Live quantitative `GO / WAIT / AVOID` execution verdict, 0-100 score & sizing |
| `/defi/yields` | `0.020` | Real-time DeFiLlama yield pool screener filtered by chain, symbol & TVL |
| `/market/polymarket` | `0.020` | Read-only implied macro & crypto probabilities from liquid Polymarket events |
| `/risk/token` | `0.020` | ERC-20 bytecode power audit (`proxy`, `mint`, `pause`, `owner`) + DEX liquidity |
| `/risk/portfolio` | `1.000` | Full wallet token valuation & contract risk grading |
| `/x402/feed` / `/x402/seller` | `0.025` / `0.020` | Bait-and-switch counterparty radar across 32,000+ tracked x402 endpoints |
| `/x402check` | `0.020` | Read-only preflight of any x402 endpoint + Coinbase CDP & PayAI catalog status |
| `/quant/risk` | `0.015` | Deterministic liquidation price, stop-loss & position sizing calculator |
| `/evm/recipient-check` | `0.015` | Pre-transfer recipient safety check (EOA vs contract, zero/burn address, activity) |
| `/evm/block` · `/evm/gas` · `/evm/tx-status` · `/crypto/price` | `0.010` | Live block header, EIP-1559 gas oracle, tx confirmation status & spot prices |
| `/evm/balance` · `/evm/nonce` · `/dex/quote` | `0.015` | Native balance, next nonce & live DEX liquidity/volume pair quotes |
| `/evm/token-balance` · `/evm/tx` · `/evm/receipt` · `/evm/token-info` · `/evm/contract` · `/evm/decode` | `0.015`–`0.020` | ERC-20 balances, decoded transactions, receipts, Sourcify ABI & calldata decoding |
| `/evm/portfolio` | `0.025` | Native balance + nonce + up to 10 ERC-20 balances in a single call |

## License

MIT