Cover image
很棒的cursor-MPC-Server
Private

很棒的cursor-MPC-Server

Try Now
2025-02-06

具有自定义工具的MCP服务器的示例,可以直接从光标调用

3 years

Works with Finder

12

Github Watches

82

Github Forks

280

Github Stars

🤖 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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • 1Panel-dev
  • 💬MAXKB是一种现成的AI聊天机器人,它集成了检索功能增强的生成(RAG)管道,支持强大的工作流程并提供高级的MCP工具使用功能。

    Reviews

    3 (1)
    Avatar
    user_XM4Aa0fo
    2025-04-17

    I've been using awesome-cursor-mpc-server by kleneway, and it's simply amazing! The integration process was smooth, and the cursor functionality is incredibly responsive. Whether you're working on a single application or multiple projects, this server enhances the overall user experience. Highly recommend checking it out! You can find it on GitHub: https://github.com/kleneway/awesome-cursor-mpc-server