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
            F
            license
            -
            quality
            Server that enhances the capabilities of the Cline coding agent. It provides intelligent code suggestions, reduces hallucinations, and documents the knowledge base by leveraging your project's documentation and detecting the technologies used in your codebase.
            Last updated -
            12
            JavaScript
          • A
            security
            F
            license
            A
            quality
            The server facilitates natural language interactions for exploring and understanding codebases, providing insights into data models and system architecture using a cost-effective, simple setup with support for existing Claude Pro subscriptions.
            Last updated -
            4
            16
            Python
            • Apple
          • A
            security
            F
            license
            A
            quality
            A server that provides tools and utilities to support the implementation of Jij Modeling, featuring easy configuration and an extensible architecture for custom modeling workflows.
            Last updated -
            2
            3
            Python
          • -
            security
            F
            license
            -
            quality
            A server that enables AI assistants to control a browser through tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
            Last updated -
            TypeScript

          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