Cursor-like-MCP-Server

fadouaki/Cursor-like-MCP-Server

3.2

If you are the rightful owner of Cursor-like-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A powerful Model Context Protocol (MCP) server that brings Cursor IDE's intelligent code assistance capabilities to any development environment.

Tools
11
Resources
0
Prompts
0

Cursor-like MCP Server

A powerful Model Context Protocol (MCP) server that brings Cursor IDE's intelligent code assistance capabilities to any development environment. Built with TypeScript and optimized for Android development workflows.

🌟 Features

šŸ”§ Smart Code Operations

  • Intelligent File Management: Read, write, and analyze files with context awareness
  • Advanced Code Search: Pattern and regex-based search across entire projects
  • Precision Code Editing: Modify specific lines, blocks, or patterns without rewriting entire files
  • XML Attribute Updates: Specialized tools for Android layout modifications

šŸ—ļø Project Intelligence

  • Structure Analysis: Comprehensive project scanning for dependencies and build files
  • Multi-Language Support: Java, Kotlin, XML, and extensible to other languages
  • Build System Integration: Gradle, Maven, and Android build tools support
  • Command Execution: Run builds, tests, and other development commands

šŸ¤– AI-Powered Assistance

  • Code Generation: Generate boilerplate code based on natural language requirements
  • Smart Suggestions: Analyze code and suggest improvements or modifications
  • Diff Preview: Show exactly what changes will be made before applying them
  • Context-Aware Edits: Understand code structure for intelligent modifications

šŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • TypeScript 5.0+
  • An MCP-compatible client (Claude Desktop, Cursor IDE, etc.)

Installation

# Clone the repository
git clone https://github.com/yourusername/cursor-like-mcp-server.git
cd cursor-like-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

Configuration

For Claude Desktop

Add to your Claude Desktop configuration file:

{
  "mcpServers": {
    "cursor-like-server": {
      "command": "/path/tonode",
      "args": ["/path/to/cursor-like-mcp-server/dist/index.js"],
      "cwd": "/path/to/cursor-like-mcp-server"
    }
  }
}
For Other MCP Clients

Use stdio transport with the compiled JavaScript entry point:

node dist/index.js

šŸ“‹ Available Tools

File Operations

  • read_file: Read any text file with path validation
  • write_file: Write content to files with automatic directory creation
  • list_files: List directory contents with optional extension filtering

Code Intelligence

  • analyze_code: Deep analysis of code structure for any programming language
  • search_code: Search for patterns or regex across entire projects
  • analyze_project: Complete project structure and dependency analysis
  • modify_code: Precision editing: replace lines, blocks, or specific values
  • find_and_replace: Find and replace with regex support

Workspace Management

  • switch_workspace: Change working directory mid-conversation
  • list_workspaces: Discover available projects automatically
  • get_current_workspace: Check current working directory
  • get_code_context: Get project context and conversation history

Advanced Features

  • smart_code_edit: AI-assisted code editing with diff preview
  • update_xml_attribute: Specialized Android XML attribute modification
  • generate_code: Generate code from natural language requirements

System Operations

  • run_command: Execute shell commands safely with working directory control

File Operations

ToolDescription
read_fileRead contents of any file with full path support
write_fileWrite content to files with automatic directory creation
list_filesList directory contents with optional extension filtering

Code Intelligence

ToolDescription
search_codeSearch for patterns across files with regex support
analyze_projectComprehensive project structure and dependency analysis
modify_codePrecision editing: replace lines, blocks, or specific values
find_and_replaceFind and replace with regex support

Advanced Features

ToolDescription
smart_code_editAI-assisted code editing with diff preview
update_xml_attributeSpecialized Android XML attribute modification
run_commandExecute shell commands with working directory control
generate_codeGenerate code from natural language requirements

šŸ—ļø Project Structure

cursor-like-mcp-server/
ā”œā”€ā”€ src/
│   └── index.ts          # Main server implementation
ā”œā”€ā”€ dist/                 # Compiled JavaScript output
ā”œā”€ā”€ package.json          # Dependencies and scripts
ā”œā”€ā”€ tsconfig.json         # TypeScript configuration
└── README.md            # This documentation

šŸ¤ Contributing

We welcome contributions! Here's how you can help: