
Craft MCP
Guides setting up and extending Craft CMS 5.12+ MCP servers and OAuth access
Craft MCP is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- shell
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 91
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Craft MCP
This skill gives an agent the detail needed to work with Craft CMS MCP support: the authenticated, public and stdio servers, their access levels, and the Settings and config files that control them. It covers generating OAuth signing keys, supplying them through environment variables on local, production and managed hosts, and connecting Claude Code or another client to the authorization endpoint.
It also documents the snake_case tool catalogue, the gating that hides admin-only tools, and the security points to check before exposing a site, such as redirect domains and token revocation. Reference files cover client setup, personal access tokens and plugin extension, including registering MCP tools and field interfaces.
The skill expects a Craft CMS 5.12.5 or later project, a shell with the ddev and craft commands for local work, and access to the site's config and project config. It runs a version-check script through Bash when loaded.
When your agent uses it
Craft CMS 5.12+ MCP servers, OAuth server and personal access tokens: authenticated, public and stdio (mcp/serve) servers, mcp:read/write/admin levels, Settings → MCP, config/mcp.php and config/oauth.php, oauth/generate-keys and CRAFT_OAUTH_PRIVATE_KEY/PUBLIC_KEY on DDEV, production, Cloud, Servd and fortrabbit, connecting Claude Code or another client, the snake_case tool catalogue, and plugin MCP tools, field interfaces and OAuth resources.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 9 files (91 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the craftcms-claude-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@craftcms-claude-skillsOr copy only this skill to ~/.claude/skills/craft-mcp:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/craft-mcp &&
cp -R "$tmp/skills/craft-mcp" ~/.claude/skills/craft-mcp &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/craft-mcp inside it instead.
Copy the skill folder to ~/.agents/skills/craft-mcp to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/craft-mcp &&
cp -R "$tmp/skills/craft-mcp" ~/.agents/skills/craft-mcp &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/craft-mcp inside it instead.
Copy the skill folder to ~/.cursor/skills/craft-mcp to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/craft-mcp &&
cp -R "$tmp/skills/craft-mcp" ~/.cursor/skills/craft-mcp &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/craft-mcp inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michtio/craftcms-claude-skills.git --path skills/craft-mcpOr copy the folder to ~/.gemini/skills/craft-mcp yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/craft-mcp:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/craft-mcp &&
cp -R "$tmp/skills/craft-mcp" ~/.copilot/skills/craft-mcp &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/craft-mcp inside it instead.
Get the folder:
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.gitThen copy craftcms-claude-skills/skills/craft-mcp into your agent's skills folder as craft-mcp. Agents that support SKILL.md read one folder per skill.
What it does
- Three MCP server types
- Explains the authenticated, public and stdio servers, who each acts as, and their default state.
- OAuth key setup
- Covers generating signing keys and supplying them through environment variables across hosts.
- Client connection steps
- Walks through connecting Claude Code over HTTP on a local site and using stdio for other setups.
- Tool catalogue reference
- Lists the core tools, resources and prompts with their scopes and admin gating.
- Plugin MCP extension
- Describes registering MCP tools, field interfaces and OAuth resources from a plugin.
- Security hardening notes
- Covers redirect domain limits, rate limiting, token revocation and known advisories.
Good for
- Connect Claude Code to a local Craft CMS site over MCP
- Set up OAuth signing keys for a production Craft deployment
- Add a custom MCP tool to a Craft plugin
- Decide which MCP access level a client should get
- Harden a public MCP server before launch
Craft MCP FAQ
Which Craft CMS version does this require?
Everything covered is new in Craft 5.12, and the skill recommends targeting 5.12.5 or later rather than 5.12.0.
Can a personal access token be used with MCP?
No. The skill states that PATs cannot carry MCP scopes, so OAuth or stdio should be used for MCP clients.
What should the MCP server be named in Claude Code?
The skill says to name the server craft, because the pack's agents look for that name.
Why do admin-only tools sometimes disappear?
Tools marked as requiring admin changes are hidden when allowAdminChanges is off, so schema changes should be made in development and deployed through project config.
How do I install Craft MCP in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/craft-mcp to use it in all your projects, or to .claude/skills/craft-mcp in one project. Or install the craftcms-claude-skills plugin, which includes it: /plugin marketplace add michtio/craftcms-claude-skills, then /plugin install craftcms-claude-skills@craftcms-claude-skills.
Does Craft MCP run scripts?
Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Craft MCP?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Craft MCP?
The closest alternatives to Craft MCP are MCP testing, MCP Server Security, MCP CLI, Google ads API MCP setup and MCP builder.
Where this comes from
- Description: from the skill's own SKILL.md.
More from michtio/craftcms-claude-skills

Gives agents a safe Pest workflow for testing Craft CMS 5 plugins without touching live
- Open source
- 91 GitHub stars
- Developer tools

Guides an agent through Craft Cloud config, deploys, caching, and Cloud-specific limits
- Open source
- 91 GitHub stars
- Databases

Guides Craft CMS 5 content architecture: sections, entry types, fields, Matrix
- Open source
- 91 GitHub stars
- Developer tools

Deploys and runs Craft CMS on fortrabbit managed PHP hosting with safe git workflows
- Open source
- 91 GitHub stars
- Developer tools

Guides agents writing Craft CMS control panel JavaScript with the Garnish UI toolkit
- Open source
- 91 GitHub stars
- Developer tools

Runs one approved Craft CMS slice through outside builders under locked test gates
- Open source
- 91 GitHub stars
- Developer tools





