awesome-cursor-mpc-server

MCP.Pizza Chef: kleneway

awesome-cursor-mpc-server is an MCP server designed as an AI-powered development assistant for Cursor. It offers custom AI tools like Code Architect for generating coding plans, Screenshot Buddy for UI design captures, and Code Review triggered by git diffs. Primarily a tutorial demo, it showcases how to integrate advanced LLM reasoning and tooling in development workflows, enabling intelligent coding support and interaction directly from the Cursor environment.

Use This MCP server To

Generate coding plans and instructions with advanced LLM reasoning Capture UI design screenshots for use in development workflows Trigger automated code reviews based on git diffs Integrate custom AI tools directly into the Cursor coding environment Experiment with AI-powered coding assistance in a tutorial/demo setting

README

πŸ€– AI Development Assistant MCP Server

Welcome to your AI-powered development toolkit, designed as a Model Context Protocol (MCP) server for Cursor! This project provides intelligent coding assistance through custom AI tools. Note that this is mostly a tutorial demo, and not a production-ready tool.

✨ Features

🎨 Code Architect

Call advanced reasoning LLMs to generate plans and instructions for coding agents.

πŸ“Έ Screenshot Buddy

Take UI design screenshots and use them with the composer agent.

πŸ” Code Review

Use git diffs to trigger code reviews.

πŸš€ Getting Started

1. Environment Setup

First, you'll need to set up your environment variables. Create a file at src/env/keys.ts:

export const OPENAI_API_KEY = "your_key_here";
// Add any other keys you need

⚠️ Security Note: Storing API keys directly in source code is not recommended for production environments. This is only for local development and learning purposes. You can set the env var inline in the Cursor MCP interface as well.

2. Installation

npm install
# or
yarn install

3. Build the Server

npm run build

4. Adding to Cursor

This project is designed to be used as an MCP server in Cursor. Here's how to set it up:

  1. Open Cursor
  2. Go to Cursor Settings > Features > MCP
  3. Click + Add New MCP Server
  4. Fill out the form:
    • Name: AI Development Assistant
    • Type: stdio
    • Command: node /path/to/your/project/dist/index.js

πŸ“˜ Pro Tip: You might need to use the full path to your project's built index.js file.

After adding the server, you should see your tools listed under "Available Tools". If not, try clicking the refresh button in the top right corner of the MCP server section.

For more details about MCP setup, check out the Cursor MCP Documentation.

πŸ› οΈ Using the Tools

Once configured, you can use these tools directly in Cursor's Composer. The AI will automatically suggest using relevant tools, or you can explicitly request them by name or description.

For example, try typing in Composer:

  • "Review this code for best practices"
  • "Help me architect a new feature"
  • "Analyze this UI screenshot"

The agent will ask for your approval before making any tool calls.

πŸ“˜ Pro Tip: You can update your .cursorrules file with instructions on how to use the tools for certain scenarios, and the agent will use the tools automatically.

πŸ“ Project Structure

src/
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ architect.ts    # Code structure generator
β”‚   β”œβ”€β”€ screenshot.ts   # Screenshot analysis tool
β”‚   └── codeReview.ts   # Code review tool
β”œβ”€β”€ env/
β”‚   └── keys.ts         # Environment configuration (add your API keys here!)
└── index.ts           # Main entry point

🀝 Contributing

Contributions welcome! Please feel free to submit a Pull Request.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ› Issues & Support

Found a bug or need help? Open an issue with:

  1. What you were trying to do
  2. What happened instead
  3. Steps to reproduce
  4. Your environment details

I'll be honest though, this is a tutorial demo, and not a production-ready tool so I likely won't be fixing issues. But feel free to fork it and make it your own!

Made with ❀️ by developers, for developers

awesome-cursor-mpc-server FAQ

How do I set up environment variables for this MCP server?
Create a file at src/env/keys.ts and add your API keys there, such as OPENAI_API_KEY. Avoid storing keys in source code for production.
Is this MCP server production-ready?
No, it is primarily a tutorial demo designed for learning and experimentation, not for production use.
What custom tools does this MCP server provide?
It includes Code Architect for coding plans, Screenshot Buddy for UI screenshots, and Code Review triggered by git diffs.
Can I use this MCP server with different LLM providers?
Yes, it supports OpenAI, Claude, Gemini, and other LLM providers through the MCP protocol.
How does the Code Review tool work?
It uses git diffs to automatically trigger code reviews, helping identify changes and issues.
What is the Screenshot Buddy tool used for?
It captures UI design screenshots that can be used with the composer agent for design-related tasks.
How do I integrate this MCP server with Cursor?
This server is designed specifically to be called directly from Cursor, enabling seamless AI tool integration in the coding environment.