npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@swappr/mcp

v0.7.0

Published

Serveur MCP Swappr : studio créatif safe-only (personas, Camera Roll, Studio image/vidéo, Face Swap et publication) via l'API swappr.fr.

Readme

@swappr/mcp

Serveur MCP (Model Context Protocol) pour l'API Swappr. Permet à Claude Desktop, Cursor, Continue, Cline et tout client compatible MCP d'appeler directement les endpoints Swappr depuis une conversation.

Version : @swappr/[email protected] État doc : 1er sept. 2026 · API publique OpenAPI v1.6.0 · OAuth PKCE natif (Dynamic Client Registration).

Outils exposés

| Famille | Outils | |---|---| | Compte | swappr_start, swappr_me, swappr_credits_balance | | Studio | swappr_generate_image, swappr_generate_video, swappr_studio_models, swappr_tts, swappr_audio_dialogue | | Jobs | swappr_list_jobs, swappr_job_status | | Bibliothèque | swappr_list_library, swappr_save_library_item, swappr_list_models, swappr_upload | | Atelier | swappr_faceswap, swappr_faceswap_refine, swappr_faceswap_pricing, swappr_camera_roll_* | | Publier | swappr_publish_list_accounts, swappr_publish_account_detail, swappr_publish_list_posts, swappr_publish_create_post, swappr_publish_analytics, swappr_publish_refresh_analytics, swappr_publish_health_summary | | Webhooks | swappr_list_webhooks, swappr_register_webhook, swappr_delete_webhook |

Trafic (liens trackés) : disponible en API REST v1 (/links/*, /traffic/summary) mais retiré du MCP.

Avancé / hors directory : swappr_nude_factory_generate (bloqué au runtime hors NSFW), swappr_multiplier_server_run. Absents des listings Claude/ChatGPT.

Guide : https://swappr.fr/agent.md Hôtes Grok / Grok Bot / Groq : docs/ops/mcp-grok-hosts.md Stores : docs/ops/mcp-directory-submissions.md

Installation

# Méthode 1, directement via npx (recommandé)
npx -y @swappr/mcp

# Méthode 2, global install
npm install -g @swappr/mcp
swappr-mcp

Le serveur tourne sur stdio, il n'est pas lancé tout seul, il est invoqué par le client MCP.

Configuration Claude Desktop

Édite ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) ou %APPDATA%\Claude\claude_desktop_config.json (Windows) :

{
  "mcpServers": {
    "swappr": {
      "command": "npx",
      "args": ["-y", "@swappr/mcp"]
    }
  }
}

Redémarre Claude Desktop. Au premier appel d’un outil swappr_*, le serveur ouvre le navigateur sur Swappr, demande votre consentement, puis stocke les tokens chiffrés dans ~/.swappr/tokens.json.

Configuration Cursor / Continue

Cursor : ~/.cursor/mcp.json (mêmes options qu'au-dessus). Continue : ajoute dans ~/.continue/config.json la section mcpServers.

Variables d'environnement

| Var | Requis | Défaut | Rôle | |---|---|---|---| | SWAPPR_BASE_URL | non | https://swappr.fr | Override pour staging/local |

Build local

cd packages/mcp-swappr
npm install
npm run build
node dist/index.js

Idempotency (POST génératifs)

Depuis sept. 2026, chaque POST MCP envoie automatiquement un header Idempotency-Key (mcp-<uuid>). Les retries côté API (même clé) renvoient la réponse mise en cache avec X-Idempotent-Replay: true.

Périmètre public

Le serveur MCP expose uniquement les parcours créatifs généralistes et safe-only. Les fonctionnalités sensibles du SaaS et les mécanismes de contournement de détection ne font pas partie du catalogue MCP.

Doc API

Endpoints REST sous-jacents : https://swappr.fr/api-docs OpenAPI YAML : https://swappr.fr/openapi.yaml

Sécurité

  • OAuth PKCE + Dynamic Client Registration. Tokens chiffrés dans ~/.swappr/tokens.json.
  • Scopes read generate uniquement.

Licence

MIT.