Rope MCP
A Model Context Protocol server that exposes Python Rope refactoring capabilities to Claude Code, enabling safe symbol renaming, method extraction, code analysis, and more.
README
Rope MCP
A Model Context Protocol (MCP) server with companion CLI that exposes Python Rope refactoring library capabilities to Claude Code and command-line users.
Features
- Dual Interface: Both MCP server for Claude Code integration and CLI for direct use
- Safe Refactoring: Symbol renaming and method extraction with built-in safety checks
- Code Analysis: Symbol definition finding, reference tracking, and object information
- Backup System: Automatic file backups with easy restore capabilities
- Shared Core: Identical functionality across MCP and CLI interfaces
Quick Start
Installation
# Install from PyPI (when released)
pip install rope-mcp
# Or install from source
git clone https://github.com/brukhabtu/rope-mcp.git
cd rope-mcp
pip install -e .
CLI Usage
# Initialize project
rope-mcp init-project
# Analyze a symbol
rope-mcp analyze-symbol --file src/utils.py --line 23 --column 4
# Rename a symbol (with preview)
rope-mcp rename-symbol --file src/utils.py --line 23 --column 4 --new-name "better_name" --dry-run
rope-mcp rename-symbol --file src/utils.py --line 23 --column 4 --new-name "better_name"
# Extract method
rope-mcp extract-method --file src/utils.py --start-line 45 --end-line 67 --method-name "validate_input"
Claude Code Integration
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"rope": {
"command": "rope-mcp-server",
"args": [],
"env": {}
}
}
}
Documentation
Development Status
🚧 In Development - See PROJECT_PLAN.md for roadmap and current status.
Contributing
See the Implementation Roadmap for development phases and contributing guidelines.
License
MIT License - see LICENSE for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.