Rapport MCP Server
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., "@Rapport MCP Server Get my canvas and add a blue rectangle in the center"
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.
Rapport MCP Server
Model Context Protocol (MCP) server for Rapport - enables AI agents like Claude to create and modify visual canvases.
Features
🎨 Canvas Manipulation - Read and modify SVG canvases
🔍 Element Queries - Find specific elements using CSS selectors
📝 Templates & Guides - Get comprehensive editing instructions
🛡️ Security Validation - Built-in XSS and script injection prevention
🔐 OAuth Authentication - Seamless browser-based login flow (works on remote servers!)
Related MCP server: inkscape-mcp
Installation
Option 1: Using Claude Code (Recommended)
# Install from npm
claude mcp add rapport-mcp
# Or use npx (no install required)
claude mcp add npx rapport-mcp
# Or for local development
claude mcp add npx /path/to/rapport-mcpOption 2: Global npm Install
npm install -g rapport-mcpOption 3: Use with npx (No Install)
# No installation needed - npx will run it on demand
npx rapport-mcp loginQuick Start
1. Authenticate
rapport-mcp loginThis will:
Generate a secure session ID
Open your browser to rapport.dev
Log you in (or use existing session)
Automatically detect when you've authenticated
Save your auth tokens locally
You're ready to go!
2. Configure Your AI Client
For Claude Code
Already done if you used claude mcp add! Otherwise:
claude mcp add rapport-mcpFor Claude Desktop
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Option A: With global install
{
"mcpServers": {
"rapport": {
"command": "rapport-mcp",
"args": []
}
}
}Option B: With npx (no install needed)
{
"mcpServers": {
"rapport": {
"command": "npx",
"args": ["-y", "rapport-mcp"]
}
}
}Option C: Local development
{
"mcpServers": {
"rapport": {
"command": "npx",
"args": ["-y", "/path/to/rapport-mcp"]
}
}
}3. Restart Your AI Client
That's it! Claude can now interact with your Rapport canvases.
Available Tools
get_svg
Get the SVG document and metadata for your canvas.
{
"include_metadata": true // optional
}Note: Automatically uses your authenticated user account - no project ID needed!
get_canvas_template
Get a comprehensive guide for modifying your canvas. Use this first before making changes!
{}update_svg
Update your canvas with new SVG content. Includes automatic security validation.
{
"svg_document": "<svg>...</svg>",
"skip_validation": false // optional, NOT recommended
}query_elements
Find elements in your canvas using CSS selectors.
{
"selector": "rect[fill='blue']"
}CLI Commands
# Authenticate with Rapport
rapport-mcp login
# Check authentication status
rapport-mcp status
# Clear authentication
rapport-mcp logoutSecurity
✅ OAuth-based authentication with automatic polling (no manual token copying!)
✅ Works on remote servers without localhost dependencies
✅ Tokens stored securely in
~/.rapport-mcp/config.json✅ Session-based flow with automatic expiration
✅ Automatic XSS and script injection prevention
✅ Row Level Security (RLS) enforces project ownership
✅ Comprehensive SVG validation
How It Works
User runs
rapport-mcp loginCLI generates a unique session ID
Browser opens to rapport.dev for authentication
After login, rapport.dev stores tokens server-side linked to session
CLI automatically polls for authentication completion
Once complete, tokens saved to
~/.rapport-mcp/config.jsonMCP server uses tokens with Supabase RLS
Only user's own projects are accessible
Remote Server Friendly: No localhost callback needed - works perfectly on remote servers via SSH!
Example Usage with Claude
"Get my canvas and add a blue rectangle in the center"
Claude will:
Use
get_canvas_templateto understand the structureUse
get_svgto fetch current canvasModify the SVG to add the rectangle
Use
update_svgto save changes
Development
# Clone the repository
git clone https://github.com/MicahBly/rapport-mcp.git
cd rapport-mcp
# Install dependencies
npm install
# Build
npm run build
# Test locally
node dist/cli.js loginTroubleshooting
"Not authenticated" error
Run rapport-mcp login to authenticate.
"Project not found"
Make sure you're logged in with the correct account that owns the project.
"SVG validation failed"
The SVG contains unsafe content (scripts, event handlers). Check the error message for details.
OAuth authentication times out
The authentication flow times out after 5 minutes. If this happens:
Make sure you can access rapport.dev from your browser
Complete the authentication promptly after the browser opens
Check your internet connection
Try running
rapport-mcp loginagain
Links
License
MIT © Instant Unicorn
Contributing
Contributions welcome! Please feel free to submit a Pull Request.
Available Tools
5 toolsexport_openapiB
Export API endpoints from your canvas as an OpenAPI specification. Scans the canvas for API-related semantic elements (API endpoints, gateways, etc.) and generates a complete OpenAPI 3.0/3.1 specification with paths, methods, schemas, and security requirements. Perfect for generating API documentation from architecture diagrams.
Inputs: format, version, include_examples.
get_canvas_templateA
Get canvas at specified detail level. DEFAULT: level 2 (SVG only).
LEVELS:
0: Metadata only (50 tokens) - quick status check
1: Summary (200 tokens) - element breakdown
2: SVG only (500-2000 tokens) - DEFAULT for editing
3: Full guide (1500-3000 tokens) - first interaction only
Use level=3 on FIRST interaction to learn format, then level=2 for subsequent edits.
Inputs: detail_level.
get_svgB
Get the SVG document for your Rapport canvas. Returns the current SVG. Optionally include metadata. Automatically fetches your canvas using your authenticated user account.
Inputs: include_metadata.
query_elementsB
Query and search for specific elements in your Rapport canvas using CSS-like selectors. Useful for finding elements by type, ID, or data attributes before modifying them. Automatically queries your canvas using your authenticated user account.
Inputs: selector (required).
update_svgA
Update the SVG document for your Rapport canvas. The SVG will be validated for security (no scripts, event handlers, or malicious content) and integrity before being saved. Returns detailed feedback about the update including element counts and any warnings. Automatically updates your canvas using your authenticated user account.
Inputs: svg_document (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
get_svg and get_canvas_template overlap significantly — level 2 of get_canvas_template is 'SVG only,' which duplicates get_svg's purpose, so an agent could reasonably pick either to fetch canvas content. The other tools (update_svg, query_elements, export_openapi) are clearly distinct, but the two read-SVG paths have blurry boundaries.
All five tools follow a consistent snake_case verb_noun pattern: get_svg, get_canvas_template, update_svg, query_elements, export_openapi. No mixing of conventions or vague verbs.
Five tools is well within the ideal 3-15 range and each corresponds to a real operation: read, learn format, write, query elements, export spec. Nothing feels redundant or missing at the count level.
The core read/write/query loop is covered, but there is no tool to create, list, delete, or switch canvases, and editing is coarse (whole-SVG overwrite with no element-level add/remove). These gaps force workarounds for common canvas lifecycle operations.
Related MCP Connectors
Design and edit Bloom canvases from AI coding agents with browser OAuth.
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Lets AI assistants draw: logos, posters, illustrations and scenes, as editable SVG and PNG.
Agent-Native design tool - create and edit visual designs with agent assistance
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides a collaborative SVG canvas that allows Claude to create, read, and manipulate graphics in real-time through a browser-based Fabric.js editor. It enables seamless bidirectional interaction between the AI and user for visual tasks like UI prototyping, diagramming, and template management.-
- AlicenseAqualityBmaintenanceEnables AI agents to inspect, edit, validate, render, and export SVG/Inkscape documents safely with reversible operations and risk-classed tools.8711MIT

Rayzia MCPofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to drive a live SVG/vector editor, allowing a full observe-and-act loop on a canvas with real tools, state reading, and PNG rendering.2MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate professional SVG artwork, icons, and vector logos from text prompts, and to vectorize raster images into clean, editable SVG files.MIT