GPT MCP启动器
连接ChatGPT桌面和本地MCP服务器的启动器和网关系统。
概述
该项目还允许ChatGPT桌面使用为Claude Desktop创建的MCP服务器。提供API网关,可通过单个ngrok隧道访问多个MCP服务器。
体系结构
┌─────────────────┐ ┌─────────────┐ ┌──────────────────────┐
│ ChatGPT Desktop │────▶│ ngrok │────▶│ API Gateway │
│ (MCP Client) │ │ (HTTPS) │ │ (Port 8800) │
└─────────────────┘ └─────────────┘ └──────────┬───────────┘
│
┌──────────────────────────────────┼──────────────────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
│ gpt-mcp-server │ │ gpt-openmemory-mcp│ │ gpt-dreamteam-mcp │
│ (Port 8765) │ │ (Port 8769) │ │ (Port 8768) │
└───────────────────┘ └───────────────────┘ └───────────────────┘MCP服务器列表
端口服务器说明工具数量 |------|------|------|---------| 8765 gpt-mcp-server文件系统访问(读/写/检索)10 8766 gpt-s序列化-thinking-mcp复杂问题分步分析1 8767 gpt-persona-mcp管理Persona配置文件8| 8768gpt-dreamteam-mcp基于RAG的开发团队知识搜索4| 8769 gpt-openmemory-mcp保存对话内存和文档9 8770 gpt-desktop-commander-mcp文件/进程系统管理13 8780 gpt-qualmaster-mcp质量研究方法支持12 8781 gpt-quantmaster-mcp统计/计量经济学支持40+ 8782 gpt-dsmaster-mcp Design Science Research方法论18
安装和设置
1.前提条件
- Python 3.10+
- ngrok帐户(免费或Pro)
- ChatGPT桌面(启用开发者模式)
2.ngrok设置(最初1次)
setup-ngrok.bathttps://dashboard.ngrok.com在中复制authtoken并输入。
3.启动服务器
# 모든 MCP 서버 시작
start-all.bat
# ngrok 게이트웨이 시작
start-ngrok-all.batChatGPT桌面设置
1.启用开发者模式
Settings→联动应用程序和连接器→开发者模式ON
2.添加连接器
为每台服务器创建“新连接器”:
| 名称 | URL |
|---|---|
| OpenMemory | https://{ngrok-url}/openmemory/mcp |
| 文件系统 | https://{ngrok-url}/filesystem/mcp |
| 顺序思维 | https://{ngrok-url}/sequential/mcp |
| Persona | https://{ngrok-url}/persona/mcp |
| 梦之队 | https://{ngrok-url}/dreamteam/mcp |
| 桌面指挥官 | https://{ngrok-url}/commander/mcp |
| QualMaster | https://{ngrok-url}/qualmaster/mcp |
| QuantMaster | https://{ngrok-url}/quantmaster/mcp |
| DSRMaster | https://{ngrok-url}/dsrmaster/mcp |
认证:选择无
文件结构
gpt-mcp-launcher/
├── README.md # 이 문서
├── gateway.py # API Gateway 서버
├── ngrok.yml # ngrok 터널 설정
├── ngrok.exe # ngrok 바이너리
├── start-all.bat # 모든 MCP 서버 시작
├── start-ngrok-all.bat # 모든 터널 동시 시작
├── start-ngrok.bat # 단일 터널 선택 시작
├── setup-ngrok.bat # ngrok 인증 설정
├── stop-all.bat # 모든 서버 종료
└── logs/ # 서버 로그 디렉토리网关API
网关提供基于路径的路由:
GET /-查看服务列表POST /{service}/mcp-MCP请求代理
服务路由
路径目标服务器 |------|-----------| | /filesystem/* |本地主机:8765| | /sequential/* |本地主机:8766| | /persona/* |本地主机:8767| | /dreamteam/* |本地主机:8768| | /openmemory/* |本地主机:8769| | /commander/* |本地主机:8770| | /qualmaster/* |本地主机:8780| | /quantmaster/* |本地主机:8781| | /dsrmaster/* |本地主机:8782|
注意事项
开发者模式
- ChatGPT桌面的MCP功能仅在开发者模式下工作
- 在开发者模式下,ChatGPT内置内存被禁用
- OpenMemory MCP服务器取代内存功能
ngrok限制
- 免费/基本计划:每个会话最多5个隧道
- URL在每次重新启动时都会更改(固定域收费)
- 使用Gateway,可以通过一个隧道访问所有服务器
安全
- MCP服务器仅在本地运行(127.0.0.1)
- 只能通过ngrok外部访问
- 无需身份验证即可使用,请注意ngrok URL共享
故障排除
服务器未启动
# 포트 사용 확인
netstat -an | findstr "8765 8766 8767 8768 8769 8770"
# 프로세스 종료 후 재시작
stop-all.bat
start-all.batngrok连接失败
# authtoken 재설정
setup-ngrok.batChatGPT看不到MCP工具
- 验证开发者模式是否打开
- 验证连接器URL是否正确
- 验证ngrok是否正在运行
相关项目
- gpt-mcp服务器 -文件系统MCP
- gpt顺序思维mcp -阶段性事故MCP
- gpt人物mcp -Persona MCP
- gpt梦之队mcp -梦之队RAG MCP
- gpt开放存储器mcp -OpenMemory MCP
- gpt桌面指挥官mcp -桌面指挥官MCP
许可证
MIT许可证
