mcp-discovery

mcp-discovery is a skill for Claude Code, Codex from Hmbown/CodeWhale. It costs 36 tokens per session (723 once invoked), scanned A, original, MIT.

An MCP discovery workflow finds local Model Context Protocol servers, which connect an agent to specialized tools and services.

In plain words
What is it for?
It helps discover tools for files, databases, browsers, media processing, developer utilities, cloud services, and other connected operations.
Why use it?
It can identify an existing local integration before someone writes custom code or shell commands for a specialized task.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps discover tools for files, databases, browsers, media processing, developer utilities, cloud services, and other connected operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmbown/codewhale/mcp-discovery
About the project

Hmbown/CodeWhale is an open-source coding agent that runs in the terminal and is written in Rust. Developers use it to inspect repositories, edit files, run commands, and coordinate work with configurable model providers, skills, MCP servers, and approval controls; the catalogue entries extend its available workflows.

Hmbown/CodeWhale · 41,222 stars · on GitHub · codewhale.net

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 Hmbown/CodeWhale --skill mcp-discovery
Clone the repo
git clone --depth 1 https://github.com/Hmbown/CodeWhale

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmbown/codewhale/mcp-discovery"><img src="https://agentmods.dev/badge/skills/hmbown/codewhale/mcp-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 723 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.00723
Opus 5.5 $0.00014 $0.00289
Sonnet 5.5 $0.00007 $0.00145
Haiku 4.5 $0.00004 $0.00072

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

Security

Grade A, and why

mcp-discovery 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.

crates/tui/assets/skills/mcp-discovery/SKILL.md · 68 lines

How it starts

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

mcp-discovery

The public MCP Registry ships hundreds of ready-made stdio servers (filesystems, databases, browsers, media processing, developer utilities, cloud APIs, SaaS integrations, …). This skill is how you reach one when the session is genuinely missing a capability.

It is a fallback, not a first step. Discovery costs a tool_search to load the deferred tools, a query, an approval, and an install — spend that only when it buys a capability you do not have.

When to use

  • An available tool, a project script or test, or a few lines of local code cannot do the job.
  • The task needs an external service, database, or protocol client that this session has no access to.
  • You would otherwise install a package or reimplement a well-known converter or client by hand.

When not to use

  • Ordinary work: writing and editing files, reading fixtures, running repo commands, and checking your own output. Do those directly.
  • A capability an already-loaded tool covers, even partially — try it first.
  • A near-miss row in a result list. A scored match is a suggestion; the missing capability is what decides.

Workflow

  1. Name the gap. State the capability you lack before searching. If you cannot name one, you do not need the Registry.
  2. Load and query. registry_sync and start_registry_mcp_server are deferred: load one with tool_search and use the returned schema. If a call only loads the schema without executing, retry once with that schema. Then call registry_sync {query: "<the missing capability>"}. It scores a host-side snapshot and returns at most eight matches; the full index never enters the conversation. Packages declaring any environment variable (including API keys/tokens) are excluded and never written to the cache.
  3. Judge the matches. Take a server when it covers the gap you named. If nothing does, refine the query once, then continue with local tools.
  4. Install + run transactionally. Call start_registry_mcp_server {registry_name: "<exact name>", arguments: {...}}. Supply only values listed in required_args; omit arguments when none are required. Never install or launch the package through the shell. Starting a server requires approval.
  5. Solve the task with the new tools. Their complete schemas are added to the current turn immediately after a successful connection; call the exact names returned by the start result.

Read the full file on GitHub · 68 lines

Files

What ships with it

1 file 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. 2mo ago Changed · +4 lines · +4 tokens per session 39adb7d80b35
  2. 3mo ago First seen · 64 lines · 32 tokens per session scan A b7ecdccf9dc9

Subscribe to this mod's changes

mcp-discovery is a skill published in the GitHub repository Hmbown/CodeWhale (41,222 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 723 once invoked, about $0.0001 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-08-30.

Related

mcp-discovery compared with skills from other repositories

mcp-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-discoveryHmbown/CodeWhaleSkill41kyesterdayMITA36Claude Code, Codex
cw-landHmbown/CodewhaleSkill41k1mo agoMITA44Claude Code, Codex
cw-sliceHmbown/CodewhaleSkill41k1mo agoMITA47Claude Code, Codex
cw-dogfoodHmbown/CodewhaleSkill41k1mo agoMITA52Claude Code, Codex
cw-gatesHmbown/CodewhaleSkill41k1mo agoMITA48Claude Code, Codex
cw-handoffHmbown/CodewhaleSkill41k1mo agoMITA50Claude Code, Codex
cw-orientHmbown/CodewhaleSkill41k1mo agoMITA43Claude Code, Codex