apple-log-mcp
Provides tools for accessing and managing Apple platform logs (console, unified, diagnostic) from Apple devices and simulators.
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., "@apple-log-mcp start live logs for the booted iPhone simulator"
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.
apple-log-mcp
Local MCP server for Apple platform console, unified, and diagnostic logs.
Install
git clone https://github.com/BBC6BAE9/apple-log-mcp.git "$HOME/.local/share/apple-log-mcp"
cd "$HOME/.local/share/apple-log-mcp"
npm install
npm run buildRelated MCP server: xcforge
Codex config
Add this to ~/.codex/config.toml.
[mcp_servers.apple_log]
command = "/bin/zsh"
args = ["-lc", "node \"$HOME/.local/share/apple-log-mcp/dist/index.js\""]
startup_timeout_sec = 30Restart Codex after changing the config.
Claude Desktop config
Add this to your MCP config JSON.
{
"mcpServers": {
"apple_log": {
"command": "/bin/zsh",
"args": ["-lc", "node \"$HOME/.local/share/apple-log-mcp/dist/index.js\""]
}
}
}Tools
apple_list_devices: list physical and simulated Apple devices.apple_start_live_logs: start a live capture session.apple_read_live_logs: read recent or incremental log lines.apple_stop_live_logs: stop a capture session.apple_list_log_sessions: list active sessions.
Example
Start live logs for a simulator:
{
"target": "simulator",
"device": "booted",
"bundleId": "com.example.app",
"streams": ["console", "unified"],
"terminateExisting": true
}Then read logs:
{
"sessionId": "<session id from apple_start_live_logs>",
"limit": 200
}Notes
Swift
print()is stdout. To capture it reliably, start the app through this MCP.Objective-C
NSLog,os_log, and SwiftLoggerusually go through Apple unified logging.The MCP does not expose a raw shell. It wraps
xcrun devicectl,xcrun simctl, andlog.
Available Tools
5 toolsapple_list_devicesB
List physical and simulated Apple devices known to Xcode/CoreDevice.
Inputs: includePhysical, includeSimulators.
apple_list_log_sessionsA
List active and stopped Apple log capture sessions held by this MCP process.
Inputs: no named parameters.
apple_read_live_logsC
Read recent or incremental lines from a live Apple log capture session.
Inputs: sessionId (required), limit, source, contains, +1 more.
apple_start_live_logsB
Start a live Apple app log capture session. Console captures print/stdout/stderr; unified captures OSLog where supported.
Inputs: device (required), target (required), bundleId (required), streams, +3 more.
apple_stop_live_logsC
Stop a live Apple log capture session.
Inputs: sessionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct purpose: listing devices, and managing log sessions with separate start, stop, list, and read operations. No overlap or ambiguity.
All tools follow a consistent 'apple_verb_noun' snake_case pattern (e.g., apple_list_devices, apple_start_live_logs). Perfect uniformity.
Five tools is an appropriate size for a focused log management server, covering essential operations without being overbearing.
The server covers the core lifecycle of log sessions (list, start, read, stop) and device enumeration. Minor gaps like log filtering or configuration are missing, but the main workflow is supported.
Related MCP Connectors
Syslog receiver and MCP server for homelab log intelligence.
Syslog receiver and MCP server for homelab log intelligence.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
MCP server for interacting with the Supabase platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server to control iOS Simulators.9 npm53MIT
- AlicenseNot gradedqualityBmaintenanceMCP server and CLI for iOS development — build, test, automate, and diagnose from any AI agent or terminal.2MIT
- AlicenseAqualityDmaintenanceAn MCP server for streaming and searching macOS Console.app and iOS device logs, enabling real-time log access and debugging through natural language.146 npm1MIT
- FlicenseCqualityCmaintenanceLocal macOS MCP server and setup app for Apple apps194-