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.
git clone --depth 1 https://github.com/davekilleen/Dexnpx agentmods add skills/davekilleen/dex/dex-add-mcpWrote 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.
[](https://agentmods.dev/skills/davekilleen/dex/dex-add-mcp)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
Default Behavior (Recommended)
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".
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.
- 2mo ago Changed dd20d3d2c3f5
- 2mo ago First seen · 74 lines · 66 tokens per session scan A db30f97c7349
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.
dex-add-mcp compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dex-add-mcpdavekilleen/Dex | Skill | 522 | 7d ago | MIT | A | 66 | Claude Code |
| nft-standardswshobson/agents | Skill | 43k | 6d ago | MIT | A | 48 | Claude Code |
| istio-traffic-managementwshobson/agents | Skill | 43k | 6d ago | MIT | A | 40 | Claude Code |
| projection-patternswshobson/agents | Skill | 43k | 6d ago | MIT | A | 36 | Claude Code |
| 9router-web-searchdecolua/9router | Skill | 33k | 7d ago | MIT | A | 74 | Claude Code, Codex |
| microservices-patternswshobson/agents | Skill | 43k | 6d ago | MIT | A | 38 | Claude Code |
| track-managementwshobson/agents | Skill | 43k | 6d ago | MIT | A | 44 | Claude Code |