Kotlin

v1.0.0Coding Agentsstable

🧠 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-servermcpai-integration
Share:
31
Stars
0
Downloads
0
Weekly
0/5

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

Develop Android apps with AI-assisted coding via Aider integration.
Execute Gradle builds and tests with Kotlin LSP support.
Enable portable Kotlin development through Docker-based MCP infrastructure.
normaltusker

Maintainer

LicenseAGPL 3.0
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx kotlin-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

Clone the repository

Clone the Kotlin MCP Server repository from GitHub.

git clone https://github.com/normaltusker/kotlin-mcp-server.git
cd kotlin-mcp-server
2

Run 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.py
3

Set 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'
4

Install Python dependencies

Install all required Python packages listed in requirements.txt.

pip install -r requirements.txt
5

Configure 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.json

Kotlin 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.

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.

Quick Config Preview

{ "mcpServers": { "kotlin-mcp-server": { "command": "npx", "args": ["-y", "kotlin-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides