Laravel Clockwork debugging plugin for Claude Code
npx claudepluginhub fridzema/clockwork-mcpDebug Laravel apps with Clockwork - N+1 detection, slow queries, performance analysis
MCP server for Laravel Clockwork - debug Laravel apps with Claude Code.
This MCP server gives Claude Code access to your Laravel application's Clockwork debugging data, enabling:
/marketplace add github:fridzema/clockwork-mcp
/plugin install clockwork
This installs the MCP server and adds convenience commands:
/clockwork:status - Check storage status/clockwork:latest - Show latest request summary/clockwork:slow - Find slow queries/clockwork:n+1 - Detect N+1 patternsAdd to your Claude Code MCP settings:
{
"mcpServers": {
"clockwork": {
"command": "npx",
"args": ["-y", "clockwork-mcp"]
}
}
}
composer require itsgoingd/clockwork
Ask Claude to analyze your requests:
Or use the slash commands:
/clockwork:status/clockwork:latest/clockwork:slow/clockwork:n+1You: "The /api/orders endpoint is slow, can you analyze it?"
Claude will use the MCP tools to:
/api/ordersYou: "I just got a 500 error on the checkout page, what happened?"
Claude will:
You: "Check if there are N+1 issues on the products page"
Claude will:
->with('relation')Performance:
Debugging:
Analysis:
Exception & Error Analysis:
Route Performance:
Memory Issues:
Queue Jobs:
Test Execution:
| Tool | Description |
|---|---|
list_requests | List recent requests with filtering |
get_request | Get full request details by ID |
get_latest_request | Get the most recent request |
search_requests | Search by controller, URI, status, duration |
| Tool | Description |
|---|---|
get_queries | Get all database queries for a request |
analyze_slow_queries | Find queries above threshold |
detect_n_plus_one | Detect N+1 query patterns |
get_query_stats | Get aggregate query statistics |
| Tool | Description |
|---|---|
get_performance_summary | Response time, memory, query overview |
get_timeline | Execution timeline events |
compare_requests | Compare two requests side by side |
| Tool | Description |
|---|---|
get_cache_operations | Cache hits, misses, writes |
get_cache_stats | Hit ratio and totals |
get_redis_commands | Redis commands executed |