tesla-wrap
Provides tools to list vehicle models, fetch official UV templates, generate AI paint designs, and verify or flatten the resulting wrap files for custom vehicle styling.
README
Tesla Wrap
Tesla Paint Shop wrap generator: official UV template + Grok Imagine + panel stencil.
Works for every vehicle Tesla publishes on teslamotors/custom-wraps.
Client usage (what an MCP host should follow): USAGE.md, also wrap://usage.
Pipeline
- Download the official UV for the vehicle
- (Optional) seed from a geometric layout PNG
- Grok Imagine paints the look at 2k / medium quality
- Stencil through Tesla’s panel mask → 1024×1024 PNG under 1 MB
Imagine is for look. Outlines always come from Tesla’s template (IoU 1.0).
Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
Edit .env:
XAI_API_KEY— required for ImagineMCP_LOGIN_PASSWORD— required if you run the public HTTP MCP
.env is gitignored. Do not put keys or passwords in this repo.
Official templates download on first fetch / create_wrap. Generated PNGs land in outputs/ (also gitignored).
CLI
python wrap.py vehicles
python wrap.py fetch highland
python wrap.py imagine --name black-gold --vehicle highland \
--look "driver side chrome gold, passenger matte black, honeycomb fade on the hood" \
--ref https://example.com/car.jpg
python wrap.py verify outputs/black-gold.png --vehicle highland
python wrap.py flatten outputs/black-gold.png
--base path/to/layout.png restyles an already-laid-out UV instead of the blank template.
MCP
Tools: list_vehicles, fetch_template, create_wrap, verify_wrap, flatten_wrap.
Local stdio
[mcp_servers.tesla-wrap]
command = "/path/to/grok-editor/.venv/bin/python"
args = ["/path/to/grok-editor/mcp_server.py"]
Public HTTP + first-time OAuth
python mcp_server.py --http --host 127.0.0.1 --port 8787 --path /grok-editor-mcp
Set MCP_PUBLIC_HOST to the hostname you funnel/proxy (no https://). First connect opens /login; the password is MCP_LOGIN_PASSWORD from .env. After that the client keeps an OAuth token. Imagine still uses local XAI_API_KEY.
[mcp_servers.tesla-wrap]
url = "https://YOUR_HOST/grok-editor-mcp"
enabled = true
tool_timeout_sec = 600
Health (no auth): http://127.0.0.1:8787/health
Optional systemd user unit: tesla-wrap-mcp.service (WorkingDirectory uses %h/grok-editor).
Vehicles
model3, model3-2024-base (aliases: highland, model3-premium), model3-2024-performance, modely, modely-2025-base, modely-2025-premium, modely-2025-performance, modely-l, models-2021, models-2025-plaid, modelx-2021, cybertruck.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.