Jetbrains Index MCP Plugin

Developer tools

A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codebase.

Your AI app calls Jetbrains Index MCP Plugin, which does the developer tools work and sends the result back to the chat.

About Jetbrains Index MCP Plugin

Jetbrains Index MCP Plugin is a community MCP server from hechtcarmel, filed in our directory under developer tools. A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codebase.

At a glance

Publisher
hechtcarmel (community)
Runs
See the README for setup
Written in
Kotlin
License
MIT
GitHub stars
406

How to set up Jetbrains Index MCP Plugin

  1. Follow the install steps in the Jetbrains Index MCP Plugin README; it is written in Kotlin, so have that toolchain ready.
  2. Check the Jetbrains Index MCP Plugin README for keys or settings; the registry lists none that Jetbrains Index MCP Plugin requires.
  3. Add Jetbrains Index MCP Plugin to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Jetbrains Index MCP Plugin tools to confirm the connection.
  5. Run one read-only task with Jetbrains Index MCP Plugin first, and keep your app asking before each tool call until the results look right.

Jetbrains Index MCP Plugin compared with similar servers

  • MaaMCP by MaaXYZ has fewer GitHub stars than Jetbrains Index MCP Plugin (406 against 406); both are community servers, and both run locally.
  • Kindly Web Search by Shelpuk-AI-Technology-Consulting has more GitHub stars than Jetbrains Index MCP Plugin (407 against 406); both are community servers, and both run locally.
  • Robloxstudio by Chrrxs has fewer GitHub stars than Jetbrains Index MCP Plugin (406 against 406); both are community servers, and both run locally.

Before you connect Jetbrains Index MCP Plugin

  • Give Jetbrains Index MCP Plugin its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Jetbrains Index MCP Plugin tool call until you trust what it does with them.
  • Treat text that Jetbrains Index MCP Plugin fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Jetbrains Index MCP Plugin on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Jetbrains Index MCP Plugin

How marketing and sales teams put Jetbrains Index MCP Plugin to work, by company size. Pick the size closest to yours and start Jetbrains Index MCP Plugin on one use case.

Small business

  • A small business with a developer can use Jetbrains Index MCP Plugin to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Jetbrains Index MCP Plugin to explain and fix a marketing site issue without context switching between tools.
  • Jetbrains Index MCP Plugin runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Jetbrains Index MCP Plugin to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Jetbrains Index MCP Plugin to keep scripts and automations documented and versioned as they change.
  • Start Jetbrains Index MCP Plugin on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Jetbrains Index MCP Plugin with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Jetbrains Index MCP Plugin so web and marketing engineering share one reviewed way of working with AI.
  • Jetbrains Index MCP Plugin is a community server, so have security review the code and pin a version before Jetbrains Index MCP Plugin touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Jetbrains Index MCP Plugin README

From hechtcarmel/jetbrains-index-mcp-plugin on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

IDE Index MCP Server

A JetBrains IDE plugin that exposes an MCP (Model Context Protocol) server, enabling AI coding assistants like Claude, Codex, Cursor, and Windsurf to leverage the IDE's powerful indexing and refactoring capabilities.

