Back to Home
cboxdk icon

statamic-mcp

Verified Safe

by cboxdk

Overview

Provides AI assistants with structured access to Statamic CMS content management capabilities through a router-based architecture.

Installation

Run Command
php artisan mcp:start statamic

Environment Variables

  • APP_ENV

Security Notes

The authentication middleware uses Basic Auth and a custom Base64-encoded token (functionally similar to Basic Auth), which relies on HTTPS for secure transport. The `BaseStatamicTool::validateAndSanitizeArguments` is intentionally permissive for 'Claude compatibility', performing only basic null byte checks and deferring deeper input validation to underlying Statamic APIs. This approach could be a vulnerability if a downstream Statamic component has insufficient validation for specific field types or data structures when processing AI-generated input. The `AssetsRouter::createAsset` and `AssetsRouter::uploadAsset` methods allow uploading file content (either base64 encoded or from a local path) by creating temporary files and using `Illuminate\Http\UploadedFile`. While `mime_content_type` is used, it does not guarantee protection against all forms of malicious file uploads (e.g., PHP web shells). If an attacker can control or jailbreak the AI's input, this could lead to remote code execution. Other parts of the system, such as `PathValidator` and Statamic's blueprint-based field validation in `ContentRouter`, demonstrate strong security practices for their respective domains. Configuration settings are protected with whitelisting in `SystemRouter` to prevent arbitrary changes.

Similar Servers

Stats

Interest Score43
Security Score7
Cost ClassMedium
Avg Tokens5000
Stars20
Forks1
Last Update2025-12-14

Tags

StatamicCMSMCPAI AssistantLaravel