Skip to main content
Glama
@intelliacore/mcp-afip

@intelliacore/mcp-afip

by HamzaQai
README.md
# `@intelliacore/mcp-afip` (v1.2.0)

Official [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for **Intelliacore** (`https://intelliacore.fr` · `https://api.intelliacore.fr`) — equipping Claude Desktop, Cursor, Windsurf, OpenAI Agents, Antigravity, LangGraph, and autonomous x402 agents with **12 production fraud-intelligence & forensic tools**.

## Highlights

- **Zero-Key Instant Start**: 4 forensic & Threat Graph tools (`afip_inspect_rib_or_invoice`, `afip_inspect_email_eml`, `afip_inspect_sms_whatsapp`, `afip_threat_explorer`) work **immediately without an API key**.
- **Full 12-Microproduct Suite**: Add `AFIP_API_KEY` (free 500-check/mo Sandbox in 10 seconds at **[https://intelliacore.fr/offre/](https://intelliacore.fr/offre/)**) or pay autonomously per request via **x402 USDC on Base** (`AFIP_X402_PAYMENT` / `X-PAYMENT`) to unlock real-time IBAN/phone/wallet screening, storefront scam audits, INSEE SIRENE + AMF KYB, brand impersonation radar, on-chain crypto wallet intel, 5-layer Copilot takedown briefs, and Give-to-Get credit mutualization.
- **Dual Transport**: Run locally via `stdio` (`npx -y @intelliacore/mcp-afip`) or connect zero-install over **Remote Streamable HTTP** (`https://api.intelliacore.fr/mcp`).

---

## 12 Tools Included (v1.2.0)

| # | Tool | Endpoint | Auth | Capability |
| :-: | --- | --- | :---: | --- |
| 1 | `afip_screen_identifier` | `POST /api/v1/screening/check` | `AFIP_API_KEY` / `x402` | Screen an IBAN (FR/EU), Moroccan RIB, `+33`/`+212`/E.164 phone, BTC/ETH/TRX/LTC/XRP/TON/Solana wallet, domain, URL, email, or BIC in `< 50 ms`. |
| 2 | `afip_screen_batch` | `POST /api/v1/screening/batch` | `AFIP_API_KEY` / `x402` | Screen 1 to 100 mixed identifiers in one synchronous call. |
| 3 | `afip_inspect_rib_or_invoice` | `POST /api/v1/acquisition/inspect-document` | Optional (Free) | Zero-storage Fake RIB & Supplier Invoice forensics (text or base64 PDF): Mod-97, ECB/BAM bank code vs stated supplier mismatch, IBAN/BIC country conflict, French SIRET + foreign IBAN, Canva/Photoshop & `%%EOF` PDF tampering. |
| 4 | `afip_inspect_email_eml` | `POST /api/v1/acquisition/ingest-eml` | Optional (Free) | Zero-network `.eml` header & MIME body forensics: SPF/DKIM/DMARC spoofing, Reply-To BEC traps, malicious link domains, and embedded RIB anomalies. |
| 5 | `afip_inspect_sms_whatsapp` | `POST /api/v1/acquisition/whatsapp-assistant` | Optional (Free) | FR / EN / Arabic / Moroccan Darija SMS & WhatsApp lure analyzer (fake bank advisor, parcel/ANTAI smishing, mule extraction). |
| 6 | `afip_storefront_audit` | `POST /api/v1/self-serve/storefront-audit` *(fallback `/threat-intel`)* | `AFIP_API_KEY` / `x402` | Merchant & e-commerce website legitimacy audit: fake-shop infrastructure clustering, HTTP liveness, brand impersonation, and dynamic threat score. |
| 7 | `afip_company_kyb_check` | `GET /api/v1/self-serve/regulator-cross-check` | `AFIP_API_KEY` / `x402` | Official French INSEE SIRENE corporate verification cross-checked against AMF/ACPR financial regulator blacklists & clone alerts. |
| 8 | `afip_brand_impersonation_scan` | `POST /api/v1/self-serve/brand-monitor` | `AFIP_API_KEY` / `x402` | Typosquatting, homograph & lookalike phishing domain radar across confirmed threat feeds and Certificate Transparency logs. |
| 9 | `afip_crypto_wallet_intel` | `POST /api/v1/self-serve/crypto-intel` | `AFIP_API_KEY` / `x402` | OFAC sanctions check + live BTC / ETH / TRX balance, transaction velocity, and 1-hop consolidation counterparties. |
| 10 | `afip_threat_explorer` | `GET /api/v1/self-serve/explorer` | Optional (Tiered) | Explore the Threat Intelligence Graph for a domain, brand slug, wallet, or IP cluster (`AFIP_API_KEY` unlocks full IPs, HTML titles & SHA-256 proofs). |
| 11 | `afip_copilot_takedown_brief` | `POST /api/v1/self-serve/copilot-investigate` | `AFIP_API_KEY` / `x402` | 5-layer forensic investigation brief + ready-to-send registrar/hosting abuse takedown notice. |
| 12 | `afip_mutualize_signal` | `POST /api/v1/acquisition/mutualize` | `AFIP_API_KEY` | Give-to-Get B2B fraud signal sharing — earn `+25` to `+250` bonus API credits per corroborated indicator. |

> **Governance note**: Every match returns a risk score, explicit reasons, dated SHA-256 evidence provenance, and a recommended action. No match is never an automatic green light; final decision always remains with your organisation.

---

## Quickstart

### Option A — Local `stdio` via `npx` (Claude Desktop, Cursor, Windsurf, Antigravity)

```json
{
  "mcpServers": {
    "intelliacore-afip": {
      "command": "npx",
      "args": ["-y", "@intelliacore/mcp-afip"],
      "env": {
        "AFIP_API_KEY": "afip_your_key_optional_for_public_tools",
        "AFIP_API_URL": "https://api.intelliacore.fr"
      }
    }
  }
}
```

Or run directly from your terminal:

```bash
AFIP_API_KEY="afip_your_key" npx -y @intelliacore/mcp-afip
```

### Option B — Zero-Install Remote Streamable HTTP (`https://api.intelliacore.fr/mcp`)

Connect any MCP client supporting **Streamable HTTP** directly to Intelliacore's hosted endpoint — no local Node.js runtime required:

```json
{
  "mcpServers": {
    "intelliacore-remote": {
      "type": "streamable-http",
      "url": "https://api.intelliacore.fr/mcp",
      "headers": {
        "X-API-Key": "afip_your_key"
      }
    }
  }
}
```

### Get an API Key or Pay Per Call (`x402` USDC)

- **Free Sandbox & Self-Serve Plans**: Provision a `500 checks/month` Sandbox key in 10 seconds (no card required) or upgrade to Starter/Growth/Scale at **[https://intelliacore.fr/offre/](https://intelliacore.fr/offre/)**.
- **Autonomous Agent `x402` USDC**: Agents without a subscription can settle calls per request on Base (`eip155:8453`) using an `X-PAYMENT` USDC authorization header (`AFIP_X402_PAYMENT`).

---

## Development & Verification

```bash
npm install
npm run typecheck
npm test
npm run build
```

TDQS

A3.8/5.0

Scored across 12 tools

Disambiguation4/5

Each tool targets a fairly distinct artifact (single identifier vs batch, invoice/RIB, .eml, SMS, storefront, company, brand, wallet) and the descriptions make the boundaries explicit. Mild overlap remains between afip_threat_explorer, afip_screen_identifier and afip_brand_impersonation_scan, since all three can be pointed at a domain or wallet, so an agent may hesitate on which to pick first.

Naming Consistency4/5

All 12 tools share the afip_ prefix and snake_case, so they are instantly recognizable as one family. The internal pattern wobbles between verb_noun (screen_identifier, inspect_email_eml) and noun_action (company_kyb_check, brand_impersonation_scan, crypto_wallet_intel), which is a minor deviation rather than a real inconsistency.

Tool Count5/5

Twelve tools is squarely in the well-scoped range, and each maps to a concrete capability (screening, forensic inspection by input type, registry/brand/wallet intel, graph exploration, signal submission, takedown generation). No tool looks like filler or a duplicate alias of another.

Completeness4/5

The surface covers the full fraud-intel workflow: gather (threat explorer, brand scan, wallet intel, KYB), verify (screen single/batch, inspect invoice/email/SMS), contribute (mutualize signal), and act (takedown brief). Gaps are minor — no case/history retrieval or report export, and IP-level screening exists only implicitly through the threat graph.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues