Android Studio AI Chat Integration
muxi1998/android-studio-mcp-server · 21 stars
MCP server
Install
The repo has no one-line install. Follow its README.
Files
Android Studio AI Chat Integration
This repository provides instructions for setting up AI chat capabilities with Android Studio, allowing developers to interact with their code and projects using natural language.
Overview
By connecting Android Studio to an AI chat interface through the MCP Server plugin, developers can:
- Ask questions about their Android code
- Request code modifications and refactoring
- Get explanations of Android-specific concepts
- Generate new code components
- Debug issues in Android applications
Prerequisites
- Android Studio installed on your computer
- Cursor IDE installed (for client communication)
Installation
Step 1: Install the MCP Server Plugin for JetBrains
- Open Android Studio
- Go to Settings/Preferences → Plugins → Marketplace
- Search for "MCP Server"
- Click Install on the plugin titled "MCP Server" (plugin ID: 26071)
- Restart Android Studio when prompted
Step 2: Configure the Client in Cursor
-
Open Cursor and access settings:
- For Mac: Press
Cmd+,or go to Cursor → Preferences - For Windows/Linux: Press
Ctrl+,or go to File → Preferences
- For Mac: Press
-
Navigate to the AI settings section and enable "JetBrains Integration"
-
Configure your settings:
{ "mcpServers": { "jetbrains": { "command": "npx", "args": ["-y", "@jetbrains/mcp-proxy"] } } } -
If you're running multiple IDEs and want to connect to a specific one, add:
"env": { "IDE_PORT": "<port of Android Studio's built-in webserver>" } -
Save your settings and restart Cursor
Usage
- Open Android Studio and load your project
- Open Cursor and connect to the same project
- In Cursor, use the built-in chat to interact with your Android Studio project
Troubleshooting
- Connection Issues: Ensure Android Studio is running before attempting to connect from Cursor
- Plugin Not Found: Verify you're using a compatible version of Android Studio
- Multiple IDEs: If you have multiple JetBrains IDEs running, specify the IDE_PORT in your configuration
- Permission Issues: Some operations may require explicit permissions in Android Studio
Advanced Configuration
To enable logging for debugging purposes:
"env": {
"LOG_ENABLED": "true"
}
To connect to IDE on a different address/host:
"env": {
"HOST": "<host/address of IDE's built-in webserver>"
}
Resources
- MCP Server Plugin: https://plugins.jetbrains.com/plugin/26071-mcp-server
- MCP JetBrains Repository: https://github.com/JetBrains/mcp-jetbrains
License
This project is licensed under the terms specified in the repository.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 21
- Last push
- 2025-03-22
- Forks
- 3
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k