mcp-scaffold

mcp-scaffold is a command for Claude Code from sigistry/marketplace. It costs 0 tokens per session (955 once invoked), scanned A, original, MIT.

A command that creates a minimal Model Context Protocol (MCP) server in TypeScript or Python. It supports local stdio connections or remote Streamable HTTP connections and follows the 2026-07-28 protocol shape.

In plain words
What is it for?
Use it to start a new MCP server, choose its language and connection type, add an example tool, and prepare remote servers with the needed design and security guidance.
Why use it?
It removes the setup work involved in starting an MCP server with the correct transport and basic protocol structure.

Command for Claude Code

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

Part of the mcp-server-smith plugin — 4 skills, 3 commands, 2 agents shipped together

Good fit Use it to start a new MCP server, choose its language and connection type, add an example tool, and prepare remote servers with the needed design and security guidance.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/mcp-scaffold
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.

Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Made for: Claude Code.

Or install mcp-server-smith, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 2 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sigistry/marketplace/mcp-scaffold"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/mcp-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 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.00000 $0.00955
Opus 5.5 $0.00000 $0.00382
Sonnet 5.5 $0.00000 $0.00191
Haiku 4.5 $0.00000 $0.00096

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

Security

Grade A, and why

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

plugins/mcp-server-smith/commands/mcp-scaffold.md · 44 lines

How it starts

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

Scaffold a new Model Context Protocol server from $ARGUMENTS (server name, language ts|python, transport http|stdio; ask for whatever is missing). Produce a minimal, correct, 2026-07-28-shaped server the user can run and extend, not a kitchen-sink template. Load the mcp-2026-07-28 skill for the transport/lifecycle shape, the mcp-tool-design skill for the example tool, and, for a remote http server, the mcp-authorization and mcp-server-security skills.

Process

Step 1: Confirm the shape

Decide from the arguments and the surrounding repo:

  • Language + SDK. TypeScript → @modelcontextprotocol/sdk (McpServer + StreamableHTTPServerTransport). Python → mcp / fastmcp (FastMCP with the streamable-HTTP app). Match the repo's existing toolchain if there is one.
  • Transport. stdio for a local, per-user tool launched by the client; http (Streamable HTTP) for a remote, multi-user server. Default to http when the name implies a hosted service, stdio otherwise.
  • Stateless by default. Build the HTTP server so each request is self-contained (no reliance on in-process session state that a second replica would not share), per the 2026-07-28 stateless core. See the mcp-2026-07-28 skill.

Step 2: Generate the server

Write a small, working tree. For a TypeScript Streamable-HTTP server that is roughly:

  • package.json (ESM, @modelcontextprotocol/sdk + zod, a start script), tsconfig.json, src/server.ts (constructs the McpServer, registers tools/resources), src/index.ts (Express/Node HTTP wiring the StreamableHTTPServerTransport, stateless mode, health check), .gitignore, .env.example, README.md.
  • Register one real example tool with a complete zod inputSchema, correct annotations (readOnlyHint etc.), and a structured error path, following mcp-tool-design. No placeholder foo/bar.

For Python, the equivalent pyproject.toml + server.py using FastMCP and its streamable-HTTP app.

Also emit a server.json (registry manifest) stub and, if http, a sample reverse-proxy snippet, so the server is publishable, not just runnable.

Read the full file on GitHub · 44 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 · 44 lines · 0 tokens per session scan A 35c03a50a406

Subscribe to this mod's changes

mcp-scaffold is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 955 tokens. 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.