Skip to content

MCP server ​

The desktop app has a built-in MCP server. AI clients such as Claude Code, Cursor and OpenCode use it to read your dumps, queries, logs, jobs and mails.

Enable the server ​

  1. Open Settings → MCP Server.
  2. Turn on Native (Streamable HTTP).
  3. Note the port (default 3002).

Limit Payload objects sets how many of the latest items each tool returns. The default is 10.

Connect a client ​

The endpoint is http://127.0.0.1:3002/mcp. Use your own port if you changed it.

bash
claude mcp add laradumps http://127.0.0.1:3002/mcp --transport http

Restart the client. The LaraDumps tools, such as get_logs and get_queries, should appear in a new chat.

For clients that launch a process, the Stdio Command field in the same settings tab shows a ready-to-copy command: node <app path>/dist/mcp-server.js --port=<port>.

Tools ​

Tools that take a limit return the latest items, up to that number.

ToolDescription
get_dumpsCaptured dumps.
get_queriesCaptured SQL queries.
get_problematic_queriesDuplicate queries and queries with EXPLAIN nodes.
get_logsCaptured logs: id, level, message, context, date.
get_log_detailsOne log, by log_id.
summarize_logsThe last 50 logs.
get_jobsCaptured jobs.
get_mailsCaptured mails, metadata only.
get_mailOne mail, by message_id. include selects meta, text, html, headers, details, attachments or attachment_bodies.
get_livewire_componentsCaptured Livewire components.
get_brainsCollected Brains data.
get_project_infoCurrent project information.
analyze_profilerSlowest profiler entries. Filter with route, min_total_ms and limit.
toggle_envenable, disable or toggle a watcher (queries, logs, jobs, cache, http, livewire).
clear_dumps, clear_jobs, clear_mails, clear_logsClear captured data.
confettiFire a confetti animation in the app.

Prompts ​

  • analyze_last_exception: sends the latest error, critical, emergency or alert log to the AI and asks for a fix.
  • optimize_latest_query: sends the latest SQL query to the AI and asks for optimizations.

Example requests ​

You askUsed
"Does my last query have an N+1 problem?"get_queries, optimize_latest_query
"What caused the last error?"get_logs, analyze_last_exception
"Which routes are slow?"analyze_profiler
"Stop watching queries."toggle_env

Troubleshooting ​

If the client cannot connect:

  • Check that the app is running and the MCP server is enabled.
  • Check that the port in the client matches Settings → MCP Server.
  • Check that the URL ends in /mcp.
  • Restart the client and start a new chat.

Test the endpoint with curl http://127.0.0.1:3002/mcp. A 400 response means the server is up, because it expects an MCP initialize request.

If tools return empty data, check that your app is sending data and that the matching watcher is enabled.

WARNING

The server listens on 127.0.0.1 only and rejects requests whose Host header is not localhost. It has no authentication, so do not expose the port.

Created by Luan Freitas