# hechtcarmel/jetbrains-index-mcp-plugin [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/hechtcarmel/jetbrains-index-mcp-plugin  
**GitHub Stars:** 403  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hechtcarmel-jetbrains-index-mcp-plugin

## Description
A JetBrains IDE plugin that exposes an MCP server, enabling AI coding assistants to leverage the IDE's indexing and refactoring capabilities (rename, safe delete, find references, call hierarchy, type hierarchy, diagnostics and more).

## Tools
Capabilities this server exposes over MCP:

- **ide_find_references** — Find all references to a symbol across the entire project
- **ide_find_definition** — Find the definition/declaration location of a symbol
- **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)
- **ide_diagnostics** — Analyze file problems with fresh editor diagnostics for open files or public batch diagnostics for closed files, plus optional build/test results; intentions are best-effort
- **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 `analysi…
- **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 with external file changes
- **ide_reload_project** — Force-reload Maven or Gradle build model after modifying `pom.xml`/`build.gradle` *(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_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 *(disabled by default, requires Maven plugin)*
- **ide_build_project** — Build project using IDE's build system (JPS, Gradle, Maven) 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 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. Lo…
- **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 *(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 — terminates the MCP connection; call after `ide_install_plugin` *(disabled by default)*
- **ide_refactor_rename** — Rename a symbol or 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 (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** — Change method signature with automatic caller updates (Java only) *(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)*
- **ide_type_hierarchy** — Get the complete type hierarchy (supertypes and subtypes)
- **ide_call_hierarchy** — Analyze method call relationships (callers or callees)
- **ide_find_implementations** — Find all implementations of an interface or abstract method
- **ide_find_super_methods** — Find the full inheritance hierarchy of methods that a method overrides/implements
- **ide_file_structure** — Get hierarchical file structure (similar to IDE's Structure view) with start and end line numbers for each element *(disabled by default)*
- **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** — Safely delete an element, checking for usages first (Java/Kotlin only)
- **ide_project_status** — Combined snapshot: every open project and every managed project with open/managed/mode per row
- **ide_set_project_mode** — Set a project's lifecycle mode: `active`, `background`, `dormant`, or `closed
- **ide_get_project_modes** — List all managed projects and their current modes, including closed ones
- **ide_set_all_project_modes** — Set all managed projects to the same mode at once (active/background/dormant)
- **ide_enroll_all_projects** — Enroll every currently open project in lifecycle management
- **ide_release_project** — Unenroll a project from lifecycle management
- **ide_release_all_projects** — Release every managed project (including closed ones) from lifecycle management
- **ide_lifecycle_log** — Query recent lifecycle events from a ring buffer; each event has a `trigger` field explaining the cause
- **ide_set_lifecycle_log_file** — Enable or disable writing lifecycle events to `mcp-lifecycle.log

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/hechtcarmel/jetbrains-index-mcp-plugin), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Add to Claude Code:

```sh
claude mcp add --transport http --scope user intellij-index http://127.0.0.1:29170/index-mcp/streamable-http
```

2. Add to Claude Code:

```sh
claude mcp add --transport http --scope user pycharm-index http://127.0.0.1:29172/index-mcp/streamable-http
```

3. Add to Claude Code:

```sh
claude mcp add --transport http --scope user webstorm-index http://127.0.0.1:29173/index-mcp/streamable-http
```

4. Add to Codex:

```sh
codex mcp add intellij-index --url http://127.0.0.1:29170/index-mcp/streamable-http
```

5. Add to Codex:

```sh
codex mcp add pycharm-index --url http://127.0.0.1:29172/index-mcp/streamable-http
```

6. Add to Codex:

```sh
codex mcp add webstorm-index --url http://127.0.0.1:29173/index-mcp/streamable-http
```

## Documentation

## What hechtcarmel/jetbrains-index-mcp-plugin does

hechtcarmel/jetbrains-index-mcp-plugin embeds an MCP server in a JetBrains IDE and makes the IDE's project model available to compatible AI coding assistants. Its tools use JetBrains indexes, PSI-based code intelligence, editor diagnostics, build infrastructure, test runners, and refactoring services rather than relying only on text processing.

The plugin covers IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, Android Studio, and PhpStorm. It may also work in RubyMine, CLion, and DataGrip. Rider is not supported because its ReSharper backend does not provide the IntelliJ PSI APIs required by the plugin. Language-aware behavior depends on the relevant IDE plugins; supported language areas include Java, Kotlin, Python, JavaScript, TypeScript, Go, PHP, Rust, Scala, and Markdown.

## How it works

After installation and an IDE restart, the MCP server starts with IDE-specific defaults. The documented defaults include port 29170 for IntelliJ IDEA, 29172 for PyCharm, and 29173 for WebStorm; other IDEs use their own defaults. It binds to 127.0.0.1 without authentication, so any local process can call the exposed tools with the IDE's file access.

Index-aware tools can search classes, files, symbols, references, definitions, and text. Other operations query diagnostics, inspect index readiness, synchronize IDE caches after external changes, and access file content or editor state. Refactoring tools can rename symbols, move files, reformat code, optimize imports, and perform structural search and replacement. Optional project controls can reload Maven or Gradle models, import modules, open workspaces, build projects, run tests, and manage files or projects.

Some tools are disabled by default and must be enabled in the plugin settings. Long-running builds, tests, and analyses can return identifiers or progress-related results so the MCP client does not need to hold a single request open until completion.

## Setup and configuration

Install the plugin from the JetBrains IDE Marketplace through Settings or Preferences, or download the latest release and use the IDE's “Install plugin from disk” action. Restart the IDE, open a project, and then configure the MCP client to connect to the local server using the port associated with that IDE.

The plugin is intended for regular IDE windows, JetBrains remote development sessions, and headless automation runs. Project lifecycle management is optional. When enabled in Settings → Tools → Index MCP Server, it can move inactive projects through background, dormant, and closed states and reopen them when a later MCP call requires them.

## Tools and capabilities

- Locate definitions, references, classes, files, symbols, and text across indexed projects.
- Inspect file and project diagnostics, including coverage status for batch analysis.
- Check whether indexing is ready and synchronize virtual files and PSI data.
- Build projects through JPS, Gradle, or Maven and run tests through IDE run configurations.
- Rename symbols safely and move files with language-aware reference or package updates when supported.
- Read, create, open, and navigate files; manage projects, modules, plugins, and IDE restart operations where enabled.
- Explore type and call hierarchies, implementations, overrides, and file structure when language plugins provide those capabilities.

## Limitations and notes

Capabilities vary by JetBrains product and installed language plugin. Java and Kotlin support includes language-specific targeting for several operations, while some features are limited to particular languages, such as structural search and replacement for Java and Kotlin. Test targeting by fully qualified class or method name is Java/Kotlin-only; other languages use an existing run-configuration name.

Many write, lifecycle, project, build, test, and file-management tools are disabled by default. The local unauthenticated binding should be treated as accessible to all local processes, especially on shared machines. The IDE must also have completed enough indexing for semantic results to be useful; the index-status and diagnostic coverage tools help distinguish incomplete analysis from a clean result.

_Full upstream README: https://allmcps.com/mcp/hechtcarmel-jetbrains-index-mcp-plugin/readme_

