mcp-builder

mcp-builder is a skill for Claude Code from Heretyc/subagent-mcp. It costs 245 tokens per session (1,620 once invoked), scanned B, original, Apache-2.0.

A set of instructions for building and installing MCP servers. MCP is a standard way for an AI assistant to use tools and access services such as databases, APIs, or files.

In plain words
What is it for?
Creating MCP servers in Node.js or Python, defining tools and resources, configuring Claude or Codex CLI, and troubleshooting installations.
Why use it?
It provides task-specific guidance for designing, packaging, configuring, and debugging these tool connections on Windows and macOS.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; reads ~/.codex paths.

Part of the subagent-mcp plugin — 9 skills, 3 hooks, 1 MCP server shipped together

Good fit Creating MCP servers in Node.js or Python, defining tools and resources, configuring Claude or Codex CLI, and troubleshooting installations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heretyc/subagent-mcp/mcp-builder
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 Heretyc/subagent-mcp --skill mcp-builder
Clone the repo
git clone --depth 1 https://github.com/Heretyc/subagent-mcp

Made for: Claude Code.

Or install subagent-mcp, the plugin that ships this one along with the rest of its 9 skills, 3 hooks, 1 MCP server.

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-builder

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/heretyc/subagent-mcp/mcp-builder"><img src="https://agentmods.dev/badge/skills/heretyc/subagent-mcp/mcp-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 245 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 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.00245 $0.01620
Opus 5.5 $0.00098 $0.00648
Sonnet 5.5 $0.00049 $0.00324
Haiku 4.5 $0.00024 $0.00162

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

Security

Grade B, and why

mcp-builder 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 1mo 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.

**Codex CLI** (`~/.codex/config.toml`):
skills/mcp-builder/SKILL.md · 142 lines

How it starts

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

MCP Builder

Build and ship MCP servers for Claude and Codex. Load references/retrieval-map.md first to find the right leaf doc for any task. This is generic MCP-server-building guidance for arbitrary servers; it does not apply to subagent-mcp's own no-API-key architecture.

Quick Decision Tree

Some "Load" targets below are thin indexes with a same-named sub-directory (config-claude.md, implementation-patterns.md, install-windows.md, packaging-node.md, packaging-python.md, tool-resource-prompt-schemas.md, troubleshooting.md). For these, follow the index's table of contents into references/<topic>/ for full detail : don't stop at the index. See references/retrieval-map.md for specifics.

Task Load
Understand MCP protocol / primitives protocol-spec.md
Tool / resource / prompt schemas tool-resource-prompt-schemas.md
TypeScript/Node server + npm package packaging-node.md
Python server + pip/uvx package packaging-python.md
Claude Desktop or Claude Code config config-claude.md
Codex CLI config config-codex.md
Windows install / path / registry install-windows.md
macOS install / Gatekeeper / LaunchAgent install-macos.md
Implementation patterns / security implementation-patterns.md
Debug / errors / ENOENT / tool missing troubleshooting.md
Source citations source-ledger.md

Core Rules (Always Active)

  1. stdio: never write to stdout except JSON-RPC. All logs go to stderr.
  2. Absolute paths in all config files. Never relative.
  3. Windows MSIX bug: Claude Desktop MSIX reads from %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\ not %APPDATA%\Claude\. Edit the correct file.
  4. Protocol version: Current spec is 2025-06-18. Server must echo client's version on init.
  5. inputSchema must be JSON Schema with type: "object". Missing required array = all fields optional.
  6. Secrets: use env key in config, never hardcode. Never log secrets.

Read the full file on GitHub · 142 lines

Files

What ships with it

30 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. 1mo ago First seen · 142 lines · 245 tokens per session scan B fa293896d7a5

Subscribe to this mod's changes

mcp-builder is a skill published in the GitHub repository Heretyc/subagent-mcp (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 245 tokens to every session and 1,620 once invoked, about $0.0010 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

Other skills, from other repositories

data-engineering

Builds and operates data pipelines — ingestion, transformation, orchestration, quality testing, and reliability of data delivery. Use this to design or debug a pipeline, decide batch versus streaming, add data quality checks, handle late or duplicate data, or work out why a dashboard's numbers changed without anyone…

cbrock84/headcount · 67 tokens

api-design

Designs interfaces that survive their consumers — resource modeling, errors, versioning, pagination, and compatibility. Use this to design a new API, review one before it ships, decide how to version or deprecate, fix an interface consumers keep misusing, or work out whether a change is breaking.

cbrock84/headcount · 64 tokens

architecture-selection

System architecture patterns including monolith, microservices, event-driven, and serverless, with C4 modeling, scalability strategies, and technology selection criteria. Use when designing system architectures, evaluating patterns, or planning scalability.

rsmdt/the-startup · 46 tokens

api-contract-design

REST and GraphQL API design patterns, OpenAPI/Swagger specifications, versioning strategies, and authentication patterns. Use when designing APIs, reviewing API contracts, evaluating API technologies, or implementing API endpoints.

rsmdt/the-startup · 44 tokens

domain-modeling

Unified domain and data modeling for business entities, invariants, schema design, aggregate boundaries, and evolution strategy. Use when designing business models, schema changes, bounded contexts, or consistency rules.

rsmdt/the-startup · 42 tokens

python-patterns

Python backend patterns: layered architecture, async I/O, dependency injection, repository/service separation. TRIGGER when: creating routes, models, schemas, or services in a Python backend. SKIP: REST contract design (use api-design); schema/index tuning (use database-optimization). (Examples: FastAPI + SQLAlchemy +…

komluk/scaffolding · 73 tokens