craft-mcp

craft-mcp is a skill for Claude Code from michtio/craftcms-claude-skills. It costs 110 tokens per session (2,502 once invoked), scanned A, original, MIT.

A guide to building MCP servers and OAuth access for Craft CMS 5.12+, including authenticated, public, and command-line server setups. Craft CMS is a content-management system, and MCP is a standard way for AI tools to call a server's functions.

In plain words
What is it for?
Use it to configure Craft's MCP, OAuth, personal access tokens, permission levels, and deployment settings.
Why use it?
It explains the version requirements and configuration needed before adding these integrations, including token and key setup.

Skill for Claude Code

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

Part of the craftcms-claude-skills plugin — 16 skills, 8 agents, 1 hook shipped together

Good fit Use it to configure Craft's MCP, OAuth, personal access tokens, permission levels, and deployment settings.

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

Made for: Claude Code.

Or install craftcms-claude-skills, the plugin that ships this one along with the rest of its 16 skills, 8 agents, 1 hook.

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 craft-mcp

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/michtio/craftcms-claude-skills/craft-mcp"><img src="https://agentmods.dev/badge/skills/michtio/craftcms-claude-skills/craft-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,502 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.00110 $0.02502
Opus 5.5 $0.00044 $0.01001
Sonnet 5.5 $0.00022 $0.00500
Haiku 4.5 $0.00011 $0.00250

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/craft-version.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/craft-mcp/SKILL.md · 96 lines

How it starts

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

Craft MCP, OAuth Server and Personal Access Tokens

Craft Version of This Project

!sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh

If no Craft version line appears above, establish the version before any version-specific advice: craftcms/cms in composer.lock for a site, the lowest version the craftcms/cms constraint in composer.json allows for a plugin, or ask. Then check it against the version tags in this skill ([5.12+], [5.12.1+], [changed 5.12.1]).

MCP Needs Craft 5.12 [5.12+]

Everything in this skill is new in Craft 5.12 (2026-11-03). On 5.11 or older there is no MCP server, OAuth server or Tokens screen in core. Before 5.12: upgrade first (ddev composer require craftcms/cms:^5.12.4 -W, then ddev craft up, commit composer.lock and config/project/; checklist: the craftcms skill's upgrade-5.12.md). Target 5.12.4 or later, not 5.12.0: 5.12.1 renamed every tool to snake_case and 5.12.1 through 5.12.3 fixed several security issues (see references/security.md). [5.12+]

Source of truth: Craft's CHANGELOG and the 5.12.4 source (src/mcp/, src/services/Mcp.php, src/services/OAuth.php, src/controllers/McpController.php, src/controllers/OauthController.php). Craft's own docs pages still show the pre-5.12.1 dot-separated tool names; the source wins. [5.12+]

Companion Skills: Load When Needed

  • craftcms: Plugin or module PHP around an MCP capability (services, permissions, controllers), GraphQL OAuth details in references/graphql.md, config files in references/config-*.md.
  • craft-php-guidelines: Whenever you write the PHP for an MCP tool, field interface or OAuth resource.
  • ddev: Local environment; the stdio server runs through ddev craft.
  • craft-cloud, servd, craft-fortrabbit: host-specific env var and filesystem handling for the signing keys.
  • craft-content-modeling: When an MCP client is used to author sections, fields or entry types (project config workflow still applies).

Read the full file on GitHub · 96 lines

Files

What ships with it

8 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. 3d ago First seen · 96 lines · 110 tokens per session scan A 93f5c8a7e986

Subscribe to this mod's changes

craft-mcp is a skill published in the GitHub repository michtio/craftcms-claude-skills (90 stars, last pushed 4d ago), licensed MIT. It adds 110 tokens to every session and 2,502 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-11-27.

Related

craft-mcp compared with skills from other repositories

craft-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
craft-mcpmichtio/craftcms-claude-skillsSkill904d agoMITA110Claude Code
ash-frameworkoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA48Claude Code
liveview-patternsoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA51Claude Code
deployoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA46Claude Code
obanoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA51Claude Code
perfoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA50Claude Code
tidewave-integrationoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA38Claude Code