console-mcp
Provides access to macOS and iOS system logs, crash reports, and device logs for debugging and monitoring.
Enables streaming and searching logs from connected iOS devices and simulators, including filtering by process and severity.
Allows retrieval and streaming of macOS system logs, with filtering by process, subsystem, and log level.
Facilitates log access from iOS Simulators managed by Xcode, including listing simulators and streaming live logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@console-mcp get recent logs for com.apple.network"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Console MCP Server — macOS & iOS Log Streaming for AI Assistants
An MCP (Model Context Protocol) server for streaming and searching macOS Console.app and iOS device logs directly from Claude, GitHub Copilot, or any MCP-compatible AI assistant.
Stream real-time logs, search crash reports, filter by severity, and debug iOS simulators and physical devices — all through natural language.
Features
List Devices - Show connected iOS devices
List Simulators - Show available iOS Simulators
Get Logs - Fetch recent logs filtered by process or subsystem
Get Device Logs - Fetch logs from connected iOS devices
Get Simulator Logs - Fetch logs from iOS Simulators
Get Logs by Level - Filter logs by severity (fault, error, warning, info, debug)
Stream Logs - Capture live logs for a specified duration
Search Logs - Search through historical logs (supports regex)
Get Crash Logs - List and read crash reports
Watch for Pattern - Stream until a pattern matches
Export Logs - Save logs to file for sharing
VPN Logs - Quick shortcut to get WorxVPN-specific logs
Related MCP server: mcp-server-logs-sieve
Installation
git clone https://github.com/rohithgoud30/console-mcp.git
cd console-mcp
npm install
npm run buildFor iOS Device Logs
Install libimobiledevice for direct iOS device log streaming:
brew install libimobiledeviceConfiguration
Add to your .vscode/mcp.json:
{
"servers": {
"console": {
"command": "node",
"args": ["/path/to/console-mcp/dist/index.js"]
}
}
}Tools
list_devices
List connected iOS devices with their UDIDs.
list_simulators
List available iOS Simulators.
Parameter | Type | Description |
| boolean | Only show running simulators (default: false) |
| string | Filter by runtime (e.g., 'iOS 17') |
get_logs
Get recent logs from macOS.
Parameter | Type | Description |
| string | Filter by process name (e.g., 'Safari') |
| string | Filter by subsystem (e.g., 'com.apple.network') |
| number | Minutes of logs to fetch (default: 5) |
| number | Max lines to return (default: 200) |
get_logs_by_level
Get logs filtered by severity level.
Parameter | Type | Description |
| string | Log level: fault, error, warning, info, debug (required) |
| string | Filter by process name |
| number | Minutes of logs to fetch (default: 5) |
| number | Max lines to return (default: 200) |
get_device_logs
Get logs from a connected iOS device. Requires libimobiledevice.
Parameter | Type | Description |
| string | Device name or UDID (required) |
| string | Filter by process name |
| number | Minutes of logs to capture (default: 5, max: 10) |
| number | Max lines to return (default: 200) |
get_simulator_logs
Get logs from an iOS Simulator. Simulator must be booted.
Parameter | Type | Description |
| string | Simulator name or UDID (required) |
| string | Filter by process name |
| number | Minutes of logs to fetch (default: 5) |
| number | Max lines to return (default: 200) |
stream_logs
Stream live logs for a duration.
Parameter | Type | Description |
| string | Filter by process name |
| number | How long to stream (default: 10, max: 30) |
stream_simulator_logs
Stream live logs from an iOS Simulator.
Parameter | Type | Description |
| string | Simulator name or UDID (required) |
| string | Filter by process name |
| number | How long to stream (default: 10, max: 30) |
search_logs
Search through recent logs with text or regex.
Parameter | Type | Description |
| string | Text or regex pattern to search for (required) |
| boolean | Treat query as regex (default: false) |
| number | Minutes to search (default: 30) |
| number | Max matching lines (default: 100) |
get_crash_logs
List recent crash reports from DiagnosticReports.
Parameter | Type | Description |
| string | Filter by process/app name |
| number | Days to search back (default: 7) |
| number | Max reports to list (default: 10) |
read_crash_report
Read the full content of a specific crash report.
Parameter | Type | Description |
| string | Crash report filename (required) |
watch_for_pattern
Stream logs until a pattern matches. Great for test automation.
Parameter | Type | Description |
| string | Text or regex to watch for (required) |
| boolean | Treat pattern as regex (default: false) |
| string | Filter by process name |
| number | Max wait time (default: 30, max: 60) |
export_logs
Export logs to a file on the Desktop.
Parameter | Type | Description |
| string | Log content to export (required) |
| string | Optional filename |
| string | Export format: txt or json (default: txt) |
get_vpn_logs
Shortcut to get WorxVPN extension logs.
Parameter | Type | Description |
| number | Minutes of logs (default: 5) |
| number | Max lines (default: 300) |
Usage Examples
// In Copilot chat:
"List my iOS simulators"
"Get logs from iPhone 15 Pro simulator"
"Show device logs from my iPhone"
"Get the last 5 minutes of Safari logs"
"Show me all error logs from the last 10 minutes"
"Search logs for 'authentication' using regex"
"Get crash logs for MyApp"
"Read the crash report MyApp-2024-12-27.crash"
"Watch for 'connection established' while I connect"
"Export these logs to a file"
"Stream logs for 15 seconds while I reproduce the bug"
"Show me WorxVPN logs"Requirements
macOS 13+ (Ventura or later)
Node.js 18+
Xcode (for simulators and
xcruntools)libimobiledevice(optional, for iOS device logs)
Notes
macOS
logcommand is used for local logsxcrun simctlis used for simulator logsidevicesyslogfrom libimobiledevice is used for iOS device logsiOS device must be paired and trusted for log access
Crash reports are found in
~/Library/Logs/DiagnosticReportsExported logs are saved to
~/Desktop/ConsoleMCP-Exports/
Credits
Originally created by devstroop. This fork includes custom modifications and enhancements.
License
MIT
Available Tools
14 toolsexport_logsA
Export logs to a file on the Desktop for sharing
Inputs: logs (required), format, filename.
get_crash_logsB
List recent crash reports from DiagnosticReports
Inputs: process, lastDays, maxReports.
get_device_logsB
Get logs from a connected iOS device. Requires libimobiledevice (brew install libimobiledevice)
Inputs: device (required), process, maxLines, lastMinutes.
get_logsB
Get recent logs from macOS system. Use for debugging macOS apps.
Inputs: process, maxLines, subsystem, lastMinutes.
get_logs_by_levelB
Get logs filtered by severity level (fault, error, warning, info, debug)
Inputs: level (required), process, maxLines, lastMinutes.
get_simulator_logsA
Get logs from an iOS Simulator. The simulator must be booted.
Inputs: simulator (required), process, maxLines, lastMinutes.
get_vpn_logsB
Get logs specifically for WorxVPN extension - filters for VPN-related processes
Inputs: maxLines, lastMinutes.
list_devicesA
List connected iOS devices (physical devices connected via USB)
Inputs: no named parameters.
list_simulatorsA
List available iOS Simulators with their state (Booted/Shutdown)
Inputs: runtime, onlyBooted.
read_crash_reportA
Read the full content of a specific crash report
Inputs: filename (required).
search_logsB
Search through recent logs for a specific string or regex pattern
Inputs: query (required), maxLines, useRegex, lastMinutes.
stream_logsA
Stream live logs for a specified duration. Useful for capturing logs during an action.
Inputs: process, durationSeconds.
stream_simulator_logsB
Stream live logs from an iOS Simulator for a duration
Inputs: simulator (required), process, durationSeconds.
watch_for_patternA
Stream logs until a pattern is found. Useful for test automation - start an action, then wait for a specific log message.
Inputs: pattern (required), process, useRegex, timeoutSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
All tools have clearly distinct purposes: devices, simulators, and various log operations (system, device, simulator, crash, VPN, streaming, search, export, pattern watching). No two tools overlap in functionality.
All tool names follow a consistent 'verb_noun' snake_case pattern (e.g., list_devices, get_logs, stream_logs, search_logs). There is no deviation or mixing of conventions.
14 tools is well-scoped for a console/device management server. It provides a comprehensive set of log retrieval, filtering, streaming, and export operations without being excessive.
The tool surface covers the full lifecycle of log management: listing sources, retrieving logs, filtering, streaming, searching, and exporting. Minor gaps like log deletion or clearing are absent, but core workflows are complete.
Maintenance
Related MCP Connectors
Hosted iOS app intelligence and creative research MCP server.
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
An MCP server that provides tools to discover and retrieve podcast episodes transcripts.
An MCP server that provides congressional transcripts
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for intelligent log analysis providing semantic search, error pattern clustering, and smart error detection. It enables users to process, vectorize, and query local logs to efficiently identify issues and generate AI-powered summaries.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects Claude (or any MCP compatible client) to your existing log infrastructure. Query, summarize, and trace logs in plain English across GCP Cloud Logging, AWS CloudWatch, Azure Log Analytics, Grafana Loki, and Elasticsearch without writing filter expressions or leaving your editor.49 npm5MIT
- FlicenseBqualityDmaintenanceA log analysis MCP server that enables tailing, searching, filtering, and summarizing logs from local files and Docker containers.7-
- FlicenseNot gradedqualityDmaintenanceMCP server to start, monitor, search, and detect errors in logs from any project, even those without log files.-