eink-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
eink-mcp
An MCP server that lets AI agents draw on or clear a Waveshare e-ink display.
Screenshot

Related MCP server: mcp-divoom-lan
Hardware
Raspberry Pi (any model with GPIO)
Any supported Waveshare e-Paper display (default: 7.5" V2, 800×480)
Setup
1. System packages
sudo apt install python3-full python3-venv fonts-dejavu2. Virtual environment
python3 -m venv venv
venv/bin/pip install -r requirements.txt3. Waveshare e-Paper library (not on PyPI — clone it inside the project directory)
git clone https://github.com/waveshare/e-Paper
venv/bin/pip install ./e-Paper/RaspberryPi_JetsonNano/python/After setup the directory should look like this:
eink-mcp/
├── server.py
├── display.py
├── requirements.txt
├── venv/ <- created by you, not in git
└── e-Paper/ <- cloned by you, not in gitRunning the server
venv/bin/python server.pyThe server uses stdio transport (default for MCP).
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"eink-display": {
"command": "/path/to/eink-mcp/venv/bin/python",
"args": ["/path/to/eink-mcp/server.py"],
"env": {
"EINK_DISPLAY_MODEL": "epd7in5_V2",
"EINK_ROTATION": "0",
"EINK_FONT_PATH": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf",
"EINK_FONT_PATH_BOLD": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf",
"EINK_STATE_PATH": "/tmp/eink_state.json"
}
}
}
}Claude Code
Install Claude Code on the Pi:
curl -fsSL https://claude.ai/install.sh | shLog in:
claude loginRegister the MCP server:
claude mcp add eink-display -s user -e EINK_DISPLAY_MODEL=<your_model> -e EINK_ROTATION=<rotation> -- /path/to/eink-mcp/venv/bin/python /path/to/eink-mcp/server.pyAdjust EINK_DISPLAY_MODEL and EINK_ROTATION to match your hardware. See the Configuration section for supported values.
Scope note: The
-s userflag registers the server at user scope, so it is available from any working directory. Without it, the server is registered only for the current project directory — env vars likeEINK_ROTATIONwill not be picked up when running Claude from a different folder.
Verify the server is listed:
claude mcp listTesting
Once added, ask Claude directly in the chat:
Check the server is connected and get display dimensions:
What is the eink display size?Draw something:
Draw "Hello from Claude" in large text centered on the eink displayCheck what is currently shown on the display:
What is currently on the eink display? Describe what you can see.Clear the display:
Clear the eink displayClaude will pick up the get_display_info, draw, render_layout, clear_display, and get_display_state tools automatically. On a Mac without Pi hardware, tool calls still succeed — a WARNING Hardware not available line appears in the server's stderr log instead of writing to the display.
Configuration
Environment variable | Default | Description |
|
| Waveshare display model name — drives both hardware driver and canvas dimensions. Built-in models: |
|
| Default rotation applied to every |
|
| Default font for text elements |
|
| Bold font for text elements |
Development
Install dev dependencies:
venv/bin/pip install -r requirements-dev.txtLint and format:
ruff check .
ruff check --fix .
ruff format .If the Waveshare hardware is unavailable (e.g. on a Mac), draw and clear_display log a dry-run message instead of crashing, so you can develop and test tool schemas without a Pi.
Troubleshooting
No module named 'waveshare_epd'
venv/bin/pip install ./e-Paper/RaspberryPi_JetsonNano/python/No module named 'spidev' / No module named 'lgpio'
venv/bin/pip install -r requirements.txtSPI not enabled
sudo raspi-config nonint do_spi 0
sudo rebootPrompts and Templates
Ready-made prompts for common drawings. Copy the prompt, fill in any placeholders, and paste it into Claude.
Prompt | Description | Preview |
Renders a GitHub user's profile card with stats and 7-day activity chart |
|
Templates
Templates are JSON files in the templates/ directory that define reusable layouts for the e-ink display. Each template can contain multiple layouts, allowing you to switch between different dashboard or display styles within a single template file. This is useful for dashboards that have several views, or for grouping related layouts together.
To use a template, reference its name and (optionally) the layout you want to render. See the templates/ folder for examples.
Tools
Tool | Description |
| Returns display dimensions and named font sizes |
| Returns the last rendered spec (elements or sections) so Claude can iterate on it |
| Clears the display to white |
| Renders a structured dashboard — sections stack vertically, no coordinates needed |
| Renders a list of raw drawing elements — full pixel-level control |
| Returns all available display templates as a JSON array, including usage info and specs |
render_layout — sections
Sections stack top-to-bottom automatically. Pass them in display order.
header
{ "type": "header", "title": "My Dashboard", "subtitle": "10:15" }divider
{ "type": "divider", "light": false, "bold": false }light— grey rule;bold— thicker rule
stat_block
{ "type": "stat_block", "label": "Today", "value": "1.2K tok", "progress": 0.45, "detail": "987 in / 247 out", "badge": "Resets 13h" }progress— 0.0–1.0; omit to hide the barbadge— small label to the right of the bar
text_row
{ "type": "text_row", "left": "Status: OK", "right": "v1.2", "size": "small" }spacer
{ "type": "spacer", "height": 10 }bar_chart (must be last — fills remaining space)
{ "type": "bar_chart", "title": "7-day tokens", "data": [{"label": "Mon", "value": 48300}, {"label": "Tue", "value": 72100}] }image_block
{ "type": "image_block", "path": "/path/to/file.png", "width": 400 }draw — drawing elements
All elements are passed as a list to draw. Each must have a type field.
text
{ "type": "text", "text": "Hello", "x": 10, "y": 10, "size": "label", "bold": false, "fill": 0, "align": "left", "font": null }size— pixel integer or named size:title(34)large(28)label(19)value(17)small(14)tiny(12)bold— uses the bold variant of the default fontalign—"left"(default): x is the left edge;"center": x is the center point;"right": x is the right edgefont— optional path to a custom.ttffile
rect
{ "type": "rect", "x0": 10, "y0": 10, "x1": 200, "y1": 80, "outline": 0, "fill": null }line
{ "type": "line", "x0": 0, "y0": 0, "x1": 800, "y1": 480, "fill": 0, "width": 2 }ellipse
{ "type": "ellipse", "x0": 100, "y0": 100, "x1": 300, "y1": 300, "outline": 0, "fill": null }progress_bar
{ "type": "progress_bar", "x": 20, "y": 100, "width": 760, "height": 12, "value": 0.65, "fill": 0, "background": 240, "outline": 100 }value— fill fraction,0.0–1.0
divider
{ "type": "divider", "y": 150, "fill": 0, "width": 1, "margin": 20 }Draws a full-width horizontal line with a left/right margin
image
{ "type": "image", "path": "/path/to/file.png", "x": 0, "y": 0, "width": null, "height": null }width/height— scale the image; if only one is set, aspect ratio is preserved
Colour values: 0 = black, 255 = white, any integer 0–255 for greyscale.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Display delivery platform for AI agents. Push HTML, dashboards and live data to screens.
Give your AI agent the power to cast to your home TV and control an interactive canvas. By ArdaBot.
Run your TRMNL ePaper (e-ink) displays from any AI agent: devices, playlists and new screens.
Generate images, GIFs, videos, and PDFs from HTML, URLs, or templates — from your AI agent.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables programmatic control of Divoom Pixoo LED matrices to display layered pixel art, animations, and hardware-rendered scrolling text. Users can compose complex visual scenes, push images, and manage device settings like brightness and channels through an LLM.8351 npm14Apache 2.0

mcp-divoom-lanofficial
AlicenseBqualityBmaintenanceEnables AI clients to control Divoom LAN devices, including watchface management, brightness adjustment, and screen control through natural language.4253 npm8MIT- AlicenseAqualityFmaintenanceEnables AI agents to build freeform dashboards for e-ink panels by listing widgets and devices, laying out a canvas, rendering a preview, and pushing to the panel.18AGPL 3.0
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to create and manage customizable dashboards with text, list, stats, progress, and chart widgets, accessible via a read-only web viewer and JSON API.-
