---
title: "JetBrains AI Assistant MCP 配置：文件路径、键和示例 · DotsAgent"
description: "从 JetBrains 向 JetBrains AI Assistant 添加 MCP 服务器：了解配置文件位置、顶层键和格式、远程 OAuth 支持，以及配置示例。"
url: https://dotsagent.io/zh/mcp/clients/jetbrains-ai
---

JetBrains

# 向 JetBrains AI Assistant 添加 MCP 服务器

JetBrains AI Assistant 可在设置页面配置 MCP 服务器，粘贴符合 mcpServers 结构的 JSON 即可。

- **位置**: 打开 Settings > Tools > AI Assistant > Model Context Protocol (MCP)，点击 Add 并粘贴 JSON；远程服务器需填写 url。
- **顶层键**: `mcpServers`
- **格式**: json (pasted in UI)
- **远程服务器的 OAuth**: 

## 配置示例

此示例按该客户端所需的格式，添加 GitHub 托管的服务器和作为本地服务器的 Playwright。

`Settings → Tools → AI Assistant → Model Context Protocol (MCP)`

```
{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
```

## 注意事项和特殊情况

- 可以在全局级别或项目级别添加服务器。
- 提供“从 Claude 导入”选项。
- 远程条目需要填写 url；以 /sse 结尾的 URL 会被视为 SSE。
- 未提供远程服务器 Header 和 OAuth 支持的文档。
- IDE 还可以充当 MCP 服务器，相关设置位于 Settings | Tools | MCP Server。

[生成 JetBrains AI Assistant 配置 →](https://dotsagent.io/zh/mcp/config#client=jetbrains-ai)

## 其他客户端

[Claude Desktop](https://dotsagent.io/zh/mcp/clients/claude-desktop)

[Claude Code](https://dotsagent.io/zh/mcp/clients/claude-code)

[Cursor](https://dotsagent.io/zh/mcp/clients/cursor)

[VS Code (GitHub Copilot)](https://dotsagent.io/zh/mcp/clients/vscode-copilot)

[Windsurf / Devin Desktop](https://dotsagent.io/zh/mcp/clients/windsurf)

[Zed](https://dotsagent.io/zh/mcp/clients/zed)

[OpenAI Codex CLI](https://dotsagent.io/zh/mcp/clients/codex-cli)

[Gemini CLI](https://dotsagent.io/zh/mcp/clients/gemini-cli)

[ChatGPT](https://dotsagent.io/zh/mcp/clients/chatgpt)

[OpenClaw](https://dotsagent.io/zh/mcp/clients/openclaw)

[Cline](https://dotsagent.io/zh/mcp/clients/cline)

[Continue](https://dotsagent.io/zh/mcp/clients/continue)

## 来源

1. [jetbrains.com](https://www.jetbrains.com/help/ai-assistant/mcp.html)/help/ai-assistant/mcp.html
2. [jetbrains.com](https://www.jetbrains.com/help/ai-assistant/settings-reference-mcp.html)/help/ai-assistant/settings-reference-mcp.html

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期：2026年10月1日
