Kotlin
🧠 Kotlin MCP Server for Android app development using OpenAI, Gemini, or OpenRouter. Enables AI-assisted coding via Aider, Gradle build/test integration, Kotlin LSP, and Docker-based portability.
What is Kotlin?
Kotlin is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🧠 kotlin mcp server for android app development using openai, gemini, or openrouter. enables ai-assisted coding via aider, gradle build/test integration, kotlin lsp, and docker-based portability.
🧠 Kotlin MCP Server for Android app development using OpenAI, Gemini, or OpenRouter. Enables AI-assisted coding via Aider, Gradle build/test integration, Kotlin LSP, and Docker-based portability.
This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🧠 Kotlin MCP Server for Android app development using OpenAI
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx kotlin-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kotlin
The Kotlin MCP Server is a Python-based MCP server that exposes 32 AI-enhanced tools for Android and Kotlin development, covering the full development lifecycle from Gradle builds and Jetpack Compose UI generation to MVVM architecture scaffolding, GDPR/HIPAA compliance tooling, and AI-powered code generation via OpenAI, Anthropic, or local Ollama models. It bridges AI assistants directly into Android project workflows, allowing developers to trigger builds, run tests, create files, set up dependency injection, and generate production-ready code—all through conversational prompts in Claude Desktop or VS Code.
Prerequisites
- Python 3.8+ and pip installed
- An Android project workspace directory accessible on disk
- An OpenAI API key (OPENAI_API_KEY) or Anthropic API key (ANTHROPIC_API_KEY) for AI code generation tools
- Java/JDK installed and Gradle available if using build and test tools
- An MCP-compatible client such as Claude Desktop, VS Code with MCP extension, or Cursor
Clone the repository
Clone the Kotlin MCP Server repository from GitHub.
git clone https://github.com/normaltusker/kotlin-mcp-server.git
cd kotlin-mcp-serverRun the interactive installer
Use the Python installer script to set up the server. It will configure paths, generate MCP config files for Claude Desktop and VS Code, and handle environment setup.
python3 install.pySet required environment variables
Configure the mandatory PROJECT_PATH and your chosen AI provider key. MCP_ENCRYPTION_PASSWORD is recommended for any tools that handle sensitive data.
export PROJECT_PATH=/path/to/your/android/project
export OPENAI_API_KEY=sk-your-openai-key
# Or for Anthropic:
export ANTHROPIC_API_KEY=sk-ant-your-key
export MCP_LLM_PROVIDER=openai # or 'anthropic' or 'local'Install Python dependencies
Install all required Python packages listed in requirements.txt.
pip install -r requirements.txtConfigure Claude Desktop
The installer generates mcp_config_claude.json. Copy its contents into your Claude Desktop config file at the appropriate path for your OS.
# macOS:
cp mcp_config_claude.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows:
copy mcp_config_claude.json %APPDATA%\Claude\claude_desktop_config.jsonKotlin Examples
Client configuration
Claude Desktop configuration for the Kotlin MCP server with project path and OpenAI key as environment variables.
{
"mcpServers": {
"kotlin-mcp": {
"command": "python3",
"args": ["/absolute/path/to/kotlin-mcp-server/server.py"],
"env": {
"PROJECT_PATH": "/path/to/your/android/project",
"OPENAI_API_KEY": "sk-your-openai-key",
"MCP_LLM_PROVIDER": "openai"
}
}
}
}Prompts to try
Example prompts that use the 32 tools exposed by the Kotlin MCP server.
- "Set up MVVM architecture for a UserProfile feature with repository, use cases, and ViewModel."
- "Run a clean Gradle assembleDebug build and show me any errors."
- "Generate a Jetpack Compose login screen with biometric authentication and GDPR consent."
- "Create unit tests for the PaymentViewModel class covering edge cases and error states."
- "Analyze the current project structure and identify any architectural violations or anti-patterns."Troubleshooting Kotlin
gradle_build tool fails with 'Gradle not found' or build errors
Ensure Java/JDK is installed and JAVA_HOME is set. The PROJECT_PATH must point to an Android project root directory that contains a gradlew script. Use the absolute path and verify with 'ls $PROJECT_PATH/gradlew'.
AI code generation tools return errors or empty results
Check that OPENAI_API_KEY or ANTHROPIC_API_KEY is set and valid, and that MCP_LLM_PROVIDER matches the key you provided ('openai', 'anthropic', or 'local' for Ollama). For local mode, ensure Ollama is running.
Server fails to start with import errors or missing modules
Run 'pip install -r requirements.txt' again inside the repository directory. If using a virtual environment, make sure it is activated. The python3 command in your config must resolve to the same Python environment where dependencies are installed.
Frequently Asked Questions about Kotlin
What is Kotlin?
Kotlin is a Model Context Protocol (MCP) server that 🧠 kotlin mcp server for android app development using openai, gemini, or openrouter. enables ai-assisted coding via aider, gradle build/test integration, kotlin lsp, and docker-based portability. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kotlin?
Follow the installation instructions on the Kotlin GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Kotlin?
Kotlin works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kotlin free to use?
Yes, Kotlin is open source and available under the AGPL 3.0 license. You can use it freely in both personal and commercial projects.
Kotlin Alternatives — Similar Coding Agents Servers
Looking for alternatives to Kotlin? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
Browse More Coding Agents MCP Servers
Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Kotlin in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Kotlin?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.