Skip to main content
Glama

mcp-jetbrains

Official
by JetBrains

JetBrains MCP 代理服务器

服务器代理从客户端到 JetBrains IDE 的请求。

安装 MCP 服务器插件

https://plugins.jetbrains.com/plugin/26071-mcp-server

与 Claude Desktop 一起使用

要将其与 Claude Desktop 一起使用,请将以下内容添加到claude_desktop_config.json 。MacOS 上的完整路径为: ~/Library/Application\ Support/Claude/claude_desktop_config.json ,Windows 上的完整路径为: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "jetbrains": { "command": "npx", "args": ["-y", "@jetbrains/mcp-proxy"] } } }

配置

如果您使用 MCP 服务器运行多个 IDE,并且想要连接到特定的 IDE,请添加到 MCP 服务器配置中:

"env": { "IDE_PORT": "<port of IDE's built-in webserver>" }

默认情况下,我们连接到 127.0.0.1 上的 IDE,但您可以指定其他地址/主机:

"env": { "HOST": "<host/address of IDE's built-in webserver>" }

要启用日志记录,请添加:

"env": { "LOG_ENABLED": "true" }

故障排除

Node.js 版本要求

**问题:**错误消息: Cannot find module 'node:path'

解决方案: MCP Proxy 在 Node 16 上无法正常工作。请将您的 Node.js 安装升级到 18 或更高版本。确保配置中的command指向正确的 Node.js 版本。请尝试使用最新版本 NodeJS 的完整路径。

MacOS:插件无法检测通过 nvm 安装的 Node.js

**问题:**在 MacOS 上,如果您通过 nvm(Node 版本管理器)安装了 Node.js,MCP 服务器插件可能无法检测到您的 Node.js 安装。

**解决方案:**/usr/local/bin中创建指向您的 nvm npx 可执行文件的符号链接:

which npx &>/dev/null && sudo ln -sf "$(which npx)" /usr/local/bin/npx

此单行代码检查您的路径中是否存在 npx,并使用适当的权限创建必要的符号链接。

将 MCP 与外部客户端或 Docker 容器(LibreChat、Cline 等)一起使用

**问题:**尝试从外部客户端、Docker 容器或第三方应用程序(例如 LibreChat)连接到 JetBrains MCP 代理时,对http://host.docker.internal:6365/api/mcp/list\_tools等端点的请求可能会返回 404 错误或连接失败。**解决方案:**有两个关键问题需要解决:

  1. 启用外部连接:

在您的 JetBrains IDE 中,在设置 | 构建、执行、部署 | 调试器中启用“可以接受外部连接”。

  1. 配置 LAN IP 和端口:

使用您机器的 LAN IP 地址而不是host.docker.internal在您的配置中明确设置 IDE_PORT 和 HOST LibreChat 或类似外部客户端的示例配置:

mcpServers: intellij: type: stdio command: sh args: - "-c" - "IDE_PORT=YOUR_IDEA_PORT HOST=YOUR_IDEA_LAN_IP npx -y @jetbrains/mcp-proxy"

代替:

YOUR_IDEA_PORT为您的 IDE 的调试端口(可在 IDE 设置中找到) YOUR_IDEA_LAN_IP为您的计算机的本地网络 IP(例如 192.168.0.12)

如何构建

  1. 在 macOS 上测试
  2. brew install node pnpm
  3. 运行pnpm build来构建项目
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

服务器代理从客户端到 JetBrains IDE 的请求。

  1. 安装 MCP 服务器插件
    1. 与 Claude Desktop 一起使用
      1. 配置
        1. 故障排除
          1. Node.js 版本要求
          2. MacOS:插件无法检测通过 nvm 安装的 Node.js
          3. 将 MCP 与外部客户端或 Docker 容器(LibreChat、Cline 等)一起使用
        2. 如何构建

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A proxy server that enables AI assistants to run and interact with command-line applications like Expo through the Model Context Protocol (MCP), capturing logs and allowing keypress forwarding.
            Last updated -
            12
            6
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A modified JetBrains MCP Server that adds WebSocket monitoring capabilities, allowing users to monitor MCP tool calls in real-time while maintaining compatibility with the original implementation.
            Last updated -
            JavaScript
            Apache 2.0
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables IDEs like Cursor and Windsurf to analyze large codebases using Gemini's extensive context window.
            Last updated -
            17
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            A server that exposes the Jadx decompiler API over HTTP, enabling Claude to interact with decompiled Java/Android code to list classes, fetch source code, inspect methods/fields, and extract code live.
            Last updated -
            42
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/JetBrains/mcp-jetbrains'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server