Fully tested: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, Android Studio, PhpStorm May work (untested): RubyMine, CLion, DataGrip Not supported: Rider (its ReSharper backend does not expose the IntelliJ PSI APIs this plugin relies on; see #167)

IDE Index MCP Server provides AI coding assistants with access to the IDE's powerful code intelligence features through the Model Context Protocol (MCP).

Features

Multi-Language Support Advanced tools work across multiple languages based on available plugins:

  • Java & Kotlin - IntelliJ IDEA, Android Studio
  • Python - PyCharm (all editions), IntelliJ with Python plugin, including symbol-based definition/reference lookup
  • JavaScript & TypeScript - WebStorm, IntelliJ Ultimate, PhpStorm
  • Go - GoLand, IntelliJ IDEA Ultimate with Go plugin
  • PHP - PhpStorm, IntelliJ Ultimate with PHP plugin
  • Rust - RustRover, IntelliJ IDEA Ultimate with Rust plugin, CLion
  • Scala - IntelliJ IDEA with the Scala plugin (Scala 2 sources)
  • Markdown - heading outlines in file structure for IDEs with the bundled Markdown plugin

Universal Tools (All Supported JetBrains IDEs)

  • Find References - Locate all usages of any symbol across the project
  • Go to Definition - Navigate to symbol declarations
  • Code Diagnostics - Access errors, warnings, and quick fixes
  • Index Status - Check if code intelligence is ready
  • Sync Files - Force sync VFS/PSI cache after external file changes
  • Reload Project - Refresh linked Maven/Gradle build models after dependency or build-file changes (disabled by default)
  • Import Modules - Import external Maven project directories as modules for cross-project code intelligence and refactoring (disabled by default)
  • Open Workspace - Scan a root directory for Maven projects, or provide an explicit list of directories (Maven and non-Maven), and open them all in one IntelliJ window with full cross-project code intelligence (disabled by default)
  • Build Project - Trigger IDE build with structured error/warning output (disabled by default)
  • Find Class - Fast class/interface search by name with camelCase matching
  • Find File - Fast file search by name using IDE's file index
  • Symbol Search - Find code symbols by name with IntelliJ Go to Symbol matching (disabled by default)
  • Search Text - Text search using IntelliJ Find in Files (substring and regex matching)
  • Read File - Read file content by path or qualified name, including library sources (disabled by default)
  • Open File - Open a file in the editor with optional navigation (disabled by default)
  • Get Active File - Get currently active editor file(s) with cursor position (disabled by default)

Extended Tools (Language-Aware) These tools activate based on installed language plugins:

  • Type Hierarchy - Explore class inheritance chains
  • Call Hierarchy - Trace method/function call relationships
  • Find Implementations - Discover interface/abstract implementations
  • Find Super Methods - Navigate method override hierarchies
  • File Structure - View hierarchical file structure like IDE's Structure view, including PHP Structure View trees and Markdown heading outlines; shows start and end line for each element (disabled by default)

Refactoring Tools

  • Rename Refactoring - Safe renaming with automatic related element renaming (getters/setters, overriding methods) - works across ALL languages, fully headless
  • Move File - Move files with IDE-aware reference and package updates when supported
  • Reformat Code - Reformat using project code style with import optimization (disabled by default)
  • Optimize Imports - Remove unused imports and organize imports without reformatting (disabled by default)
  • Edit Member - Replace an entire member declaration (signature + body) with new content (Java/Kotlin, disabled by default)
  • Insert Member - Insert a new member at a structural position (Java/Kotlin, disabled by default)
  • Replace Member - Replace method body or field initializer only, preserving the signature (Java/Kotlin, disabled by default)
  • Safe Delete - Remove code with usage checking (Java/Kotlin only)
  • Java to Kotlin Conversion - Convert Java to Kotlin using Intellij's built-in converter (Java only)

Project Lifecycle Management

When working across many projects simultaneously, idle ones consume memory unnecessarily and leave editors open for no reason. Lifecycle management sleeps and wakes projects based on window focus and MCP activity. It is opt-in, disabled by default; turn on "Enable lifecycle management" in Settings → Tools → Index MCP Server, after which no further configuration is required.

  • Automatic sleep/wake - Projects move from active → background (Power Save on) → dormant (editor tabs closed, PSI cache freed) → closed (fully unloaded), and auto-reopen transparently on the next MCP call. Every MCP tool call restarts a project's idle countdown, and the tabs a dormant transition closed reopen when you return to the project window
  • ide_project_status - Combined snapshot of every open and managed project
  • ide_set_project_mode / ide_get_project_modes - Explicit mode control
  • ide_release_project - Unenroll a project from lifecycle management
  • ide_lifecycle_log - Timestamped event log with trigger reasons, for diagnosing unexpected behaviour. The ring buffer is always active; file output enables via Help → Diagnostic Tools → Debug Log Settings
Why Use This Plugin?

Unlike simple text-based code analysis, this plugin gives AI assistants access to:

  • True semantic understanding through the IDE's AST and index
  • Cross-project reference resolution that works across files and modules
  • Multi-language support - automatically detects and uses language-specific handlers
  • Headless and remote development support - starts in regular IDE windows, JetBrains remote development sessions, and headless automation runs
  • Safe refactoring operations with automatic reference updates and undo support

Perfect for AI-assisted development workflows where accuracy and safety matter.

Security

The server binds to 127.0.0.1 with no authentication, any local process can call its tools with your IDE's file access. On a single-user dev machine that's the same trust boundary your shell already has; on a shared machine, it's worth weighing before you enable the write tools.

Table of Contents

  • Installation
  • Quick Start
  • Community Integrations
  • Client Configuration
  • Exposed Tools
  • Multi-Project Support
  • Lifecycle Management
  • Tool Window
  • Error Codes
  • Settings
  • Requirements
  • Architecture
  • Contributing
  • License

Installation

Using the IDE built-in plugin system

Settings/Preferences > Plugins > Marketplace > Search for "IDE Index MCP Server" > Install

Using JetBrains Marketplace

Go to JetBrains Marketplace and install it by clicking the Install to ... button.

Manual Installation

Download the latest release and install it manually: Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Quick Start

  1. Install the plugin and restart your JetBrains IDE
  2. Open a project - the MCP server starts automatically with IDE-specific defaults:
    • IntelliJ IDEA: intellij-index on port 29170
    • PyCharm: pycharm-index on port 29172
    • WebStorm: webstorm-index on port 29173
    • Other IDEs: See IDE-Specific Defaults
  3. Configure your AI assistant using the "Install on Coding Agents" button (easiest) or manually
  4. Use the tool window (bottom panel: "Index MCP Server") to copy configuration or monitor commands
  5. Change port (optional): Click "Change port, disable tools" in the toolbar or go to Settings > Tools > Index MCP Server
Using the "Install on Coding Agents" Button

The easiest way to configure your AI assistant:

  1. Open the "Index MCP Server" tool window (bottom panel)
  2. Click the prominent "Install on Coding Agents" button on the right side of the toolbar
  3. A popup appears with two sections:
    • Install Now - For Claude Code CLI and Codex CLI: Runs the installation command automatically
    • Copy Configuration - For other clients: Copies the JSON config to your clipboard
  4. For "Copy Configuration" clients, paste the config into the appropriate config file

Community Integrations

Disclaimer: This repository is not maintained by me. Please use its own issue tracker for integration-specific issues and support.

Client Configuration

Claude Code (CLI)

Use the "Install on Coding Agents" button in the tool window, or run this command (adjust name and port for your IDE):

# IntelliJ IDEA
claude mcp add --transport http --scope user intellij-index http://127.0.0.1:29170/index-mcp/streamable-http

# PyCharm
claude mcp add --transport http --scope user pycharm-index http://127.0.0.1:29172/index-mcp/streamable-http

# WebStorm
claude mcp add --transport http --scope user webstorm-index http://127.0.0.1:29173/index-mcp/streamable-http

Options:

  • --scope user - Adds globally for all projects
  • --scope project - Adds to current project only

To remove: claude mcp remove <server-name> (e.g., claude mcp remove intellij-index)

Codex CLI

Use the "Install on Coding Agents" button in the tool window, or run this command (adjust name and port for your IDE):

# IntelliJ IDEA
codex mcp add intellij-index --url http://127.0.0.1:29170/index-mcp/streamable-http

# PyCharm
codex mcp add pycharm-index --url http://127.0.0.1:29172/index-mcp/streamable-http

# WebStorm
codex mcp add webstorm-index --url http://127.0.0.1:29173/index-mcp/streamable-http

To remove: codex mcp remove <server-name> (e.g., codex mcp remove intellij-index)

Cursor

Add to .cursor/mcp.json in your project root or ~/.cursor/mcp.json globally (adjust name and port for your IDE):

{
  "mcpServers": {
    "intellij-index": {
      "url": "http://127.0.0.1:29170/index-mcp/streamable-http"
    }
  }
}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json (adjust name and port for your IDE):

{
  "mcpServers": {
    "intellij-index": {
      "serverUrl": "http://127.0.0.1:29170/index-mcp/streamable-http"
    }
  }
}
VS Code (Generic MCP)
{
  "mcp.servers": {
    "intellij-index": {
      "url": "http://127.0.0.1:29170/index-mcp/streamable-http"
    }
  }
}

Note: Replace the server name and port with your IDE's defaults. See IDE-Specific Defaults below.

IDE-Specific Defaults

Each JetBrains IDE has a unique default port and server name to allow running multiple IDEs simultaneously without conflicts:

IDE Server Name Default Port
IntelliJ IDEA intellij-index 29170
Android Studio android-studio-index 29171
PyCharm pycharm-index 29172
WebStorm webstorm-index 29173
GoLand goland-index 29174
PhpStorm phpstorm-index 29175
RubyMine rubymine-index 29176
CLion clion-index 29177
RustRover rustrover-index 29178
DataGrip datagrip-index 29179
Aqua aqua-index 29180
DataSpell dataspell-index 29181

Tip: Use the "Install on Coding Agents" button in the tool window - it automatically uses the correct server name and port for your IDE.

Exposed Tools

The plugin provides 52 MCP tools organized by availability. Tools marked (disabled by default) can be enabled in Settings > Tools > Index MCP Server > Exposed Tools.

Universal Tools

These tools work in all supported JetBrains IDEs.

Tool Description
ide_find_references Find all references to a symbol across the entire project, optionally restricted to path globs via paths
ide_find_definition Find the definition/declaration location of a symbol; accepts top-level symbolId, position, or qualified-name selectors plus an equivalent nested target, and returns a reusable symbolId
ide_symbol_info Resolved signature and documentation for a symbol, accepts the same flat or nested targets as ide_find_definition; parameter and return types expanded to fully qualified names (Java), structured parameters, modifiers, containing declaration, and the doc comment as plain text, without reading the file (disabled by default)
ide_find_class Search for classes/interfaces by name with camelCase/substring/wildcard matching
ide_find_file Search for files by name using IDE's file index
ide_find_symbol Search for symbols (classes, methods, fields, functions) by name with IntelliJ Go to Symbol matching (disabled by default)
ide_search_text Text search using IntelliJ Find in Files with context filtering (substring and regex matching), optionally restricted to path globs via paths
ide_diagnostics Analyze one file or up to 100 supplied files under one shared timeout budget, with per-file coverage states and configurable maxProblems; accepts relative or in-project absolute paths, plus optional build/test results; intentions are best-effort and single-file only
ide_project_diagnostics Batch/project-scope diagnostics for many files including unopened ones, with fail-closed coverage metadata: a complete flag plus per-file analyzed/timed_out/failed/skipped/not_analyzed states, so an empty result can never be mistaken for a clean project. Long analyses return an analysisId to poll; fileTimeoutSeconds can extend large-file analysis up to 600 seconds within the run deadline (disabled by default)
ide_index_status Check if the IDE is in dumb mode or smart mode
ide_sync_files Force sync IDE's virtual file system and PSI cache for relative or in-project absolute paths, including deleted targets via their nearest existing parent
ide_reload_project Force-reload Maven or Gradle build model after modifying pom.xml/build.gradle (disabled by default)
ide_link_build_system Link an unlinked Maven/Gradle project for dependency resolution (disabled by default)
ide_import_modules Import external Maven project directories as modules into the current IntelliJ window (disabled by default, requires Maven plugin)
ide_rename_module Rename a Maven module atomically: directory, artifactId, parent pom module entry, and dependency references across all project pom.xml files (disabled by default)
ide_open_workspace Scan a root directory for Maven projects, or provide an explicit module list, and open them all in one IntelliJ window with full cross-project code intelligence. Call once with every repository; a single repository belongs in ide_open_project (disabled by default, requires Maven plugin)
ide_build_project Build project using IDE's build system (JPS, Gradle, Maven, CMake (CLion)) with structured errors. Long builds return a buildId to poll, so the MCP client's request timeout is never hit (disabled by default)
ide_run_tests Run tests via the IDE's run configuration infrastructure; structured pass/fail results with per-test console output, read from the IDE's test runner (works with any framework, JUnit, TestNG, pytest, Jest, Go test, PHPUnit). Class/method FQN targeting is Java/Kotlin-only; other languages pass an existing run-config name. Long runs return a runId to poll, so the MCP client's request timeout is never hit; each poll reports the failures so far (disabled by default)
ide_read_file Read file content by path or qualified name, including library/jar sources (disabled by default)
ide_get_active_file Get the currently active file(s) in the editor with cursor position (disabled by default)
ide_open_file Open a file in the editor with optional line/column navigation (disabled by default)
ide_set_power_save_mode Enable or disable IDE Power Save Mode, suspends background inspections while keeping the index and all code intelligence operational (disabled by default)
ide_close_project Close an open project window and free its memory, refuses to close the last open project (disabled by default)
ide_create_module Add a directory as an IntelliJ module with a content root, enabling code intelligence for non-Maven projects (TypeScript, plain directories, etc.) (disabled by default)
ide_open_project Open a project by absolute path and wait until indexing completes (configurable timeout); returns immediately if already open. Auto-registers a content root for non-Maven/Gradle projects (disabled by default)
ide_install_plugin Install a plugin zip into the IDE, replacing any existing version, auto-detects build/distributions/*.zip when no path is given (disabled by default)
ide_restart Restart the IDE, the MCP server is down only while the IDE relaunches; poll ide_index_status until it answers, then continue. Call after ide_install_plugin (disabled by default)
ide_refactor_rename Preview with dryRun, or rename a symbol by symbolId/position (or a file) and update all references across the project (all languages; use targetType for explicit file mode)
ide_move_file Move a file to a new directory, applying language-aware reference/package updates when the IDE provides a semantic move backend
ide_reformat_code Reformat code using project code style with import optimization (disabled by default)
ide_optimize_imports Optimize imports without reformatting code (disabled by default)
ide_structural_search_replace Pattern-based code search and transformation using IntelliJ's Structural Search and Replace engine, optionally restricted to path globs via paths (Java, Kotlin) (disabled by default)
ide_create_file Create a new source file with content, immediately indexed by IntelliJ, use instead of Write for .java, .kt, .ts, .tsx, .py files (disabled by default)
ide_replace_text_in_file Find and replace text in a file using IntelliJ's Document API, changes immediately visible to index and PSI without ide_sync_files (disabled by default)
ide_change_signature Preview or change a Java/Kotlin JVM method signature by exact/nested target, updating callers automatically (disabled by default)
ide_edit_member Replace an entire member declaration (signature + body) with new content (Java, Kotlin) (disabled by default)
ide_insert_member Insert a new member at a structural position in a class or file (Java, Kotlin) (disabled by default)
ide_replace_member Replace a method body or field initializer only, preserving the signature (Java, Kotlin) (disabled by default)
Extended Tools (Language-Aware)

These tools activate based on available language plugins:

Tool Description Languages
ide_type_hierarchy Get a bounded, cursor-paginated type hierarchy in deterministic breadth-first order, accepting and returning symbolId Java, Kotlin, Python, JS/TS, Go, PHP, Rust, Scala
ide_call_hierarchy Analyze callers or callees in bounded, cursor-paginated breadth-first order, accepting and returning symbolId Java, Kotlin, Python, JS/TS, Go, PHP, Rust, Scala
ide_find_implementations Find all implementations of an interface or abstract method Java, Kotlin, Python, JS/TS, PHP, Rust, Scala
ide_find_super_methods Find the full inheritance hierarchy of methods that a method overrides/implements Java, Kotlin, Python, JS/TS, PHP, Scala
ide_file_structure Get legacy file structure text; opt into structured nodes and exact handles with includeNodes/includeSymbolIds (disabled by default) Java, Kotlin, Python, JS/TS, PHP, Markdown, Scala

PHP file structure support requires the PHP plugin and is available in PhpStorm or IntelliJ IDEA Ultimate with the PHP plugin enabled.

Bounded hierarchy pages with legacy tree compatibility

Without maxNodes or cursor, call/type hierarchies keep nested trees and legacy limits. Explicit pagination returns bounded breadth-first pages with traversal-local nodeId, parentId, and depth. Continuations are scoped to the project, tool, and server session. A continuation budget limit preserves the computed page and reports truncationReason; narrow the query when hasMore=true has no cursor. Cancellation and indexing transitions propagate through reflective handlers instead of completing an empty hierarchy.

Java-Specific Tools
Tool Description
ide_list_tests List all test methods/classes discovered by the IDE's test framework extension points (JUnit, TestNG, etc.) (disabled by default, requires Java plugin)
ide_convert_java_to_kotlin Convert Java files to Kotlin using IntelliJ's built-in converter (disabled by default, requires Java + Kotlin plugins)
ide_refactor_safe_delete Preview or safely delete an exact/nested symbol target or file after checking usages (Java/Kotlin only)

Note: Applied refactorings modify source files and support undo via Ctrl/Cmd+Z. dryRun: true previews do not modify files or create an undo command.

Symbol handles across navigation and member editing

Class, symbol, reference, implementation, and super-method searches return opaque symbolId handles for exact declarations. Reference and implementation searches plus ide_edit_member and ide_replace_member accept the same nested target variants as definition and symbol-info tools. Cached search pages remain marked stale: true after PSI edits and materialize handles only for the returned page from exact smart pointers. Deleted declarations and handles from another project or server session are rejected; successful member edits return current declaration metadata.

ide_file_structure keeps the legacy structure response by default and avoids returning a structured-node payload or allocating handles. Use includeNodes=true for structured declarations, and includeSymbolIds=true when exact handles are needed (it implies includeNodes). Handle allocation is opt-in and capped at 100 per response; lower it with maxSymbolIds (1–100). Large responses report symbolIdsTruncated and symbolIdsOmitted.

Project Lifecycle Management Tools

ide_project_status is enabled by default. All other lifecycle tools are disabled by default, enable them in Settings → Tools → Index MCP Server.

Tool Description Default
ide_project_status Combined snapshot: every open project and every managed project with open/managed/mode per row Enabled
ide_set_project_mode Set a project's lifecycle mode: active, background, dormant, or closed Disabled
ide_get_project_modes List all managed projects and their current modes, including closed ones Disabled
ide_set_all_project_modes Set all managed projects to the same mode at once (active/background/dormant) Disabled
ide_enroll_all_projects Enroll every currently open project in lifecycle management Disabled
ide_release_project Unenroll a project from lifecycle management Disabled
ide_release_all_projects Release every managed project (including closed ones) from lifecycle management Disabled
ide_lifecycle_log Query recent lifecycle events from a ring buffer; each event has a trigger field explaining the cause Disabled
ide_set_lifecycle_log_file Enable or disable writing lifecycle events to mcp-lifecycle.log Disabled

Lifecycle modes, transitions are automatic, driven by window focus and MCP activity:

Mode Power Save Editors PSI Cache Auto-transition
active off open loaded focus lost for N min → background
background on open loaded N min idle → dormant
dormant on closed (reopen on next focus) freed N min idle → closed
closed , , freed next MCP call → background (auto-reopens)

"Idle" means no MCP tool call: every call on a managed project restarts its background → dormant countdown, and the countdown only runs while the project window is unfocused (an active project has no countdown). A dormant transition closes the editor tabs but remembers them, across IDE restarts too, and reopens them the moment the window regains focus (or the project is released); an MCP wake leaves them closed, since the agent does not need them.

Timing thresholds are configurable in Settings. Lifecycle management is opt-in (disabled by default); once "Enable lifecycle management" is turned on in Settings → Tools → Index MCP Server, projects enroll automatically on first MCP use and auto-reopen when an MCP tool targets a closed project, existing tools require no changes.

MCP availability guarantee: the lifecycle manager never closes below the configurable minimum of open managed projects (default 4), projects at the floor stay in dormant (memory mostly freed, MCP still reachable) instead of closing. If all projects are somehow closed (e.g., the user manually closes the last window), any MCP tool call without a project_path automatically reopens a managed-closed project to restore access.

Tool Availability by IDE

Fully Tested:

IDE Universal Navigation Refactoring
IntelliJ IDEA ✓ all universal tools ✓ 6 tools ✓ rename + move + reformat + optimize imports + safe delete + Java→Kotlin
Android Studio ✓ all universal tools ✓ 6 tools ✓ rename + move + reformat + optimize imports + safe delete + Java→Kotlin
PyCharm ✓ all universal tools ✓ 6 tools ✓ rename + move + reformat + optimize imports
WebStorm ✓ all universal tools ✓ 6 tools ✓ rename + move + reformat + optimize imports
GoLand ✓ all universal tools ✓ 4 tools ✓ rename + move + reformat + optimize imports
RustRover ✓ all universal tools ✓ 5 tools ✓ rename + move + reformat + optimize imports
PhpStorm ✓ all universal tools ✓ 6 tools ✓ rename + move + reformat + optimize imports

May Work (Untested):

IDE Universal Navigation Refactoring
RubyMine ✓ all universal tools ✓ 2 Markdown tools ✓ rename + move + reformat + optimize imports
CLion ✓ all universal tools ✓ 2 Markdown tools ✓ rename + move + reformat + optimize imports
DataGrip ✓ all universal tools ✓ 2 Markdown tools ✓ rename + move + reformat + optimize imports

Note: Navigation tools activate when language plugins are present. Markdown adds heading search and file-structure support when the bundled Markdown plugin is enabled. With the Scala plugin enabled, Scala 2 sources get type hierarchy, call hierarchy, implementations, super methods, and file structure; Java and Kotlin declarations those results reach are reported with their own language. Go and Rust do not expose ide_find_super_methods due to language semantics, and Go does not expose ide_find_implementations. Rename, move, reformat, and optimize-imports tools work across all languages. ide_convert_java_to_kotlin is available only in IntelliJ IDEA and Android Studio, requires both Java and Kotlin plugins, and is disabled by default.

For detailed tool documentation with parameters and examples, see USAGE.md.

For Claude Code users: hooks that enforce IDE tool usage over bash/grep/sed fallbacks.

For agent-heavy workflows: recommended IDE settings that prevent modal dialogs from blocking headless MCP sessions.

Multi-Project Support

When multiple projects are open in a single IDE window, you must specify which project to use with the project_path parameter:

{
  "name": "ide_find_references",
  "arguments": {
    "project_path": "/Users/dev/myproject",
    "file": "src/Main.kt",
    "line": 10,
    "column": 5
  }
}

If project_path is omitted:

  • Single project open: That project is used automatically
  • Multiple projects open: An error is returned with the list of available projects
Workspace Projects

The plugin supports workspace projects where a single IDE window contains multiple sub-projects as modules with separate content roots. The project_path parameter accepts:

  • The workspace root path
  • A sub-project path (module content root)
  • A subdirectory of any open project

When an error occurs, the response returns available_projects. By default this includes workspace sub-projects so AI agents can discover valid module content roots. If you want smaller error payloads, switch Project list in error responses to Compact in plugin settings to return only top-level project roots.

Lifecycle Management

When you use the plugin across multiple projects simultaneously, common when an AI agent is working across a monorepo, open projects compete for memory even when they're not being actively used. Lifecycle management handles this, but it is opt-in: enable "Enable lifecycle management" in Settings → Tools → Index MCP Server (disabled by default).

Once enabled, projects enroll on their first MCP tool call and are notified via balloon. From that point, transitions happen based on focus and MCP activity:

  1. Focus lost → after 2 minutes, Power Save Mode on (background)
  2. No MCP calls → after 2 more minutes, editor tabs close and PSI cache is freed (dormant). Every MCP call restarts this countdown. The closed tabs come back when the window regains focus
  3. Still idle → after 10 minutes, project window closes entirely (closed)
  4. Next MCP call → project reopens automatically, indexes, and responds normally

No changes are needed in existing MCP tools, ProjectResolver handles the reopen transparently. The auto-reopen typically takes 5–15 seconds on first open; subsequent opens are faster.

The lifecycle manager never closes below the configurable minimum of open managed projects (default 4): projects at the floor stay dormant (memory mostly freed, MCP still reachable) instead of closing. If all projects are closed by other means, any tool call automatically reopens one managed project to restore MCP access.

Use ide_project_status to see the current state of all projects at a glance, and ide_lifecycle_log to see what happened and why, useful when a project closed unexpectedly. Each log event has a trigger field: timer:inactivity, timer:close, focus_gained, mcp_call, auto_open, user, etc., and a detail where it helps, e.g. how long a project had no MCP call when the inactivity timer fired, or how many editor tabs a dormant transition closed.

Timing thresholds are configurable in Settings → Tools → Index MCP Server → Project Lifecycle Management.

Tool Window

The plugin adds an "Index MCP Server" tool window (bottom panel) that shows:

  • Server Status: Running indicator with server URL and port
  • Project Name: Currently active project
  • Command History: Log of all MCP tool calls with:
    • Timestamp
    • Tool name
    • Status (Success/Error/Pending)
    • Parameters and results (expandable)
    • Execution duration
Tool Window Actions
Action Description
Refresh Refresh server status and command history
Copy URL Copy the MCP server URL to clipboard
Clear History Clear the command history
Export History Export history to JSON or CSV file
Install on Coding Agents Install MCP server on AI assistants (prominent button on right)

Error Codes

JSON-RPC Standard Errors
Code Name Description
-32700 Parse Error Failed to parse JSON-RPC request
-32600 Invalid Request Invalid JSON-RPC request format
-32601 Method Not Found Unknown method name
-32602 Invalid Params Invalid or missing parameters
-32603 Internal Error Unexpected internal error
Tool Errors

Since v5.0.0, tool-level failures (index not ready, file not found, symbol not found, refactoring conflicts) are returned as MCP tool results with isError: true and a descriptive message, not as custom JSON-RPC error codes. JSON-RPC error codes are reserved for transport-level protocol violations handled by the MCP SDK.

Read the rest of the Jetbrains Index MCP Plugin README on GitHub

Questions about Jetbrains Index MCP Plugin

What is the Jetbrains Index MCP Plugin MCP server?

A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codebase. Jetbrains Index MCP Plugin is maintained by hechtcarmel on GitHub at hechtcarmel/jetbrains-index-mcp-plugin, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Jetbrains Index MCP Plugin MCP server?

Jetbrains Index MCP Plugin doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (hechtcarmel/jetbrains-index-mcp-plugin). Like most servers, Jetbrains Index MCP Plugin ends with a command or URL you paste into your AI app's MCP config.

Does Jetbrains Index MCP Plugin need an API key?

The registry lists no required keys for Jetbrains Index MCP Plugin. Check the Jetbrains Index MCP Plugin README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Jetbrains Index MCP Plugin an official MCP server?

No. Jetbrains Index MCP Plugin is a community server maintained by hechtcarmel. Community servers can be excellent; read the code and the open issues before you give Jetbrains Index MCP Plugin access to company data.

What license is Jetbrains Index MCP Plugin under?

Jetbrains Index MCP Plugin is released under the MIT license, according to its GitHub repository. The license covers the code of Jetbrains Index MCP Plugin; the service it connects to has its own terms.