Cursor Setup
Set up the ASCII Motion MCP server with Cursor for AI-powered ASCII art creation.
Prerequisites
- Cursor installed
- Node.js 18+ installed
Installation
Step 1: Install the MCP Server
npm install -g ascii-motion-mcpVerify installation:
ascii-motion-mcp --helpStep 2: Configure Cursor
- Open Cursor Settings (
Cmd+,on macOS orCtrl+,on Windows/Linux) - Search for "MCP" in the settings search bar
- Click "Edit in settings.json"
Add the ASCII Motion MCP server with live mode enabled:
{
"mcp.servers": {
"ascii-motion": {
"command": "ascii-motion-mcp",
"args": ["--live", "--project-dir", "/path/to/your/projects"]
}
}
}The --live flag enables real-time sync with the ASCII Motion browser editor. Without it, the MCP tools have no visual output.
Replace /path/to/your/projects with your actual project directory:
- macOS:
/Users/yourname/ascii-projects - Windows:
C:\\Users\\yourname\\ascii-projects - Linux:
/home/yourname/ascii-projects
Step 3: Restart Cursor
Close and reopen Cursor for the configuration to take effect.
Step 4: Verify Installation
Open Cursor's AI chat (Cmd+L or Ctrl+L) and ask:
"What ASCII Motion tools are available?"
You should see a list of available tools.
Using ASCII Motion with Cursor
In AI Chat
Open the AI chat panel and use natural language:
"Create a 30x20 canvas with a pixel art space invader"
Cursor will use the MCP tools to create the art.
With Composer
Use Cursor's Composer for multi-step workflows:
"Create an 8-frame animation of a walking character. Export each frame as separate PNG files, then create a combined GIF."
Inline Edits
When editing files, use Cmd+K (Ctrl+K) for inline AI:
// Create ASCII art logo
// @cursor Generate ASCII art that says "ACME" and store in this constant
const LOGO = ``;Connect the Browser
The MCP server works with the ASCII Motion browser editor for real-time visual feedback.
Step 1: Get the Auth Token
After restarting Cursor, ask the AI:
"What is the MCP auth token?"
The AI will return a token like abc123def456.
Step 2: Open ASCII Motion
- Go to ascii-motion.app
- Click the hamburger menu (☰) in the top-left corner
- Select MCP Connection
- Paste the auth token into the input field
- Click Connect
You should see a green "Connected" status. Now every edit the AI makes appears instantly in the browser!
Example Prompts
Create Art
"Create a 40x25 canvas and draw an ASCII art castle with a flag on top"
Import Images
"Import the image at ./logo.png and convert it to ASCII using the standard character palette"
Animate
"Create a 6-frame animation of a spinning loading indicator using block characters"
Apply Effects
"Add a digital rain effect with varying shades of green"
Export
"Export the current project as a self-contained HTML file"
Multi-step Workflow
"Create a project with:
- A 50x20 canvas
- ASCII art text saying 'GAME OVER' in red
- A fade animation over 10 frames
- Export as GIF and React component"
Troubleshooting
MCP tools not appearing
- Check that
settings.jsonis valid JSON (no trailing commas) - Verify Node.js is installed:
node --version - Try using the full path to npx:
{
"mcp.servers": {
"ascii-motion": {
"command": "/usr/local/bin/npx",
"args": ["ascii-motion-mcp", "--project-dir", "/path/to/projects"]
}
}
}"ENOENT" or path errors
Create the project directory first:
mkdir -p /path/to/your/projectsTools timeout or hang
The first run may take longer as npx downloads the package. Try installing globally first:
npm install -g ascii-motion-mcpThen use the direct command:
{
"mcp.servers": {
"ascii-motion": {
"command": "ascii-motion-mcp",
"args": ["--project-dir", "/path/to/projects"]
}
}
}Connection issues with live mode
- Check that port 9876 is available
- Try a different port:
"--port", "9877" - Ensure localhost connections are allowed through your firewall
Next Steps
- Example Prompts - More prompt ideas
- Tool Reference - Complete tool documentation
- Live Sync Guide - Advanced live mode options