mcp-add

mcp-add is a skill for Claude Code from luiseiman/dotforge. It costs 25 tokens per session (1,353 once invoked), scanned B, original, MIT.

A command that installs a prepared Model Context Protocol (MCP) server template into a project's or user's Claude Code settings. MCP servers connect the agent to services such as GitHub or databases.

In plain words
What is it for?
Use it to add the GitHub, Postgres, Supabase, Redis, or Slack template to project settings, or install it globally.
Why use it?
It avoids manually assembling server configuration and places it in the intended local or global settings file.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Use it to add the GitHub, Postgres, Supabase, Redis, or Slack template to project settings, or install it globally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luiseiman/dotforge/mcp-add
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.

Any agent
npx skills add luiseiman/dotforge --skill mcp-add
Clone the repo
git clone --depth 1 https://github.com/luiseiman/dotforge

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 hooks.

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 mcp-add

README.md
[![agentmods](https://agentmods.dev/badge/skills/luiseiman/dotforge/mcp-add/github.svg)](https://agentmods.dev/skills/luiseiman/dotforge/mcp-add)
Your own site
<a href="https://agentmods.dev/skills/luiseiman/dotforge/mcp-add"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/mcp-add/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-add

Your own site · 80×15
<a href="https://agentmods.dev/skills/luiseiman/dotforge/mcp-add"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/mcp-add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00025 $0.01353
Opus 5.5 $0.00010 $0.00541
Sonnet 5.5 $0.00005 $0.00271
Haiku 4.5 $0.00003 $0.00135

Measured 3mo ago against content hash 094621444390, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mcp-add scanned grade B with 1 finding 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 3mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Detect `--global` flag: if present, target `~/.claude/settings.json`; otherwise target `.claude/settings.json`
skills/mcp-add/SKILL.md · 160 lines

How it starts

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

MCP Add

Install a dotforge MCP server template into the current project's or global Claude Code configuration.

Input parsing

From $ARGUMENTS (format: mcp add <server> [--global]):

  • Extract <server>: the word after mcp add — one of github, postgres, supabase, redis, slack
  • Detect --global flag: if present, target ~/.claude/settings.json; otherwise target .claude/settings.json

Step 0: Validate

  1. Verify the server template exists: $DOTFORGE_DIR/mcp/<server>/

    • If directory not found:
      ✗ Unknown server '{{server}}'.
      Available: github, postgres, supabase, redis, slack
      Usage: /forge mcp add <server> [--global]
      
      Stop.
  2. Determine target settings path:

    • --global → ~/.claude/settings.json
    • default → .claude/settings.json
    • If target doesn't exist and not --global: warn "No settings.json found. Run /forge bootstrap first, or use --global to install globally." Stop.
    • If target doesn't exist and --global: create ~/.claude/settings.json with {"permissions": {"allow": [], "deny": []}, "mcpServers": {}}.

Step 1: Load template files

Read all three template files:

  • $DOTFORGE_DIR/mcp/<server>/config.json
  • $DOTFORGE_DIR/mcp/<server>/permissions.json
  • $DOTFORGE_DIR/mcp/<server>/rules.md

From config.json:

  • Server key: the non-metadata top-level key (e.g., "github", "postgres")
  • Server config block: the value of that key (the object with type, command, args, env)
  • Install note: the _install string — contains required env vars and instructions
  • Ignore all keys starting with _ (metadata)

From permissions.json:

  • allow: the allow array value (or [] if absent)
  • deny: the deny array value (or [] if absent)
  • Ignore all keys starting with _

Step 2: Check for existing configuration

Read the target settings.json.

Check if the server is already configured:

  • Present if mcpServers.<server> key exists in settings, OR
  • Present if any of the server's allow entries appear in permissions.allow

Read the full file on GitHub · 160 lines

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. 3mo ago First seen · 160 lines · 25 tokens per session scan B 094621444390

Subscribe to this mod's changes

mcp-add is a skill published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 26d ago), licensed MIT. It adds 25 tokens to every session and 1,353 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-add compared with skills from other repositories

mcp-add next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-addluiseiman/dotforgeSkill826d agoMITB25Claude Code
zephermineDannykkh/skill-olympusSkill96d agoMITA97Codex
design-planDannykkh/skill-olympusSkill96d agoMITA108Codex
agent-teamDannykkh/skill-olympusSkill96d agoMITA132Claude Code, Codex
clioDannykkh/skill-olympusSkill96d agoMITA107Claude Code, Codex
frontend-designDannykkh/skill-olympusSkill96d agoMITA92Claude Code, Codex
argosDannykkh/skill-olympusSkill96d agoMITA89Claude Code, Codex