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

OpenAI

# 向 ChatGPT 添加 MCP 服务器

ChatGPT 没有配置文件；要添加远程 MCP 服务器，请在开发者模式下将其添加为应用。

- **位置**: 在“设置”>“安全与登录”中开启开发者模式，或联系工作区管理员。然后使用服务器 URL 创建应用，选择 OAuth 或无身份验证，再运行 Scan Tools。
- **顶层键**: —
- **格式**: —
- **远程服务器的 OAuth**: 

在“设置”>“安全与登录”中开启开发者模式，或联系工作区管理员。然后使用服务器 URL 创建应用，选择 OAuth 或无身份验证，再运行 Scan Tools。

## 注意事项和特殊情况

- 网页版 ChatGPT 只能连接远程服务器。私有服务器可通过 Secure MCP Tunnel 访问。
- OAuth 支持 CIMD、动态注册或自定义客户端。请求 offline_access 以获取刷新 token。
- ChatGPT 桌面应用会读取 Codex 的 ~/.codex/config.toml，其中也包括 stdio 服务器。
- Playwright 等本地服务器无法在网页版中添加。

[生成 ChatGPT 配置 →](https://dotsagent.io/zh/mcp/config#client=chatgpt)

## 其他客户端

[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)

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

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

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

[JetBrains AI Assistant](https://dotsagent.io/zh/mcp/clients/jetbrains-ai)

## 来源

1. [help.openai.com](https://help.openai.com/en/articles/12584461-developer-mode-and-full-mcp-connectors-in-chatgpt)/en/articles/12584461-developer-mode-and-full-mcp-connectors-in-chatgp
2. [developers.openai.com](https://developers.openai.com/api/docs/mcp)/api/docs/mcp
3. [developers.openai.com](https://developers.openai.com/plugins/build/auth)/plugins/build/auth
4. [developers.openai.com](https://developers.openai.com/codex/mcp)/codex/mcp

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

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