dex-add-mcp

dex-add-mcp is a skill for Claude Code from davekilleen/Dex. It costs 66 tokens per session (549 once invoked), scanned A, original, MIT.

A setup tool for registering a known MCP server in Dex's user-level configuration. MCP servers let an agent connect to external tools or data sources.

In plain words
What is it for?
Use it to add or register an MCP server supplied by the user.
Why use it?
It avoids editing configuration by hand when the server details are already available. It is meant for adding a server, not finding one or building one.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is claude mcp add --scope user gmail --transport stdio -- node .scripts/mcp/gmail-mcp.js.

Good fit Use it to add or register an MCP server supplied by the user.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/davekilleen/Dex
agentmods
npx agentmods add skills/davekilleen/dex/dex-add-mcp

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/davekilleen/dex/dex-add-mcp/github.svg)](https://agentmods.dev/skills/davekilleen/dex/dex-add-mcp)
Your own site
<a href="https://agentmods.dev/skills/davekilleen/dex/dex-add-mcp"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/dex-add-mcp/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 dex-add-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/davekilleen/dex/dex-add-mcp"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/dex-add-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00066 $0.00549
Opus 5.5 $0.00026 $0.00220
Sonnet 5.5 $0.00013 $0.00110
Haiku 4.5 $0.00007 $0.00055

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

Security

Grade A, and why

dex-add-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 2mo 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/dex-add-mcp/SKILL.md · 74 lines

What it actually says

Purpose

Add a new MCP server the safe way: user scope by default so your custom MCP survives Dex updates.

When to Use

  • You want to add an MCP server without touching .mcp.json
  • You want it to work across all projects (user scope)
  • You are not sure which scope to pick

Use user scope unless you explicitly want to share with a team.

User scope (recommended)

claude mcp add --scope user <server-name> -- <command> <args>

Why: Survives Dex updates and applies across all projects.

Project scope (team-shared)

claude mcp add --scope project <server-name> -- <command> <args>

Why: Stored in .mcp.json and shared with everyone on this repo.

Examples

Add a local stdio MCP (user scope)

claude mcp add --scope user gmail --transport stdio -- node .scripts/mcp/gmail-mcp.js

Add a remote HTTP MCP (user scope)

claude mcp add --scope user notion --transport http https://mcp.notion.com/mcp

Add a project-shared MCP (explicit)

claude mcp add --scope project github --transport http https://api.githubcopilot.com/mcp/

Guardrails

  • If you are not sure, use user scope.
  • Only use project scope if everyone should get the server.
  • Do not add personal MCPs to .mcp.json.

Track Usage (Silent)

Call the mark_feature_used tool on the dex-analytics MCP server with dex-add-mcp. This ticks the feature's box in System/usage_log.md, which is what /dex-level-up reads to recommend features that have not been tried. It writes locally and sends nothing, so it runs whether or not analytics is enabled.

Analytics (Silent):

Call track_event with event_name mcp_added and properties:

  • (no properties — do NOT include server names)

This only fires if the user has opted into analytics. No action needed if it returns "analytics_disabled".

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. 2mo ago Changed dd20d3d2c3f5
  2. 2mo ago First seen · 74 lines · 66 tokens per session scan A db30f97c7349

Subscribe to this mod's changes

dex-add-mcp is a skill published in the GitHub repository davekilleen/Dex (522 stars, last pushed 7d ago), licensed MIT. It adds 66 tokens to every session and 549 once invoked, about $0.0003 per session on Opus 5.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-09-03.

Related

dex-add-mcp compared with skills from other repositories

dex-add-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dex-add-mcpdavekilleen/DexSkill5227d agoMITA66Claude Code
nft-standardswshobson/agentsSkill43k6d agoMITA48Claude Code
istio-traffic-managementwshobson/agentsSkill43k6d agoMITA40Claude Code
projection-patternswshobson/agentsSkill43k6d agoMITA36Claude Code
9router-web-searchdecolua/9routerSkill33k7d agoMITA74Claude Code, Codex
microservices-patternswshobson/agentsSkill43k6d agoMITA38Claude Code
track-managementwshobson/agentsSkill43k6d agoMITA44Claude Code