Skip to main content
Glama

petroglyphs-mcp

MCP server that bridges iPad handwriting input with LLMs. Captures handwriting as PNG images and exposes them via Model Context Protocol tools and resources.

Quick Start (Claude Desktop + iPad)

Prerequisites: Node.js (v18+) and Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "petroglyphs": {
      "command": "npx",
      "args": ["-y", "petroglyphs-mcp", "--port", "3333"]
    }
  }
}

Restart Claude Desktop — it starts the MCP server automatically with both stdio (for Claude) and HTTP (for the iPad) on port 3333.

Note: Do not run npx petroglyphs-mcp --port 3333 separately if Claude Desktop is already running — the port will conflict. Claude Desktop manages the server for you.

Connect the iPad

  1. Make sure your iPad and computer are on the same Wi-Fi network

  2. Find your computer's local IP:

    • Mac: System Settings → Wi-Fi → Details → IP Address

    • Windows: ipconfig in terminal, look for IPv4 under your Wi-Fi adapter

    • Linux: hostname -I or ip addr

  3. Open the Petroglyphs iPad app → Server → enter http://<your-ip>:3333

  4. The connection dot turns green when connected

Claude Desktop only (no iPad)

If you just want stdio mode without HTTP:

{
  "mcpServers": {
    "petroglyphs": {
      "command": "npx",
      "args": ["-y", "petroglyphs-mcp"]
    }
  }
}

HTTP only (standalone, without Claude Desktop)

npx -y petroglyphs-mcp --port 3333

Related MCP server: obsidian-excalidraw-universal-mcp

CLI Flags

Flag

Default

Description

--port

3333

HTTP server port

--vault-path

—

Path to Obsidian vault (enables save_to_obsidian tool)

--export-path

~/Desktop

Output directory for Excalidraw exports

--max-history

50

Max submissions kept in memory

MCP Tools

Tool

Description

get_handwriting

Returns the latest handwriting image (base64 PNG) with metadata

get_handwriting_history

Returns the last N submissions with metadata

save_to_obsidian

Saves content as markdown to an Obsidian vault

export_to_excalidraw

Exports strokes as an Excalidraw file

clear_history

Clears all submissions from memory

HTTP Endpoints

Endpoint

Method

Description

/api/health

GET

Health check

/api/submit

POST

Submit handwriting image + metadata

/mcp

POST

MCP Streamable HTTP transport

iPad App

The companion iPad app lives at petroglyphs-app.

License

MIT

Available Tools

6 tools
clear_historyB

Clears all stored handwriting submissions

Inputs: no named parameters.

export_to_excalidrawA

Exports the latest handwriting strokes as an Excalidraw file (.excalidraw JSON)

Inputs: filename.

get_handwritingA

Get the latest drawing from Petroglyphs (petro) iPad. Returns the handwriting image (base64 PNG) with stroke metadata.

Inputs: no named parameters.

get_handwriting_historyB

Get drawing history from Petroglyphs (petro) iPad. Returns the last N handwriting submissions with metadata.

Inputs: limit.

get_pairing_codeA

Returns a 4-character pairing code for this session. The user enters this code on their iPad to link it to this Claude session. Each session gets one stable code.

Inputs: no named parameters.

save_to_obsidianB

Saves content as a markdown file to an Obsidian vault with YAML frontmatter. Optionally embeds the handwriting image.

Inputs: title (required), content (required), tags, folder, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct action+resource: fetching the latest drawing, fetching history, clearing history, saving to Obsidian, exporting to Excalidraw, and retrieving a pairing code. The two get_handwriting* tools are related but clearly differentiated by 'history' in the name and description. No tool appears to do the same thing as another.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern (get_*, clear_*, save_to_*, export_to_*). The destination-oriented suffix (_to_obsidian, _to_excalidraw) is used consistently. No mixed conventions or vague verbs.

    Tool Count5/5

    Six tools is well-scoped for a handwriting-capture bridge to an iPad. Every tool earns its place: capture, history, cleanup, two export destinations, and session pairing. No filler or redundant tools.

    Completeness4/5

    The core lifecycle is covered: pair with iPad, fetch latest drawing, browse history, clear storage, and export to two destinations. Minor gaps exist—no way to fetch or delete a single history submission by id, and no delete of just the latest drawing versus the whole history—but agents can work around these with clear_history and get_handwriting.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to interact with Ratta Supernote e-ink tablets over Wi-Fi, allowing live screen capture, reading and rendering of handwriting notes, and file upload.
      70 npm
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents like Claude Code and Codex to read handwriting and sketches drawn on a tablet in real time via MCP, with local recognition to text/LaTeX, session recording, and export to Markdown/Excalidraw.
      9
      MIT