这是一个模型上下文协议(MCP)工具,允许Claude与macOS上的ChatGPT桌面应用程序进行交互。
您可以使用NPX运行此工具,而无需克隆仓库:
npx claude-chatgpt-mcp
编辑您的claude_desktop_config.json文件(位于~/Library/Application Support/Claude/claude_desktop_config.json),以包含此工具:
"chatgpt-mcp": {
"command": "npx",
"args": ["claude-chatgpt-mcp"]
}
重启Claude桌面应用
授予必要的权限:
git clone https://github.com/syedazharmbnr1/claude-chatgpt-mcp.git
cd claude-chatgpt-mcp
bun install
chmod +x index.ts
编辑您的claude_desktop_config.json文件(位于~/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"]
}
确保将YOURUSERNAME替换为您实际的macOS用户名,并调整路径以指向您克隆此仓库的位置。
重启Claude桌面应用
授予权限:
安装完成后,您可以通过Claude直接使用ChatGPT工具提问,例如:
如果工具无法正常工作:
claude_desktop_config.json中bun的路径是否正确这个分支包括对原始实现的几个重大改进:
这些优化使得集成在不同场景下更加可靠,更能抵御ChatGGPT应用UI变化的影响,并且更好地处理较长的响应时间,避免消息截断问题。
MIT </中文翻译>