Skip to main content
Glama
VektorScan MCP Server

VektorScan MCP Server

README.md
# VektorScan MCP Server (x402 Token Risk & Security Audit)

Official Model Context Protocol (MCP) stdio server for **VektorScan** - real-time multi-chain token risk intelligence and security audits powered by live telemetry from DexScreener, GoPlus Security, and RugCheck Solana.

- **Live Production API:** `https://api.ecosy.pro`
- **Interactive OpenAPI Docs:** `https://api.ecosy.pro/docs`
- **Web Scanner & Agentic Portal:** `https://labs.ecosy.pro`
- **Supported Chains:** Solana (`solana`), Base (`base`), Ethereum (`ethereum`)
- **Micropayment Protocol:** HTTP 402 (`x402` v2) via USDC on Base and Solana

---

## Provided MCP Tools

### 1. `vektorscan_token_summary` (Free)
Fetches real-time market telemetry, liquidity depth, price action, and basic security signals across Solana, Base, and Ethereum. Zero authentication required.
- **Parameters:**
  - `chain` (*string*, required): `"solana" | "base" | "ethereum"`
  - `address` (*string*, required): EVM contract address (`0x...`) or Solana SPL mint address.

### 2. `vektorscan_token_audit` (x402 Micropayment: $0.02 USDC)
Runs an exhaustive token security evaluation calculating a composite 0-100 safety score, risk level (`LOW`, `MODERATE`, `HIGH`, `CRITICAL`), honeypot detection, mint/freeze authorities, holder concentration, and LP lock status.
- **Parameters:**
  - `chain` (*string*, required): `"solana" | "base" | "ethereum"`
  - `address` (*string*, required): Token mint or contract address.
  - `payment_signature` (*string*, optional): Signed x402 payment proof string. If omitted, returns an HTTP 402 challenge with exact Base and Solana `payTo` treasury addresses.

---

## Quickstart & Installation

Requires **Node.js >= 18**.

### Option A: Zero-Install via `npx` from GitHub
```bash
npx -y github:macmac08082002/vektorscan-mcp
```

### Option B: Local Clone & Build
```bash
git clone https://github.com/macmac08082002/vektorscan-mcp.git
cd vektorscan-mcp
npm install
npm run build
npm start
```

---

## Configuration for AI Clients

The server defaults to `https://api.ecosy.pro`. You can optionally override the endpoint using the `VEKTORSCAN_API_URL` environment variable.

### 1. Claude Desktop
Add to `claude_desktop_config.json` (`%APPDATA%\Claude\claude_desktop_config.json` on Windows or `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):

```json
{
  "mcpServers": {
    "vektorscan": {
      "command": "npx",
      "args": [
        "-y",
        "github:macmac08082002/vektorscan-mcp"
      ],
      "env": {
        "VEKTORSCAN_API_URL": "https://api.ecosy.pro"
      }
    }
  }
}
```

### 2. Cursor IDE
Add to `.cursor/mcp.json` (or Cursor Settings > MCP Servers):

```json
{
  "mcpServers": {
    "vektorscan": {
      "command": "npx",
      "args": [
        "-y",
        "github:macmac08082002/vektorscan-mcp"
      ],
      "env": {
        "VEKTORSCAN_API_URL": "https://api.ecosy.pro"
      }
    }
  }
}
```

### 3. Antigravity CLI & IDE
Add to `~/.gemini/antigravity-cli/mcp.json` or your workspace MCP configuration:

```json
{
  "mcpServers": {
    "vektorscan": {
      "command": "npx",
      "args": [
        "-y",
        "github:macmac08082002/vektorscan-mcp"
      ],
      "env": {
        "VEKTORSCAN_API_URL": "https://api.ecosy.pro"
      }
    }
  }
}
```

### 4. Generic Stdio Agent / Local Binary
If cloned locally:

```json
{
  "name": "vektorscan-mcp",
  "transport": "stdio",
  "command": "node",
  "args": [
    "/path/to/vektorscan-mcp/dist/index.js"
  ],
  "env": {
    "VEKTORSCAN_API_URL": "https://api.ecosy.pro"
  }
}
```

---

## x402 Micropayment Treasury Details

When calling `vektorscan_token_audit` without a payment signature, the server returns an explicit HTTP 402 challenge with the following live treasury addresses:

| Network | Chain ID / CAIP-2 | Asset | Amount | Treasury Address (`payTo`) |
| :--- | :--- | :--- | :--- | :--- |
| **Base** | `eip155:8453` | USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`) | 0.02 USDC (`20000`) | `0x532fEE07f5c304822F62879f98f52b31d88b9200` |
| **Solana** | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | USDC (`EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`) | 0.02 USDC (`20000`) | `FSBUruvMdWc4fHmZjTZC7B1DG9c1YWYX1PnuGq9uh2Xa` |

### Direct Live API Verification (`curl`)
```bash
# Free tier token summary (HTTP 200)
curl -s "https://api.ecosy.pro/api/free/token-summary?chain=solana&address=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

# Paid x402 audit challenge (HTTP 402 Payment Required)
curl -i -s "https://api.ecosy.pro/api/x402/token-audit?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
```

---

## Testing

Run the automated live production smoke test suite:
```bash
npm run build
npm test
```
The smoke test spawns the compiled stdio server with default configuration, verifies `serverInfo.version`, runs `tools/list`, queries live production (`https://api.ecosy.pro`) for Solana USDC market summary, and validates the HTTP 402 x402 payment challenge response.

---

## Links

- **Live Web Scanner:** [https://labs.ecosy.pro](https://labs.ecosy.pro)
- **OpenAPI / Swagger Docs:** [https://api.ecosy.pro/docs](https://api.ecosy.pro/docs)
- **x402 Discovery Manifest:** [https://api.ecosy.pro/.well-known/x402.json](https://api.ecosy.pro/.well-known/x402.json)
- **License:** MIT