Get the FREE Ultimate OpenClaw Setup Guide →

slack-cursor-ide-assistant

A Slack bot that summarize requirements in a Slack thread and forwards messages to Cursor editor's chat (Agent mode) interface on macOS. This bot runs locally (for fast codebase indexing). Output is a Merge Request with analytics.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio quang1225-slack-cursor-ide-assistant node src/server.js

How to use

This MCP server hosts a Slack bot that forwards Slack messages to Cursor editor's Agent mode, enabling AI-assisted development workflows. It captures complete thread context, triggers Cursor to generate code, and can automate GitLab Merge Request creation and preview URL generation. The bot communicates within Slack real-time via Socket Mode and opens specific Cursor project folders as configured. Use this server to integrate your Slack conversations with Cursor's AI capabilities, producing MR links and demo previews directly in Slack threads.

How to install

Prerequisites:

  • macOS (required for AppleScript integration)
  • Node.js v18+ installed on your machine
  • Cursor editor installed locally
  • Slack workspace admin access to configure the Slack app

Setup steps:

  1. Install dependencies
npm install
  1. Prepare environment variables Create a .env file in the project root with required keys, for example:
# Slack Configuration
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_APP_TOKEN=xapp-your-app-token

# Optional: Debug and Project Settings
DEBUG_MODE=false
PROJECT_LOCAL_PATH=/path/to/your/project

# GitLab Integration (Optional - for MR creation)
GITLAB_PROJECT_URL=https://gitlab.com/your-org/your-project
GITLAB_PROJECT_ID=12345
GITLAB_MR_TARGET_BRANCH=main
GITLAB_MR_DEFAULT_LABEL=bot-generated
SAMPLE_DEMO_URL=https://your-demo-site.com
  1. Start the bot in development or production mode
# Development mode with auto-restart (if configured)
npm run dev

# Production mode
npm start
  1. Verify Cursor integration and Slack permissions as described in the README. Follow the quick test steps to ensure the Cursor integration works before using the full bot.

Additional notes

Tips:

  • Ensure Cursor is accessible for AppleScript automation (grant Terminal/Node accessibility in macOS Security & Privacy settings).
  • If the bot does not receive messages, re-check Slack app tokens and bot scopes (app_mentions:read, channels:history, channels:read, chat:write, reactions:write).
  • For MR creation and preview URLs, ensure GITLAB_* values are correctly populated; these are optional but enable full automation.
  • Use Socket Mode (enabled in the Slack app) to receive real-time events without webhooks.
  • Maintain careful thread context to maximize AI comprehension; the bot aggregates messages within threads for better results.

Related MCP Servers

Sponsor this space

Reach thousands of developers