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., "@M-Team MCP Serversearch for the movie Inception and show me the top results"
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.
M-Team MCP Server
中文文档
简介
M-Team MCP Server 是一个基于 FastMCP 框架开发的 MCP(Model Context Protocol)服务器,让 AI 助手(如 Claude、Cursor 等)能够直接调用 M-Team(馒头)私有种子站的 API,实现资源搜索、种子详情获取和种子文件下载功能。
功能列表
工具 | 说明 |
| 按关键词搜索种子资源,支持多种分类模式 |
| 根据种子 ID 获取种子详细信息 |
| 根据种子 ID 下载 |
安装
前置要求
Python 3.10 或以上版本
M-Team 账号及 API Key
安装步骤
克隆或下载本项目:
安装依赖:
配置 API Key:
复制 .env_example 为 .env,并填入你的 M-Team API Key:
编辑 .env 文件:
你可以在 M-Team 网站的个人设置 → API Key 处获取 API Key。
可选环境变量
变量名 | 默认值 | 说明 |
| (必填) | M-Team API 鉴权密钥 |
|
| API 根地址 |
|
| 种子文件保存目录 |
在 MCP 客户端中使用
Cursor / Claude Desktop 配置
在 MCP 客户端配置文件中添加:
也可以不在配置文件中填写
env,直接在项目目录下创建.env文件,服务器启动时会自动加载。
通过 FastMCP CLI 启动
直接运行
工具文档
search_torrents — 搜索种子
搜索 M-Team 上的种子资源。
输入参数
参数 | 类型 | 必填 | 默认值 | 说明 |
| string | 是 | — | 搜索关键词,支持中文和英文 |
| string | 否 |
| 搜索模式,可选值见下表 |
| integer | 否 |
| 页码(从 1 开始) |
| integer | 否 |
| 每页结果数(最大 100) |
mode
值 | 说明 |
| 普通资源 |
| 成人资源 |
| 电影 |
| 音乐 |
| 剧集 |
| 瀑布流 |
| RSS |
| 排行榜 |
| 全部 |
输出示例
get_torrent_detail — 获取种子详情
根据种子 ID 获取完整的种子信息。
输入参数
参数 | 类型 | 必填 | 说明 |
| string | 是 | 种子 ID,如 |
输出示例
download_torrent — 下载种子文件
根据种子 ID 下载 .torrent 文件。
输入参数
参数 | 类型 | 必填 | 说明 |
| string | 是 | 种子 ID,如 |
输出示例
成功时:
失败时:
注意事项
本工具仅供个人学习和合法使用,请遵守 M-Team 的使用条款。
API Key 属于敏感信息,请勿将
.env文件提交到公开代码仓库。下载种子功能需要账号有足够的权限。
English Documentation
Introduction
M-Team MCP Server is a FastMCP-based MCP (Model Context Protocol) server that allows AI assistants (Claude, Cursor, etc.) to interact with the M-Team private torrent tracker API — enabling torrent search, detail retrieval, and .torrent file downloads.
Features
Tool | Description |
| Search torrents by keyword with optional category mode |
| Get full details for a torrent by its ID |
| Download a |
Installation
Prerequisites
Python 3.10 or higher
An M-Team account with a valid API Key
Steps
Clone or download this project:
Install dependencies:
Configure your API Key:
Copy .env_example to .env and fill in your M-Team API Key:
Edit .env:
You can obtain your API Key from M-Team's user settings page under API Key.
Optional Environment Variables
Variable | Default | Description |
| (required) | M-Team API authentication key |
|
| API base URL |
|
| Directory to save downloaded torrent files |
Integration with MCP Clients
Cursor / Claude Desktop
Add the following to your MCP client config file:
Alternatively, omit the
envblock and use a.envfile in the project directory — it will be loaded automatically.
FastMCP CLI
Direct Execution
Tool Reference
search_torrents — Search Torrents
Search for torrents on M-Team by keyword.
Input Parameters
Parameter | Type | Required | Default | Description |
| string | Yes | — | Search keyword (Chinese or English) |
| string | No |
| Search mode (see table below) |
| integer | No |
| Page number (1-based) |
| integer | No |
| Results per page (max 100) |
Available
Value | Description |
| General resources |
| Adult content |
| Movies |
| Music |
| TV shows |
| Waterfall view |
| RSS |
| Rankings |
| All categories |
Example Output
get_torrent_detail — Get Torrent Details
Retrieve full information for a specific torrent.
Input Parameters
Parameter | Type | Required | Description |
| string | Yes | Torrent ID, e.g. |
Example Output
download_torrent — Download Torrent File
Download a .torrent file for the given torrent ID.
Input Parameters
Parameter | Type | Required | Description |
| string | Yes | Torrent ID, e.g. |
Example Output
On success:
On failure:
License & Disclaimer
This project is for personal and lawful use only. Please comply with M-Team's Terms of Service.
Your API Key is sensitive — never commit your .
Torrent downloads require sufficient account privileges on M-Team.