Gopeed MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gopeed MCP ServerDownload the file at https://example.com/document.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gopeed MCP Server
一个基于 Model Context Protocol (MCP) 的 Server,让你能在 VS Code Copilot Chat 中通过自然语言控制 Gopeed 下载管理器。
关于 Gopeed:本项目的被控对象是开源下载管理器 Gopeed(由
GopeedLab维护,采用 GPL-3.0 许可证)。本 Server 仅通过 Gopeed 公开的 REST API 与之通信,不修改、不嵌入其任何源代码,因此本仓库以 MIT 许可证独立发布。使用前请先安装并运行 Gopeed 本体。
功能介绍
本 MCP Server 封装了 Gopeed 的 REST API,提供以下 8 个工具:
工具 | 说明 |
| 创建下载任务,支持自定义文件名和并发连接数 |
| 列出所有下载任务,可按状态过滤 |
| 获取单个任务的详细信息 |
| 暂停指定任务 |
| 恢复(继续)指定任务 |
| 删除任务,可选同时删除已下载文件 |
| 获取 Gopeed 当前配置(下载目录、连接数、代理等) |
| 更新 Gopeed 配置(只传需要修改的字段) |
Related MCP server: Azure DevOps MCP Server
环境要求
Python 3.10+
Gopeed 已安装并运行(API 端口每次启动随机分配,无需手动指定)
VS Code 安装了 GitHub Copilot Chat 扩展
安装步骤
进入项目目录:
cd gopeed-mcp-server(推荐)创建虚拟环境:
python -m venv .venv # Windows .venv\Scripts\activate # macOS / Linux source .venv/bin/activate安装依赖:
pip install -r requirements.txt(可选)配置环境变量。复制
.env.example为.env并按需修改:copy .env.example .env可用环境变量:
GOPEED_API_URL:Gopeed API 地址。推荐留空端口(默认http://127.0.0.1/api/v1),server 会自动发现 Gopeed 当前端口(Gopeed 每次重启都会随机换端口,自动发现可免去手动改配置)。仅在确需固定时才写http://127.0.0.1:<端口>/api/v1GOPEED_API_TOKEN:API 令牌(可选,Gopeed 配置了令牌时需要)GOPEED_TIMEOUT:请求超时秒数,默认10
VS Code Copilot Chat 配置方法
打开 VS Code,按
Ctrl+Shift+P(macOS 为Cmd+Shift+P),输入并选择 "Preferences: Open User Settings (JSON)"。在
settings.json中添加mcpServers配置:"mcpServers": { "gopeed": { "command": "C:\\path\\to\\gopeed-mcp-server\\.venv\\Scripts\\python.exe", "args": [ "C:\\path\\to\\gopeed-mcp-server\\server.py" ], "env": { "GOPEED_API_URL": "http://127.0.0.1/api/v1" } } }注意:
command使用虚拟环境中 Python 的绝对路径(<仓库>/.venv/Scripts/python.exe),避免系统 PATH 中没有python导致启动失败。args中的路径需要使用双反斜杠\\转义,或使用正斜杠/。GOPEED_API_URL推荐留空端口(http://127.0.0.1/api/v1),server 会自动发现 Gopeed 当前监听端口;若已固定端口则写完整地址。如果 Gopeed 配置了 API 令牌,在
env中添加"GOPEED_API_TOKEN": "你的令牌"。
保存
settings.json,重启 VS Code。验证配置:打开 Copilot Chat,输入
@gopeed或直接描述需求,Copilot 应能识别并调用 Gopeed 工具。也可以在 VS Code 的 MCP 面板中查看gopeedserver 是否处于运行状态。
使用示例
在 VS Code Copilot Chat 中,你可以这样说:
你说的话 | 触发的操作 |
"帮我下载这个文件:https://example.com/file.zip" | 创建下载任务 |
"下载 https://example.com/video.mp4,文件名改成我的视频.mp4,用 32 个连接" | 创建任务并指定文件名和并发数 |
"看看现在有哪些下载任务" | 列出所有任务 |
"显示正在下载的任务" | 按 running 状态过滤任务列表 |
"查看任务 abc123 的详细信息" | 获取任务详情 |
"暂停任务 abc123" | 暂停任务 |
"继续任务 abc123" | 恢复任务 |
"删除任务 abc123" | 删除任务(保留文件) |
"删除任务 abc123,连文件一起删掉" | 强制删除任务和文件 |
"Gopeed 当前配置是什么?" | 获取配置 |
"把并发连接数改成 32" | 更新配置 |
"把下载目录改成 D:\Downloads" | 更新下载目录 |
"启用代理" / "关闭代理" | 更新代理开关 |
项目结构
gopeed-mcp-server/
├── server.py # MCP Server 主入口,定义所有 MCP Tools
├── gopeed_client.py # Gopeed REST API 客户端封装
├── config.py # 配置管理(从环境变量读取)
├── requirements.txt # Python 依赖
├── .env.example # 环境变量示例
└── README.md # 本文件故障排查
1. Copilot Chat 无法调用 Gopeed 工具
确认
settings.json中mcpServers.gopeed配置的路径正确,使用双反斜杠\\。确认
command指向虚拟环境中 Python 的绝对路径(如...\.venv\Scripts\python.exe),而非裸python(系统 PATH 可能无python)。重启 VS Code 后再试。
在 VS Code 中打开 Output 面板,选择 MCP 通道查看 gopeed server 的日志输出。
2. 提示"无法连接到 Gopeed"
确认 Gopeed 已启动并正在运行。
Gopeed 每次重启会随机分配 API 端口,本 server 默认自动发现当前端口;若
GOPEED_API_URL写死了旧端口会失效,建议改为留空端口的http://127.0.0.1/api/v1。检查防火墙是否阻止了本地回环连接;若系统启用了代理,localhost 请求可能被拦截返回 503,本 server 已对本地请求禁用代理。
3. 提示"Gopeed 业务错误"或"HTTP 401/403"
Gopeed 可能配置了 API 访问令牌,需要在
env中设置GOPEED_API_TOKEN。在 Gopeed Web UI 的设置中查看是否启用了令牌认证。
4. Python 依赖安装失败
确保 Python 版本 >= 3.10:
python --version升级 pip:
pip install --upgrade pip使用国内镜像源:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
5. 手动测试 Gopeed API 连通性
Gopeed 端口随机,先找到当前端口再用 curl 测试:
# Windows:通过 netstat 找到 gopeed 监听的回环端口
netstat -ano | findstr "LISTENING" | findstr "gopeed"
# 假设查到端口为 12345,则:
curl http://127.0.0.1:12345/api/v1/config
curl http://127.0.0.1:12345/api/v1/tasks如果 curl 能正常返回 JSON 数据(含 "code":0),说明 Gopeed API 正常,问题出在 MCP Server 配置或 Python 环境。
许可证
本项目(Gopeed MCP Server)以 MIT 许可证发布,详见 LICENSE。
被控对象 Gopeed 本身是独立的开源项目,采用 GPL-3.0 许可证(© GopeedLab 及其贡献者)。本 Server 仅通过网络调用其公开 REST API 进行集成,不构成对 Gopeed 源代码的修改或衍生,亦不随本仓库分发 Gopeed 的任何代码。如使用 Gopeed 本体,请遵守其对应的许可证条款。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Related MCP Connectors
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Azure DevOps work items through AI assistants like VS Code/GitHub Copilot. Supports fetching work item details and updating work item statuses using natural language commands.-
- AlicenseNot gradedqualityDmaintenanceIntegrates Azure DevOps with GitHub Copilot Chat, enabling natural language queries of sprint work items, ticket summaries, and status tracking directly from VS Code without switching contexts.27MIT
- FlicenseBqualityDmaintenanceIntegrates GitHub Copilot Chat with your Taskboard instance to manage workspaces, boards, lists, and cards using natural language. It supports full task lifecycle operations, searching capabilities, and knowledge base queries via RAG.12-
- FlicenseAqualityDmaintenanceEnables AI agents to control VSCode workspaces, including file operations, terminal commands, search, and workspace management.7-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Panda-Young/gopeed-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server