create-mcp-server CLAUDE.md

A command-line tool that creates starter projects for Model Context Protocol servers, which let AI clients call tools and data sources.

In plain words
What is it for?
Use it to scaffold a new MCP server project, choose its framework, and generate its initial development and deployment structure.
Why use it?
It removes the repetitive setup of project files, configuration, tests, deployment files, and framework-specific templates.

Instructions file

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.

agentmods
npx agentmods add instructions/agentailor/create-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/agentailor/create-mcp-server
Per session 3,285 This file is loaded in full into every session.
When invoked 3,285 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03285 $0.03285
Opus 5 $0.01643 $0.01643
Sonnet 5 $0.00657 $0.00657
Haiku 4.5 $0.00329 $0.00329

Measured 3d ago against content hash 6d1a45e40400, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-mcp-server CLAUDE.md 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 3d 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.

CLAUDE.md · 274 lines

How it starts

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

@agentailor/create-mcp-server

A CLI tool to scaffold new MCP (Model Context Protocol) server projects.

Project Structure

create-mcp-server/
├── src/
│   ├── index.ts                    # CLI entry point
│   ├── cli.ts                      # CLI argument parsing (Commander.js)
│   ├── cli.test.ts                 # Tests for CLI argument parsing
│   ├── interactive.ts              # Interactive prompt flow (prompts library)
│   ├── project-generator.ts        # Shared project generation logic
│   └── templates/
│       ├── common/                 # Shared template files
│       │   ├── package.json.ts     # package.json template (framework-aware)
│       │   ├── tsconfig.json.ts    # tsconfig.json template
│       │   ├── gitignore.ts        # .gitignore template
│       │   ├── env.example.ts      # .env.example template
│       │   └── templates.test.ts   # Tests for common templates
│       ├── deployment/             # Deployment configuration templates
│       │   ├── dockerfile.ts       # Dockerfile template
│       │   ├── dockerignore.ts     # .dockerignore template
│       │   ├── index.ts            # Barrel exports
│       │   └── templates.test.ts   # Tests for deployment templates
│       ├── sdk/                    # Official MCP SDK v2 templates
│       │   ├── stateless/          # Shared HTTP template (source of truth)
│       │   │   ├── server.ts       # MCP server definition template
│       │   │   ├── index.ts        # getIndexTemplate (createMcpHandler + toNodeHandler)
│       │   │   ├── readme.ts       # README.md template (OAuth-aware)
│       │   │   └── templates.test.ts
│       │   ├── stateful/           # Compatibility shim - re-exports stateless
│       │   │   ├── server.ts       # Re-exports from stateless
│       │   │   ├── index.ts        # Re-exports getIndexTemplate from stateless
│       │   │   ├── readme.ts       # Re-exports from stateless
│       │   │   ├── auth.ts         # OAuth authentication template (owned here)
│       │   │   ├── auth.test.ts    # Tests for auth template
│       │   │   └── templates.test.ts
│       │   └── stdio/              # stdio transport template
│       │       ├── server.ts       # Re-exports from stateless
│       │       ├── index.ts        # Barrel export + getIndexTemplate (serveStdio)
│       │       ├── readme.ts       # README.md template (for local clients)
│       │       └── templates.test.ts
│       └── fastmcp/                # FastMCP templates
│           ├── server.ts           # FastMCP server definition template
│           ├── index.ts            # Barrel export + getIndexTemplate
│           ├── readme.ts           # README.md template
│           └── templates.test.ts
├── dist/                           # Compiled output (generated)
├── docs/
│   └── oauth-setup.md              # OAuth setup guide for various providers
├── official-examples/              # Reference MCP server examples
├── package.json
├── tsconfig.json
└── README.md

Read the full file on GitHub · 274 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. 3d ago First seen · 274 lines · 3,285 tokens per session scan A 6d1a45e40400

Subscribe to this mod's changes

create-mcp-server CLAUDE.md is an instructions file published in the GitHub repository agentailor/create-mcp-server (14 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3,285 tokens to every session, about $0.0164 per session on Opus 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.