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 validationwrite_file
: Write content to files with automatic directory creationlist_files
: List directory contents with optional extension filtering
Code Intelligence
analyze_code
: Deep analysis of code structure for any programming languagesearch_code
: Search for patterns or regex across entire projectsanalyze_project
: Complete project structure and dependency analysismodify_code
: Precision editing: replace lines, blocks, or specific valuesfind_and_replace
: Find and replace with regex support
Workspace Management
switch_workspace
: Change working directory mid-conversationlist_workspaces
: Discover available projects automaticallyget_current_workspace
: Check current working directoryget_code_context
: Get project context and conversation history
Advanced Features
smart_code_edit
: AI-assisted code editing with diff previewupdate_xml_attribute
: Specialized Android XML attribute modificationgenerate_code
: Generate code from natural language requirements
System Operations
run_command
: Execute shell commands safely with working directory control
File Operations
Tool | Description |
---|---|
read_file | Read contents of any file with full path support |
write_file | Write content to files with automatic directory creation |
list_files | List directory contents with optional extension filtering |
Code Intelligence
Tool | Description |
---|---|
search_code | Search for patterns across files with regex support |
analyze_project | Comprehensive project structure and dependency analysis |
modify_code | Precision editing: replace lines, blocks, or specific values |
find_and_replace | Find and replace with regex support |
Advanced Features
Tool | Description |
---|---|
smart_code_edit | AI-assisted code editing with diff preview |
update_xml_attribute | Specialized Android XML attribute modification |
run_command | Execute shell commands with working directory control |
generate_code | Generate 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: