Claude ChatGPT MCP Tool

Claude ChatGPT MCP Tool

site icon
2025.02.27 621
TypeScriptAI 交互工具对话管理交流协作
Claude ChatGPT MCP Tool 是一个基于 Model Context Protocol (MCP) 的工具,它允许用户在 macOS 上通过 Claude 与 ChatGPT 桌面应用进行交互。该工具的核心功能包括直接向 ChatGPT 提问、查看 ChatGPT 的对话历史以及继续现有的 ChatGPT 对话。它适用于需要在 Claude 和 ChatGPT 之间无缝切换的用户,特别是那些希望在一个平台上集中管理多个 AI 对话的用户。
View on GitHub

Overview

基本能力

产品定位

Claude ChatGPT MCP Tool 是一个桥梁工具,旨在连接 Claude 和 ChatGPT 桌面应用,使用户能够在 Claude 环境中直接与 ChatGPT 交互。

核心功能

  • 直接从 Claude 向 ChatGPT 提问
  • 查看 ChatGPT 的对话历史
  • 继续现有的 ChatGPT 对话

适用场景

  • 在 Claude 中需要快速访问 ChatGPT 功能的用户
  • 希望在一个平台上集中管理多个 AI 对话的用户
  • 需要查看或继续之前 ChatGPT 对话的用户

工具列表

  • index.ts: 主脚本文件,负责处理 Claude 和 ChatGPT 之间的交互

常见问题解答

  1. 确保 ChatGPT 应用已安装并已登录
  2. 验证 claude_desktop_config.json 中 bun 的路径是否正确
  3. 检查是否已授予所有必要的权限
  4. 尝试重启 Claude 和 ChatGPT 应用

使用教程

使用依赖

安装教程

  1. 克隆仓库:
git clone https://github.com/syedazharmbnr1/claude-chatgpt-mcp.git
cd claude-chatgpt-mcp
  1. 安装依赖:
bun install
  1. 确保脚本可执行:
chmod +x index.ts
  1. 更新 Claude Desktop 配置: 编辑 ~/Library/Application Support/Claude/claude_desktop_config.json 文件,添加以下内容:
"chatgpt-mcp": {
  "command": "/Users/YOURUSERNAME/.bun/bin/bun",
  "args": ["run", "/path/to/claude-chatgpt-mcp/index.ts"]
}
  1. 重启 Claude Desktop 应用
  2. 授予权限:
  3. 前往 System Preferences > Privacy & Security > Privacy
  4. 给予 Terminal (或 iTerm) 访问 Accessibility 功能的权限

调试方式

安装完成后,可以通过以下方式测试工具是否正常工作: - 在 Claude 中提问: "Can you ask ChatGPT what the capital of France is?" - 查看对话历史: "Show me my recent ChatGPT conversations" - 继续对话: "Ask ChatGPT to explain quantum computing"

许可证

该项目遵循 MIT 开源许可条款。