Is the IntelliJ MCP server safe? What it can reach
What the IntelliJ MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
IntelliJ IDEA has had a built-in MCP server since 2025.2, maintained by JetBrains and bundled on by default. It runs inside your IDE and lets clients read files, edit code, run configurations, query databases and run terminal commands in your open projects. Brave mode is the setting to watch: it removes the approval step for shell commands.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| IntelliJ IDEA MCP Server (JetBrains, built into the IDE) | Official | active |
It runs as a local process on your machine.
How it signs in
The docs describe no credential. You enable the server under Settings, AI, MCP Server and accept an access dialog. A connected client acts with your IDE’s rights over the projects you have open.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_symbol_info, analyze_calls, get_file_problems, get_project_dependencies, get_project_modules, lint_files, get_all_open_file_paths, list_directory_tree, open_file_in_editor, read_file, search_file, search_regex, search_symbol, search_text, skill_search, get_repositories, git_status, get_run_configurations, validate_inspection_kts, generate_inspection_kts_api, generate_inspection_kts_examples, generate_psi_tree, get_database_object_description, introspect_schema, list_database_connections, list_database_schemas, list_recent_sql_queries, list_schema_object_kinds, list_schema_objects, preview_table_data, fetch_query_result, test_database_connection, xdebug_get_debugger_status, xdebug_get_frame_values, xdebug_get_stack, xdebug_get_threads, xdebug_get_value_by_path, xdebug_list_breakpoints |
| Write | create_new_file, apply_patch, reformat_file, rename_refactoring, build_project, run_inspection_kts, create_database_connection, edit_database_connection, cancel_sql_query, xdebug_control_session, xdebug_run_to_line, xdebug_set_breakpoint, xdebug_remove_breakpoint, xdebug_set_variable, xdebug_start_debugger_session |
| Can’t be undone | execute_terminal_command, execute_run_configuration, execute_sql_query, xdebug_evaluate_expression, execute_tool |
Names come from the JetBrains docs. Database tools need the Database Tools and SQL plugin and debugger tools need the Debugger MCP toolset plugin, both optional. The tools do not enforce read-only database access. execute_tool is a universal router that can reach tools marked router-only. Grouping into read, write and destructive is ours, since the docs use other categories.
Built-in limits
| Option | What it does |
|---|---|
Enable MCP Server | Turn it on under Settings, AI, MCP Server and accept the access dialog. |
Exposed Tools | Settings, AI, MCP Server, Exposed Tools lets you untick any tool so the client cannot call it. |
Brave mode | When it is off, execute_terminal_command and run configurations ask for confirmation. Turning it on removes that prompt. |
Router-only | Hides a tool from the direct tool list while keeping it reachable through the router tool. |
Read-only database user | For read-only SQL, point the data source at a database user with read-only privileges. |
The risks
- execute_terminal_command runs shell commands on your machine, and with brave mode on an injected instruction runs them with no prompt.
- execute_sql_query runs any SQL against the connected data source, so a write-capable database user lets an agent change or drop data.
- apply_patch and create_new_file edit your source tree, and read_file can decompile classes and read archives, which exposes dependency code.
- Any client that connects gets access to every project open in the IDE, and the docs describe no per-client credential.
Limit it in Claude Code
Claude Code names MCP tools mcp__intellij__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__intellij__execute_terminal_command",
"mcp__intellij__execute_sql_query",
"mcp__intellij__xdebug_evaluate_expression",
"mcp__intellij__execute_tool"
],
"ask": [
"mcp__intellij__execute_run_configuration",
"mcp__intellij__create_new_file",
"mcp__intellij__apply_patch",
"mcp__intellij__reformat_file",
"mcp__intellij__rename_refactoring",
"mcp__intellij__build_project",
"mcp__intellij__run_inspection_kts",
"mcp__intellij__create_database_connection",
"mcp__intellij__edit_database_connection",
"mcp__intellij__xdebug_start_debugger_session",
"mcp__intellij__xdebug_set_variable"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml under [mcp_servers.<name>]. Use enabled_tools to keep only the tools you need, or disabled_tools to remove the risky ones.
Checklist
- Keep brave mode off.
- Untick tools you do not need under Exposed Tools.
- Point database sources at a read-only user.
- Open only the projects you want the agent to see.
Checked against the vendor documentation on November 25, 2026. IntelliJ IDEA MCP Server help · IntelliJ IDEA 2026.3 MCP Server help
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing