Download the PHP package stimmt/craft-mcp without Composer

On this page you can find all versions of the php package stimmt/craft-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-mcp

CI Total Downloads Latest Stable Version

Introduction

Craft MCP is an MCP (Model Context Protocol) server for Craft CMS. It gives AI assistants direct access to your installation's content, schema, and configuration: rather than describing your field layouts or Matrix setups by hand, the assistant queries them, writes reviewable draft content in a natural-key format, and inspects the system it is working in.

It ships more than 50 specialized tools, 9 analysis prompts, and 12 data resources, served over stdio for local development and over HTTP with scoped bearer tokens for remote users.

Quick Start

Enable the server in config/mcp.php (it is disabled in production by default):

Then run the interactive wizard to configure your MCP clients:

That is the whole happy path. For manual client configuration (Claude Code, Cursor, Claude Desktop, SSH), see the Configuration guide.

Remote Access over HTTP

Content editors and office users can point Claude Desktop straight at a remote install: the plugin serves the MCP protocol from a Craft endpoint, authenticated with per-user bearer tokens scoped to readonly, content, or full access. Off by default; enabling it, minting tokens (php craft mcp/tokens/create), and troubleshooting are covered in the HTTP Transport guide.

Content Writing for Agents

Entry reads and writes share one payload format: relations as natural keys ({"section": "pages", "slug": "about"}), Matrix blocks by type handle, and per-field input shapes from describe_entry_schema that tell an agent exactly what every field accepts, third-party fields included. Writes land as reviewable drafts with a control panel deep link, and publish_entry makes them live. The full format, workflow, and schema discovery are covered in the Content Writing guide.

The Toolbox

Category Highlights
Content Entries (payload-format read/write, draft workflow, publish/duplicate/copy to site), schema discovery via describe_entry_schema, assets, categories, users, globals
System System info, config, logs, caches, routes, console commands
Database Schema inspection, table counts, read-only queries
Debugging Queue jobs, project config diff, deprecations, EXPLAIN, event handlers, and a Tinker tool for executing PHP in the Craft context
Multi-Site Sites, site groups, per-site details
GraphQL Schemas, SDL, query execution, tokens
Backup Create and list database backups
Self-Awareness Plugin info, tool listing with risk annotations, hot reload
Commerce Products, orders, and statuses (when Craft Commerce is installed)

Tools that modify data or execute code are flagged dangerous: they sit behind the enableDangerousTools setting, carry a destructiveHint annotation in tools/list, and are excluded from readonly and (except entry workflow) content HTTP scopes. See the Tools Overview for the complete reference.

Extending

Other plugins and modules can register their own tools, prompts, resources, and field translators through events (EVENT_REGISTER_TOOLS, EVENT_REGISTER_FIELD_TRANSLATORS, and friends). See the Extending guide for implementation details and examples.

Documentation

The documentation index links everything; the direct routes:

Contributing

Thank you for considering contributing to Craft MCP! Please see GitHub Issues for bug reports, feature requests, and discussion.

Credits

License

Craft MCP is open-sourced software licensed under the MIT license.


All versions of craft-mcp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
craftcms/cms Version ^5.0
mcp/sdk Version ^0.7
psr/event-dispatcher Version ^1.0
psr/simple-cache Version ^2.0 || ^3.0
psy/psysh Version ^0.12
symfony/finder Version ^6.4 || ^7.3 || ^8.0
symfony/polyfill-php84 Version ^1.31
nyholm/psr7 Version ^1.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stimmt/craft-mcp contains the following files

Loading the files please wait ...