A quick guide to set up automatic meme generation for your error messages in Cursor IDE using Model Context Protocol (MCP).
Vibe coding is fun but what about vibe-debugging? Not so much, right? How about we make it more fun? While waiting for robots to fix our errors, let's not waste any time learning how to code better, but rather just laugh a little.
- Cursor IDE installed
- Node.js installed
- ImgFlip account (free at imgflip.com)
- OpenAI API key
- Clone the meme generator repository:
git clone https://github.com/sundai-club/error-meme
cd error-meme
npm install
npm run build-
Create your MCP configuration file in one of these locations:
- Project-specific:
.cursor/mcp.jsonin your project directory - Global:
~/.cursor/mcp.jsonin your home directory
- Project-specific:
-
Add the following configuration (replace with your credentials):
{
"mcpServers": {
"meme": {
"command": "node",
"args": [
"/path/to/your/error-meme/build/index.js"
],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"IMGFLIP_USERNAME": "your-imgflip-username",
"IMGFLIP_PASSWORD": "your-imgflip-password"
}
}
}
}- Restart Cursor IDE to apply the changes
- Open Cursor IDE
- Make sure to enable Agent mode in the chat
- Paste your error message into the chat
- The agent will automatically generate a meme for your error!
