mcp-patterns

mcp-patterns is a skill for Claude Code from yonatangross/orchestkit. It costs 55 tokens per session (3,369 once invoked), scanned A, original, MIT.

A guide to building and securing MCP servers, which connect AI assistants to tools and data. It covers tool handlers, communication methods, authentication, user interfaces, and security practices.

In plain words
What is it for?
Use it to build MCP servers, add OAuth login, choose a transport, connect MCP Apps interfaces, harden security, and debug integrations.
Why use it?
It helps developers create reliable connections between assistants and external systems while reducing integration and security mistakes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the ork-extras plugin — 33 skills, 8 commands shipped together

Good fit Use it to build MCP servers, add OAuth login, choose a transport, connect MCP Apps interfaces, harden security, and debug integrations.

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

Made for: Claude Code.

Or install ork-extras, the plugin that ships this one along with the rest of its 33 skills, 8 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/mcp-patterns"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/mcp-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,369 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: 3 findings, 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 171
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • low MCP Rug Pull · line 18
    pip install without ==version installs the latest release, which could include malicious changes.
    Fix: Pin the version: pip install package==1.2.3
  • low MCP Rug Pull · line 48
    pip install without ==version installs the latest release, which could include malicious changes.
    Fix: Pin the version: pip install package==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.00055 $0.03369
Opus 5.5 $0.00022 $0.01348
Sonnet 5.5 $0.00011 $0.00674
Haiku 4.5 $0.00006 $0.00337

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

Security

Grade A, and why

mcp-patterns 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 5d 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/ork-extras/skills/mcp-patterns/SKILL.md · 218 lines

How it starts

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

MCP Patterns

Patterns for building, composing, and securing Model Context Protocol servers. Based on the 2025-11-25 specification — the latest stable release maintained by the Agentic AI Foundation (Linux Foundation), co-founded by Anthropic, Block, and OpenAI.

Scaffolding a new server? Use Anthropic's mcp-builder skill (from the anthropics/skills marketplace: /plugin marketplace add anthropics/skills) for project setup and evaluation creation. This skill focuses on patterns, security, and advanced features after initial setup.

Deploying to Cloudflare? See the building-mcp-server-on-cloudflare skill for Workers-specific deployment patterns.

Pin mcp<2 until you migrate. Every Python snippet in this skill targets the v1 SDK (from mcp.server.fastmcp import FastMCP). The Python SDK released 2.0.0, pip install mcp now resolves to it, and upstream's own README says to keep a <2 upper bound on your requirement until you have migrated. FastMCP does not appear anywhere in the 2.0 README, so treat these snippets as v1-only rather than assuming they still apply. v1.x continues to receive critical bug and security fixes on its own branch. Verified 2026-07-31. Migration guide: https://py.sdk.modelcontextprotocol.io/migration/

Decision Tree — Which Rule to Read

What are you building?
│
├── New MCP server
│   ├── Setup & primitives ──────► rules/server-setup.md
│   ├── Transport selection ─────► rules/server-transport.md
│   └── Scaffolding ─────────────► mcp-builder skill (anthropics/skills)
│
├── Authentication & authorization
│   └── OAuth 2.1 + OIDC ───────► rules/auth-oauth21.md
│
├── Advanced server features
│   ├── Tool composition ────────► rules/advanced-composition.md
│   ├── Resource caching ────────► rules/advanced-resources.md
│   ├── Elicitation (user input) ► rules/elicitation.md
│   ├── Sampling (agent loops) ──► rules/sampling-tools.md
│   └── Interactive UI ──────────► rules/apps-ui.md
│
├── Client-side consumption
│   └── Connecting to servers ───► rules/client-patterns.md
│
├── Security hardening
│   ├── Prompt injection defense ► rules/security-injection.md
│   └── Zero-trust & verification ► rules/security-hardening.md
│
├── Testing & debugging
│   └── Inspector + unit tests ──► rules/testing-debugging.md
│
├── Discovery & ecosystem
│   └── Registries & catalogs ──► rules/registry-discovery.md
│
└── Browser-native tools
    └── WebMCP (W3C) ───────────► rules/webmcp-browser.md

Read the full file on GitHub · 218 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. 5d ago Changed d9c04b74b34e
  2. 7d ago Changed 817fa75dbef1
  3. 12d ago Changed · +1 lines 3a21fa9f5373
  4. 16d ago Changed · -1 tokens per session 830b29b6c26f
  5. 17d ago Changed · -1 lines 38f5a2301f32
  6. 1mo ago Changed · -1 lines 7730f5db8da9
  7. 2mo ago Changed 208dba320c80
  8. 2mo ago Changed · -5 lines 9e1b37556011
  9. 2mo ago Changed · -1 lines 0ce61c6fc1a0
  10. 2mo ago First seen · 225 lines · 56 tokens per session scan A 81067f460713

Subscribe to this mod's changes

mcp-patterns is a skill published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 3,369 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-09-03.

Related

mcp-patterns compared with skills from other repositories

mcp-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-patternsyonatangross/orchestkitSkill312todayMITA55Claude Code
Agent Workflow Buildereddiebelaval/squireSkill213mo agoMITA19Claude Code, Codex
implement-outlinehumanlayer/humanlayerSkill13k7d agoApache-2.0A15Claude Code, Codex
web-researchshibing624/agenticaSkill368yesterdayApache-2.0A24Claude Code, Codex
stall-resetSnowflake-Labs/cocoplusSkill72923d agoMITA14Claude Code, Codex
time-steppingHeshamFS/materials-simulation-skillsSkill9514d agoApache-2.0A108Claude Code
ai-multi-agent-systemsj4flmao/agent-skillsSkill4613d agoMITA88Claude Code, Codex