sc:mcp-builder

sc:mcp-builder is a skill for Claude Code from squadcodercom/squadcoder. It costs 109 tokens per session (1,017 once invoked), scanned A, original, MIT.

A guide to building an MCP server, a small program that lets AI assistants safely access tools and data. It covers local and hosted connections, typed inputs, authentication, and Node/TypeScript or Python setup.

In plain words
What is it for?
Use it to plan, build, validate, and register an MCP server with tools, readable resources, or prompt templates.
Why use it?
It helps avoid unclear tool definitions, unsafe handling of secrets, and mistakes when connecting an MCP server to an AI assistant. It also explains how to keep the server's security risks limited.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to plan, build, validate, and register an MCP server with tools, readable resources, or prompt templates.

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

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 sc:mcp-builder

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/squadcodercom/squadcoder/mcp-builder"><img src="https://agentmods.dev/badge/skills/squadcodercom/squadcoder/mcp-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,017 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.00109 $0.01017
Opus 5.5 $0.00044 $0.00407
Sonnet 5.5 $0.00022 $0.00203
Haiku 4.5 $0.00011 $0.00102

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

Security

Grade A, and why

sc:mcp-builder 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 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.

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.

.squadcoder/skills/mcp-builder/SKILL.md · 82 lines

How it starts

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

MCP Builder — ship a production Model Context Protocol server

Build an MCP server that an agent can safely call. Optimize for small, well-typed tools and a tight security surface — an MCP tool is remote code execution by another name.

Step 0 — scope it

  • What does it expose? Tools (actions), resources (readable data), prompts (templates) — pick only what's needed. Fewer, sharper tools beat many fuzzy ones.
  • Transport: stdio for a local process the client spawns (most common, simplest); streamable HTTP for a hosted/shared server. Don't expose stdio servers on a network.
  • Secrets: which env vars/keys does it need? They stay in the client config / env, never hard-coded.

Step 1 — scaffold (reuse the official SDK, don't hand-roll the protocol)

TypeScript/Node (@modelcontextprotocol/sdk):

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
import { z } from "zod"

const server = new McpServer({ name: "my-mcp", version: "1.0.0" })

server.tool(
  "get_thing",
  "Fetch a thing by id. Read-only.",
  { id: z.string().describe("the thing id") },
  async ({ id }) => ({ content: [{ type: "text", text: await fetchThing(id) }] }),
)

await server.connect(new StdioServerTransport())

Python (mcp package) mirrors this with FastMCP + @mcp.tool().

Step 2 — design each tool well

  • Name = a verb_noun the model will guess (search_issues, not do).
  • Description = one line: what it does + side effects + "read-only" if it is.
  • Input schema = strict (zod/pydantic). Validate everything; reject unknown fields. Describe each param.
  • Output = structured content (text/json/image). Return useful errors as content, not silent failures.
  • Idempotency & side effects — mark mutating tools clearly; never auto-delete without confirmation.

Step 3 — security (do this, not later)

  • Validate and sanitize all inputs; path-escape checks for any filesystem tool (refuse paths that escape the project root). Parameterize any DB/query tool — never string-concat user input.
  • Secrets only from env; never log them; never echo them in tool output.
  • Least privilege: a read tool must not be able to write. Time out and bound expensive calls.
  • For HTTP transport: require auth, bind to 127.0.0.1 unless intentionally public, rate-limit.

Read the full file on GitHub · 82 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. 1mo ago First seen · 82 lines · 109 tokens per session scan A 7fc882b9b3d5

Subscribe to this mod's changes

sc:mcp-builder is a skill published in the GitHub repository squadcodercom/squadcoder (12 stars, last pushed 3mo ago), licensed MIT. It adds 109 tokens to every session and 1,017 once invoked, about $0.0004 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

Other skills, from other repositories

tool-prompt-optimization

Optimize the description prompts an AI agent reads to learn its built-in tools (the .md files under prompts/tools/). Two halves: (1) measure how much of a prompt is already inferable from the tool's JSON parameter schema + name, to prune redundancy with evidence; (2) house authoring rules for what belongs in a tool…

can1357/oh-my-pi · 0 tokens

semantic-compression

Re-encode verbose prose into a dense telegraphic register — punctuation as connectives, label frames, verbless assertions — without losing normativity or precision. Use when compressing system prompts, tool/function descriptions, skill bodies, or agent instructions; reducing token count or context bloat; making…

can1357/oh-my-pi · 77 tokens

write-zot-themes

Help the user create, install, or package zot themes, including theme-only extensions.

patriceckhart/zot · 23 tokens

writing-git-commits

Write clear, focused Git commit messages and keep commits easy to review.

patriceckhart/zot · 14 tokens

hatch3r-cli-toolbox

Category-indexed reference for 34 specialist CLI tools beyond the always-on five (ripgrep, jq, gh, fd, fzf). Use to pick the right tool for HTTP clients, ai-chat, structural-search, sed-style edits, data ops, browser automation, container ops, and more.

hatch3r/hatch3r · 68 tokens

hatch3r-board-groom

Ongoing backlog refinement for existing board items. Re-prioritize, reclassify, re-scope, archive stale items, decompose oversized issues, merge duplicates, refresh dependencies, and remediate board health findings.

hatch3r/hatch3r · 52 tokens