mcp-server-authoring

mcp-server-authoring is a skill for Claude Code from laurigates/claude-plugins. It costs 50 tokens per session (2,522 once invoked), scanned A, original, MIT.

A guide for building Python servers that let AI applications call tools, read resources, or use reusable prompts through the Model Context Protocol (MCP). It covers the official FastMCP approach and related project setup.

In plain words
What is it for?
Use it to scaffold an MCP server, add tools, resources, or prompts, choose between local and web connections, and set up testing, linting, and release automation.
Why use it?
It helps developers create and extend MCP servers with a consistent structure instead of figuring out server code, tests, transport, and releases from scratch. TDD means writing tests before or alongside the implementation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-patterns-plugin plugin — 26 skills shipped together

Good fit Use it to scaffold an MCP server, add tools, resources, or prompts, choose between local and web connections, and set up testing, linting, and release automation.

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

Made for: Claude Code.

Or install agent-patterns-plugin, the plugin that ships this one along with the rest of its 26 skills.

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-server-authoring

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/mcp-server-authoring"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/mcp-server-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,522 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 44
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
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.00050 $0.02522
Opus 5.5 $0.00020 $0.01009
Sonnet 5.5 $0.00010 $0.00504
Haiku 4.5 $0.00005 $0.00252

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

Security

Grade A, and why

mcp-server-authoring 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.

agent-patterns-plugin/skills/mcp-server-authoring/SKILL.md · 215 lines

How it starts

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

MCP Server Authoring

Producer-side patterns for building a Python Model Context Protocol server with the official SDK's FastMCP (or the standalone fastmcp package). Applies to any Python MCP server you own — the guidance is portfolio-independent.

For consuming / installing servers into a project, this is the wrong skill — see the table below.

When to Use This Skill

Use this skill when... Use a different skill when...
Building or scaffolding a new MCP server Installing an existing server into .mcp.json → agent-patterns-plugin:mcp-management
Adding a tool / resource / prompt to a server Running MCP compliance checks on a project → configure-plugin:configure-mcp
Wiring a server's tests, lint, release-please An agent calls 50+ MCP tools and needs the code-execution pattern → agent-patterns-plugin:mcp-code-execution
Choosing transport (stdio vs HTTP) for a server you own Managing OAuth for a remote server you consume → mcp-management

The Build Path

Build a server in this order. Each step's why is the load-bearing part — it is what lets you generalize past the example.

Step 1 — Scaffold the project

uv init --package my-server && cd my-server
uv add "mcp[cli]"          # bundled SDK; or `uv add fastmcp` for the standalone package
uv add --group dev pytest ruff ty

Why uv init --package: it lays down a src/ package + pyproject.toml with a console-script entrypoint, so the server installs as a real command (uvx my-server) rather than a loose script. That is what a consumer's .mcp.json will invoke.

Why one dependency choice up front: FastMCP ships two ways — bundled in the official mcp SDK (from mcp.server.fastmcp import FastMCP) and as the standalone fastmcp package (from fastmcp import FastMCP). They expose the same high-level decorator API; pick one and pin it in pyproject.toml so the import path is stable. Prefer the bundled SDK unless you need a standalone-only feature.

Read the full file on GitHub · 215 lines

Files

What ships with it

2 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 Changed · -45 lines cb83df05d7c2
  2. 3mo ago First seen · 260 lines · 50 tokens per session scan A 09d0b4963cc9

Subscribe to this mod's changes

mcp-server-authoring is a skill published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 2,522 once invoked, about $0.0002 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-server-authoring compared with skills from other repositories

mcp-server-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-server-authoringlaurigates/claude-pluginsSkill60todayMITA50Claude Code
build-priority-queuejimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA32Claude Code
cache-recursive-callsjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA28Claude Code
catch-expected-errorsjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA24Claude Code
intern-symbols-identityjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA33Claude Code
iterate-with-itertoolsjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA25Claude Code
overload-operators-dsljimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA27Claude Code