setup-mcp

setup-mcp is a skill for Claude Code, Codex from jacksenechal/scan-mcp. It costs 75 tokens per session (756 once invoked), scanned A, original, MIT.

A setup assistant for configuring the scan-mcp scanner server in Claude Code. It checks for required software, helps address missing dependencies, and adds the server to the global configuration.

In plain words
What is it for?
Use it to enable scanner control, configure the scanned-document inbox, and verify requirements such as Node.js, SANE utilities, and TIFF tools.
Why use it?
It removes the manual work of finding configuration files and checking scanner prerequisites. It also lets you choose where scanned files go and whether to use npx or a local installation.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jacksenechal/scan-mcp/setup-mcp
Any agent
npx skills add jacksenechal/scan-mcp --skill setup-mcp
Clone the repo
git clone --depth 1 https://github.com/jacksenechal/scan-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/jacksenechal/scan-mcp/setup-mcp.svg)](https://agentmods.dev/skills/jacksenechal/scan-mcp/setup-mcp)
Your own site
<a href="https://agentmods.dev/skills/jacksenechal/scan-mcp/setup-mcp"><img src="https://agentmods.dev/badge/skills/jacksenechal/scan-mcp/setup-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00075 $0.00756
Opus 5 $0.00037 $0.00378
Sonnet 5 $0.00015 $0.00151
Haiku 4.5 $0.00007 $0.00076

Measured 4d ago against content hash ff3b3667d226, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/setup-mcp/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

scan-mcp MCP Server Setup

Configure the scan-mcp MCP server in Claude Code's global configuration to enable scanner control.

Setup Workflow

Step 1: Gather User Preferences

Ask user for:

  1. INBOX_DIR location (default: ~/Documents/scanned_documents/inbox)
  2. Installation method: npx (recommended) or local

Step 2: Run Preflight Checks

npx -y scan-mcp --preflight-only

Expected on success: All checks passed!

If preflight fails: Parse output to identify missing dependencies, then guide user through installation (see PLATFORMS.md).

Common missing items:

  • SANE utilities (scanimage, scanadf)
  • TIFF tools (tiffcp or ImageMagick convert)

Step 3: Locate Claude Code MCP Configuration

Claude Code config location:

  • ~/.config/claude/config.json (Linux/macOS)
  • Create if doesn't exist

Step 4: Add or Update Configuration

Configuration structure (npx - recommended):

{
  "mcpServers": {
    "scan": {
      "command": "npx",
      "args": ["-y", "scan-mcp"],
      "env": {
        "INBOX_DIR": "~/Documents/scanned_documents/inbox"
      }
    }
  }
}

Important:

  • If config.json doesn't exist: Create it with scan-mcp server entry
  • If config.json exists but no mcpServers: Add mcpServers section
  • If mcpServers exists: Add or update "scan" entry
  • Preserve existing MCP server configurations

For local installation (advanced): See ADVANCED.md.

Step 5: Verify Configuration

  1. Inform user that Claude Code needs restart to pick up new configuration
  2. Suggest testing: claude mcp or asking "scan this document"
  3. If issues occur, suggest running /doctor

Quick Example

User: "Setup scan-mcp"

Actions:

  1. Ask: "Where would you like scanned documents stored? (Default: ~/Documents/scanned_documents/inbox)"
  2. Run: npx -y scan-mcp --preflight-only
  3. If preflight passes:
    • Locate/create ~/.config/claude/config.json
    • Add scan-mcp server configuration
    • Confirm: "scan-mcp configured. Please restart Claude Code. Test with 'scan this document'."
  4. If preflight fails:
    • Identify missing dependencies
    • Provide installation commands (see PLATFORMS.md)
    • Re-run preflight after user installs

Read the full file on GitHub · 91 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 91 lines · 75 tokens per session scan A ff3b3667d226

Subscribe to this mod's changes

setup-mcp is a skill published in the GitHub repository jacksenechal/scan-mcp (6 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 756 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

edgeone skill scanner

Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描…

Tencent/AI-Infra-Guard · 148 tokens

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

analyzing-linux-kernel-rootkits

Detect kernel-level rootkits in Linux memory dumps using Volatility3 linux plugins (checksyscall, lsmod, hiddenmodules), rkhunter system scanning, and /proc vs /sys discrepancy analysis to identify hooked syscalls, hidden kernel modules, and tampered system structures.

mukul975/Anthropic-Cybersecurity-Skills · 65 tokens

direct-injection-detection

Detect direct prompt injection or instruction override via user message (no external content). Focuses on system/role override attempts.

Tencent/AI-Infra-Guard · 30 tokens

create-skill

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

warpdotdev/warp · 64 tokens

logging-and-error-reporting

How and when to log (log:: levels, safe macros) and report errors to Sentry (reporterror!) in the Warp codebase. Use when adding or reviewing any logging or error reporting — picking a log level, deciding log vs. reporterror!, keeping sensitive data out of logs, or surfacing an error to Sentry.

warpdotdev/warp · 75 tokens