Skip to main content
Glama
README.md
# vigilix-mcp

<!-- mcp-name: io.github.zekinht0/vigilix-mcp -->

**One MCP server for all Vigilix x402 APIs: vet French companies (SIREN, BODACC), geocode French addresses and get hazard reports, query Polymarket / Kalshi history, and read any web page or PDF as Markdown. Pay per call in USDC on Base via [x402](https://x402.org). No account, no API key — and free tools work without any wallet.**

`vigilix-mcp` is a local [MCP](https://modelcontextprotocol.io) server (stdio) that exposes the endpoints of [siren.vigilix.fr](https://siren.vigilix.fr), [predict.vigilix.fr](https://predict.vigilix.fr) and [read.vigilix.fr](https://read.vigilix.fr) as MCP tools. Paid calls are settled on the fly from a wallet you control, with strict spending caps.

## Tools

Tool names are prefixed by domain: `company_*`, `address_*`, `prediction_*`, `web_*`.

### Companies — official French data (siren.vigilix.fr)

| Tool | What it does | Price per call |
|---|---|---|
| `company_health_check` | **Start here to vet a French company:** identity, officers, insolvency proceedings, 24-month legal events, last accounts, risk signals and a green/orange/red verdict | $0.02 |
| `company_by_domain` | **Who is behind this website?** Domain → SIREN (read from its legal notice pages) + the full health check | $0.03 |
| `company_search` | Search companies by name → SIREN, status, NAF code, city | $0.002 |
| `company_profile` | Company profile by SIREN: status, head office, directors, headcount, revenue | $0.005 |
| `company_bodacc_notices` | BODACC legal notices: insolvency proceedings, strike-off, latest notices | $0.005 |

### Addresses — France (siren.vigilix.fr)

| Tool | What it does | Price per call |
|---|---|---|
| `address_geocode` | Address → GPS coordinates, normalized address, INSEE code | $0.003 |
| `address_reverse_geocode` | GPS coordinates → nearest French address | $0.003 |
| `address_risk_report` | Natural and industrial hazard report (Géorisques) for an address or point | $0.02 |

### Prediction markets — Polymarket & Kalshi, delayed ≥ 24 h (predict.vigilix.fr)

| Tool | What it does | Price per call |
|---|---|---|
| `prediction_search_markets` | Search markets by text or id → market id, question, status, URL, `closed_time`; `resolved_before_cutoff: true` lists markets servable by `prediction_market_pre_resolution` | Free |
| `prediction_market_history` | Price history (bid/ask/mid/last) at 5m, 1h or 1d | $0.002 |
| `prediction_market_orderbook` | Top-10 order book closest to an instant | $0.005 |
| `prediction_market_pre_resolution` | Price trajectory and order books in the hours before resolution | $0.01 |
| `prediction_resolutions` | Resolved markets with result and last price before close | $0.002 |
| `prediction_movers` | Markets whose odds moved the most over 1h / 6h / 24h / 7d | $0.003 |

### Web reader — any page or PDF to Markdown (read.vigilix.fr)

| Tool | What it does | Price per call |
|---|---|---|
| `web_read` | Read a web page or PDF found during a search (articles of association, BODACC notice, company website…) → clean Markdown or text, title, author, date, links | $0.002 |

Paid tools are settled in USDC on Base mainnet. **You are not charged when a call fails or finds nothing** (invalid input, not found, no SIREN found on a website, website unreachable, not enough market data, upstream source unavailable). Invalid arguments (a SIREN with a bad checksum, a URL or an IP address given as `domain`…) are rejected locally before any network call.

15 tools in total: 14 paid, 1 free. Every paid tool also has a [free sample](#free-samples-without-a-wallet).

## Usage examples

Ask your agent in plain language; it picks the tools.

**Companies**
- *"Can I trust the French company with SIREN 552081317?"* → `company_health_check` ($0.02)
- *"Find the SIREN of Danone, then vet it."* → `company_search` then `company_health_check` ($0.022)
- *"Who runs the website www.example.fr, and can I trust them?"* → `company_by_domain` ($0.03)
- *"Is this supplier under receivership?"* → `company_bodacc_notices` ($0.005)

**Addresses**
- *"GPS coordinates of 10 rue de la Paix, Paris?"* → `address_geocode` ($0.003)
- *"Flood, radon and Seveso risks at Place de la Mairie, Saint-Pierre-de-Chartreuse (38380)?"* → `address_risk_report` ($0.02)

**Prediction markets**
- *"Find Polymarket markets about Bitcoin."* → `prediction_search_markets` (free, no wallet needed)
- *"Daily price history of Polymarket market 559651 for the last 3 months."* → `prediction_market_history` with `interval: "1d"` ($0.002)
- *"How did the odds move in the 24 hours before this market resolved?"* → `prediction_search_markets` with `resolved_before_cutoff: true` (free), then `prediction_market_pre_resolution` ($0.01)
- *"Which markets moved the most over the last 7 days of available data?"* → `prediction_movers` with `window: "7d"` ($0.003)

**Web reader**
- *"Read the articles of association (statuts) PDF at this URL and list the shareholders' clauses."* → `web_read` ($0.002)
- *"Open the BODACC notice you just found and summarize the judgment."* → `web_read` ($0.002)
- *"Check the company website: what do they sell, and is the legal notice page consistent with the SIREN?"* → `web_read` (with `links: true` to follow up) then `company_by_domain` ($0.032)

## Quick start

No wallet needed to start: free tools work right away, and each paid tool answers with its real price (read live from the API), how to enable payments and a real sample response, without paying anything. This is also a safe way to check the installation.

### Claude Code

```bash
# Without a wallet (free tools + prices)
claude mcp add vigilix -- npx -y vigilix-mcp

# With a wallet: type the key without echo so it does not land in your shell history
read -rs EVM_PRIVATE_KEY
claude mcp add vigilix --scope user -e EVM_PRIVATE_KEY="$EVM_PRIVATE_KEY" -- npx -y vigilix-mcp
unset EVM_PRIVATE_KEY
```

### Claude Desktop

Edit `claude_desktop_config.json` (Settings → Developer → Edit Config):

```json
{
  "mcpServers": {
    "vigilix": {
      "command": "npx",
      "args": ["-y", "vigilix-mcp"],
      "env": {
        "EVM_PRIVATE_KEY": "0x…dedicated wallet key…",
        "VIGILIX_MAX_PRICE_USD": "0.05",
        "VIGILIX_SESSION_BUDGET_USD": "1.00"
      }
    }
  }
}
```

Leave out the whole `env` block to run without a wallet.

### Cursor

Add to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project — never commit it):

```json
{
  "mcpServers": {
    "vigilix": {
      "command": "npx",
      "args": ["-y", "vigilix-mcp"],
      "env": { "EVM_PRIVATE_KEY": "0x…dedicated wallet key…" }
    }
  }
}
```

Any other MCP client that can launch a stdio server works the same way: command `npx -y vigilix-mcp`, plus the environment variables below.

## Wallet configuration

Paid tools need a wallet; free tools never do. Without `EVM_PRIVATE_KEY`, a paid tool returns its price, the variable to set, a link to this section and a [free sample](#free-samples-without-a-wallet) instead of your data, and nothing is paid.

1. **Create a dedicated wallet** (any EVM wallet: MetaMask, Rabby, Coinbase Wallet, `cast wallet new`…). Never use your main wallet: MCP clients store the key in plain text in their configuration file.
2. **Fund it with a few dollars of USDC on Base** (mainnet). $1 covers 50 company health checks or 500 searches. **No ETH is needed**: payments are gasless USDC authorizations (EIP-3009) settled by the x402 facilitator.
3. **Export its private key** and set it as `EVM_PRIVATE_KEY` in the `env` of the MCP server (see [Quick start](#quick-start)). With or without the `0x` prefix.
4. **Optionally adjust the spending caps** below, then restart your MCP client. The startup line on stderr shows `paid mode, wallet 0x…` (public address only).

### Spending caps

| Variable | Purpose | Default |
|---|---|---|
| `EVM_PRIVATE_KEY` | Private key of the dedicated paying wallet. Optional: without it, free tools work and paid tools report their price and a free sample. | — |
| `VIGILIX_MAX_PRICE_USD` | Maximum price accepted for a single call | `0.05` |
| `VIGILIX_SESSION_BUDGET_USD` | Maximum total spend per server process (session), all services combined | `1.00` |
| `VIGILIX_API_URL` | siren API base URL (for testing only) | `https://siren.vigilix.fr` |
| `VIGILIX_PREDICT_API_URL` | predict API base URL (for testing only) | `https://predict.vigilix.fr` |
| `VIGILIX_READ_API_URL` | read API base URL (for testing only) | `https://read.vigilix.fr` |

### Safety guarantees

- Before signing anything, the server checks the payment request returned by the API (HTTP 402) and **refuses to pay** unless all of these hold:
  - network is Base mainnet (`eip155:8453`), scheme `exact`;
  - asset is USDC on Base (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`);
  - recipient (`payTo`) is exactly the vigilix address `0x376d3415E3AC9E9090396737c81bB4C62a3839dF`, hard-coded in the package;
  - the amount is at most the tool's listed price above **and** at most `VIGILIX_MAX_PRICE_USD`;
  - the session budget (`VIGILIX_SESSION_BUDGET_USD`) is not exceeded (concurrent calls included).
- The server signs **exactly the amount announced by the 402**, never more, and checks the signed payload against it before sending.
- A tool listed as free is never paid, even if the API ever answered it with a 402.
- **Price changes:** the listed prices are part of the package. If the API ever raises a price, calls to that tool are refused until you update `vigilix-mcp` (`npx -y vigilix-mcp@latest`, or restart your MCP client so `npx` fetches the new version).
- The key is never logged, written to disk or included in tool results; it is removed from the process environment at startup. Only the wallet's public address is printed (on stderr) at startup.
- Every paid result includes a `payment` block (`amount_usd`, `tx`, `network`, `session_spent_usd`) so you can verify the transaction on [Basescan](https://basescan.org).

## Output

Successful calls return the API's JSON as structured content (`payment` is `null` for free tools):

```json
{
  "data": { "...": "API response" },
  "payment": { "amount_usd": "0.002", "tx": "0x…", "network": "base", "session_spent_usd": "0.002" }
}
```

Requests carry the User-Agent `vigilix-mcp/<version>`.

### Free samples (without a wallet)

Each Vigilix API exposes a free sample route for every paid endpoint (`/v1/sample/*`, declared as `x-sample-url` in its OpenAPI): the real paid response for a fixed public example, refreshed at most once a day (names of natural-person officers are redacted). Without a wallet, a paid tool calls that route and returns it next to the price and setup instructions, clearly marked as an example:

```json
{
  "discovery_mode": true,
  "tool": "company_health_check",
  "price_usd": "0.02",
  "paid": false,
  "sample": true,
  "sample_notice": "This is an example, not your query; configure a wallet to get your own result.",
  "sample_url": "https://siren.vigilix.fr/v1/sample/sante",
  "sample_data": { "siren": "552081317", "verdict": { "level": "green" }, "...": "..." }
}
```

The sample shows the agent (and you) exactly what the tool returns before you fund a wallet. It is never the answer to your query, and the sample route is never paid: if it is unavailable, the tool falls back to the price and setup instructions only (`"sample": false`).

## Data sources & licences

French data comes from official open data, redistributed under the [Licence Ouverte / Etalab 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/):

- Companies: INSEE Sirene and RNE (INPI)
- Legal notices: BODACC (DILA)
- Addresses: Base Adresse Nationale (BAN) via IGN Géoplateforme
- Hazards: Géorisques (Ministère de la Transition écologique, BRGM)

The web reader fetches only static, public content: no JavaScript, robots.txt respected (crawler `VigilixReader/1.0`), no login, paywall or captcha bypass; private and local addresses are never fetched. A failed read (blocked, robots, timeout, unsupported or empty content) is not charged.

Prediction market data is independently recorded from the public Polymarket and Kalshi APIs and served with a delay of at least 24 hours. Vigilix is not affiliated with, endorsed by or sponsored by Polymarket or Kalshi. Provided as is, for informational and research purposes only; not financial, legal or investment advice.

API documentation for agents: siren [llms.txt](https://siren.vigilix.fr/llms.txt) · [OpenAPI](https://siren.vigilix.fr/openapi.json) — predict [llms.txt](https://predict.vigilix.fr/llms.txt) · [OpenAPI](https://predict.vigilix.fr/openapi.json) — read [llms.txt](https://read.vigilix.fr/llms.txt) · [OpenAPI](https://read.vigilix.fr/openapi.json)

## Upgrading

### From 0.2.x to 0.3.0

No breaking change: tool names, arguments and outputs of 0.2.0 are unchanged.

- New tool `company_by_domain` ($0.03): domain → SIREN + full health check. It fits the default `VIGILIX_MAX_PRICE_USD` ($0.05); add it to your allow-lists if your client uses them.
- `prediction_search_markets` accepts `resolved_before_cutoff` (boolean) and its results carry `closed_time`.
- `prediction_market_pre_resolution` explains a "not enough data" answer (never charged) and how to find servable markets.
- Without a wallet, paid tools now also return a free sample response (`"sample": true`), see [Free samples](#free-samples-without-a-wallet). Code that reads the discovery result should check `sample` before using `sample_data`.

Update with `npx -y vigilix-mcp@latest`, or restart your MCP client so `npx` fetches the new version.

### From 0.1.x

0.2.0 renames the tools with a domain prefix: `search_french_company` → `company_search`, `get_french_company` → `company_profile`, `check_bodacc_notices` → `company_bodacc_notices`, `geocode_french_address` → `address_geocode`, `reverse_geocode_france` → `address_reverse_geocode`, `french_address_risk_report` → `address_risk_report`. Agents pick up the new names automatically; only update saved prompts or allow-lists that name tools explicitly.

## Development

```bash
npm install
npm test                  # unit tests (builds first; includes a check against the 3 live OpenAPI documents)
npm run test:integration  # real calls to free routes and free samples, real 402 check on every paid route, no payment
npm run gen:schemas       # regenerate input schemas from the live OpenAPI documents (siren + predict + read)
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list
```

## En français

`vigilix-mcp` est un serveur MCP local qui regroupe toutes les API x402 de Vigilix : vérification d'entreprises françaises (`company_health_check` pour commencer, `company_by_domain` pour trouver l'entreprise derrière un site web, recherche SIREN, fiche, annonces BODACC), géocodage d'adresses et rapport de risques Géorisques, historique des marchés de prédiction Polymarket / Kalshi (délai d'au moins 24 h), et lecture d'une page web ou d'un PDF trouvé lors d'une recherche (statuts, annonce BODACC, site d'une entreprise) en Markdown avec `web_read`. Les outils payants sont réglés à l'unité en USDC sur Base via x402, sans compte ni clé d'API ; `prediction_search_markets` est gratuit. Sans wallet, les outils gratuits fonctionnent et chaque outil payant indique son prix, comment configurer `EVM_PRIVATE_KEY` et renvoie un exemple réel de réponse (aperçu gratuit, marqué `"sample": true`, qui n'est pas le résultat de votre requête), sans rien payer. Pour payer, utilisez **un wallet dédié** contenant seulement quelques dollars d'USDC (pas besoin d'ETH). Le serveur vérifie avant chaque paiement le réseau, l'actif, le destinataire, le prix annoncé (jamais plus que le 402 ni que le prix listé), le plafond par appel et le budget de session. Vous n'êtes pas débité si l'appel échoue ou ne trouve rien.

## License

MIT

TDQS

A4.3/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: forward geocoding, reverse geocoding, property risk reporting, company search, company profile lookup, and BODACC legal notices. Although several tools accept addresses or coordinates, the descriptions make the resource and action boundaries clear.

Naming Consistency4/5

All tool names use snake_case and are readable, with mostly verb_noun or action-oriented patterns. There are minor inconsistencies such as reverse_geocode_france vs geocode_french_address and the noun-style french_address_risk_report, but the convention is still predictable overall.

Tool Count5/5

Six tools is well-scoped for a focused French geodata and company due-diligence server. Each tool covers a distinct workflow without obvious redundancy.

Completeness5/5

The surface covers the key read-only workflows: forward and reverse geocoding, address risk reporting, company search, company profile lookup by SIREN, and BODACC legal notices. No obvious lifecycle gap remains for the stated French address and company intelligence domain.