iwdp-mcp MCP Server

Debug iOS Safari from your AI agent.

nnemirovsky/iwdp-mcp ↗by nnemirovskyupdated
1

Add it to Claude Code

claude mcp add iwdp-mcp -- iwdp-mcp
2

Make your agent remember this setup

iwdp-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Full WebKit Inspector Protocol support
  • Network interception and httpOnly cookie access
  • Real device testing for iOS-specific bug reproduction
  • JavaScript evaluation and DOM inspection
  • Screenshot capture capabilities

Tools 5

devicesList connected iOS devices
pagesList Safari tabs on a specific device
evalEvaluate JavaScript on a page
screenshotTake a screenshot of the current page
cookiesShow all cookies including httpOnly

Try it

List all connected iOS devices and their open Safari tabs.
Take a screenshot of the current page on my iPhone to check the layout.
Extract all cookies, including httpOnly ones, from the active Safari tab.
Evaluate 'document.title' on the first open Safari page to verify the site title.
Original README from nnemirovsky/iwdp-mcp

iOS WebKit Debug Proxy MCP Server + CLI

Debug iOS Safari from your AI agent. No existing tool lets AI assistants interact with Safari on a real iPhone. Chrome DevTools MCP speaks CDP, which is incompatible with WebKit. This project bridges that gap.

<video src="https://github.com/user-attachments/assets/dcc0dc05-3a1f-4454-88a8-51ee28da9fd2" poster="https://github.com/user-attachments/assets/3901f7ff-6531-4866-b49e-cf5d17304327" autoplay loop muted playsinline></video>

100+ tools across all 27 WebKit Inspector Protocol domains — navigation, screenshots, DOM inspection, CSS, network interception, httpOnly cookies, JS debugging, heap snapshots, profiling, and more. Full feature parity between MCP server and CLI.

Why?

  • Chrome DevTools MCP exists for desktop Chrome. Nothing existed for iOS Safari — until now.
  • httpOnly cookies are invisible to document.cookie. This tool reads them via the protocol.
  • Real device testing catches iOS-specific bugs that simulators miss.
  • Works with Claude Code, VS Code, Cursor, Windsurf, Codex CLI, Antigravity, JetBrains, and any MCP-compatible client.

Installation

Prerequisites

# Install ios-webkit-debug-proxy (macOS)
brew install ios-webkit-debug-proxy

# Connect an iOS device via USB and enable Web Inspector:
# Settings → Safari → Advanced → Web Inspector → ON

For Linux and other platforms, see the ios-webkit-debug-proxy installation guide.

Claude Code Plugin (recommended)

Inside Claude Code, run:

/plugin marketplace add nnemirovsky/iwdp-mcp
/plugin install iwdp-mcp

Go Install

go install github.com/nnemirovsky/iwdp-mcp/cmd/...@latest

Pre-built Binaries

Download from GitHub Releases.

Build from Source

git clone https://github.com/nnemirovsky/iwdp-mcp.git
cd iwdp-mcp
make build

Quick Start

CLI

# Start the proxy
ios_webkit_debug_proxy --no-frontend &

# List connected devices (port 9221)
iwdp-cli devices

# List Safari tabs on the first device (port 9222)
iwdp-cli pages

# Evaluate JavaScript
iwdp-cli eval "document.title"

# Take a screenshot
iwdp-cli screenshot -o page.png

# Show all cookies (including httpOnly)
iwdp-cli cookies

MCP Server

<details id="claude-code"> <summary><strong>Claude Code</strong></summary>

Install as a plugin (recommended):

/plugin marketplace add nnemirovsky/iwdp-mcp
/plugin install iwdp-mcp

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "iwdp-mcp": {
      "command": "iwdp-mcp"
    }
  }
}

Or via CLI:

claude mcp add iwdp-mcp -- iwdp-mcp
</details> <details> <summary><strong>Claude Desktop</strong></summary>

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "iwdp-mcp": {

Frequently Asked Questions

What are the key features of iwdp-mcp?

Full WebKit Inspector Protocol support. Network interception and httpOnly cookie access. Real device testing for iOS-specific bug reproduction. JavaScript evaluation and DOM inspection. Screenshot capture capabilities.

What can I use iwdp-mcp for?

Debugging mobile-specific CSS layout issues on real iPhones. Automating regression testing for web applications on iOS Safari. Inspecting httpOnly session cookies for security auditing. Capturing visual evidence of UI bugs on physical iOS devices.

How do I install iwdp-mcp?

Install iwdp-mcp by running: /plugin marketplace add nnemirovsky/iwdp-mcp

What MCP clients work with iwdp-mcp?

iwdp-mcp works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep iwdp-mcp docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest