
Sauce Api Mcp
io.github.saucelabs由 GitHub 账号 saucelabs 发布v1.3.0更新于 Oct 30, 2026
An open-source MCP server that provides LLM access to the Sauce Labs API
概览
开源 MCP 服务器,让助手访问 Sauce Labs 测试平台,查看账户、设备云、测试任务、构建、存储与隧道。
- 可以做什么
- 查看账户、用户、团队与服务账户信息
- 浏览真实设备与虚拟设备及其实时状态
- 查看测试任务、构建及日志、视频、HAR 网络抓包等任务产物
- 管理 Sauce Storage 文件与存储组设置
- 查看 Sauce Connect 隧道及其当前任务
- RDC 服务器还可创建与关闭设备会话、安装与启动应用、截图、执行 adb shell 命令、推送与拉取文件、抓取网络流量、启动 Appium 或 WebDriverAgent
- 适用场景
- 适合使用 Sauce Labs 进行自动化测试的团队,希望助手用自然语言排查失败任务、分析构建、查找可用设备,或在真实设备上操作会话与安装应用时使用。
- 运行要求
- 本地 Python 包(需 Python 3.10+ 与 pip),从 PyPI 安装,通过 stdio 由 Claude Desktop、Gemini CLI 或 Goose 等 MCP 客户端启动。需要具备 API 访问权限的 Sauce Labs 账户,并设置 SAUCE_USERNAME 与 SAUCE_ACCESS_KEY 环境变量;可选 SAUCE_REGION 与 SAUCE_MCP_MAX_RESPONSE_ITEMS。需能访问 Sauce Labs API。
安装
在 SourceWeft 中
- 打开 控制台中的 Sauce Api Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Sauce Labs MCP Server
A Model Context Protocol (MCP) server that provides comprehensive integration with the Sauce Labs testing platform. This package includes two complementary MCP servers enabling AI assistants to interact with Sauce Labs' device cloud, manage test jobs, analyze builds, and monitor testing infrastructure through natural language conversations.
[!TIP] Prefer a hosted, more feature-rich option? Sauce MCP is the official MCP server hosted by Sauce Labs at
https://mcp.saucelabs.com. There is nothing to install or update, and it offers a broader tool set than this package, including live real-device control (tap, type, screenshot, app install/launch), network capture, and AI-powered test case authoring, execution, and scheduling. See Connect your AI client for setup instructions.
Servers
This package provides two separate MCP servers optimized for different use cases:
sauce-api-mcp (Core Server) — Full Sauce Labs API integration for account management, device discovery, job analysis, builds, storage, and tunnels.
sauce-api-mcp-rdc (RDC Server) — Real Device Cloud (RDC) focused server. Dynamically generates MCP tools at startup
from the official Sauce Labs OpenAPI spec using FastMCP with an OpenAPIProvider,
so the tool set is always up-to-date without code changes. Includes a small set of handwritten tools for endpoints that
need special handling (binary payloads, session lifecycle, app installation polling).
Both servers can be configured simultaneously in your LLM client for full Sauce Labs coverage.
Features
🚀 Core Capabilities
- Account Management: View account details, team information, and user permissions
- Device Cloud Access: Browse 300+ real devices (iOS, Android) and virtual machines
- Test Job Management: Retrieve recent jobs, analyze test results, and debug failures
- Build Monitoring: Track build status, view job collections, and analyze test suites
- Storage Management: Manage uploaded apps and test artifacts
- Tunnel Monitoring: Check Sauce Connect tunnel status and configuration
🔧 Advanced Features
- Real-time Device Status: Monitor device availability and usage across data centres
- Cross-platform Testing: Support for both Virtual Device Cloud (VDC) and Real Device Cloud (RDC)
- Test Analytics: Detailed job information including logs, videos, and performance metrics
- Team Collaboration: Multi-team support with proper access controls
- Dynamic RDC API:
sauce-api-mcp-rdcauto-discovers the latest RDC v2 endpoints from the OpenAPI spec at startup; the cached spec is used as a fallback when the network is unavailable - Response shaping: Large API list responses are automatically truncated to keep LLM context budget under control (
configurable via
SAUCE_MCP_MAX_RESPONSE_ITEMS) - File safety: File push/pull operations on devices are restricted to
~/.sauce-mcp/files/to prevent path traversal
Prerequisites
- Python 3.10+
pip- Sauce Labs account with API access
- Claude Desktop, Gemini CLI, Goose, or another MCP-compatible LLM client
Installation
Install the package from PyPI:
This installs both servers and registers their command-line entry points:
sauce-api-mcp— core serversauce-api-mcp-rdc— RDC OpenAPI server
Verify installation:
Configuration for LLM Clients
Claude Desktop (Mac / Linux / Windows)
-
Locate your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Find your Python installation's
bindirectory: -
Add both servers to your config:
-
Restart Claude Desktop to load the servers.
Gemini CLI
Add to ~/.gemini/settings.json:
Goose
Add to ~/.config/goose/config.yaml:
Environment Variables (Alternative)
Instead of adding credentials to config files, you can export them as environment variables:
Then omit the env block from your config. Both servers will automatically pick them up.
Configuration
Required Environment Variables
Optional Environment Variables
Getting Your Sauce Labs Credentials
- Log into your Sauce Labs account
- Navigate to Account → User Settings
- Copy your Username and Access Key
Troubleshooting Installation
"Command not found: sauce-api-mcp"
The entry point script isn't in your PATH. Use the full path approach:
"ENOENT: no such file or directory" in MCP client
The MCP client is using a different Python environment. Solutions:
- Use the full absolute path (recommended) — update your config with the path printed by
python3 -c "import sys; print(sys.prefix + '/bin/sauce-api-mcp')", not justwhich sauce-api-mcp - Module invocation (fallback):
Example Prompts
- "Show me my recent test failures"
- "Find available iPhone 16 devices"
- "Analyse the performance of my latest build"
- "Open a session on a Samsung device and install my app"
- "What tunnels do I have running right now?"
Available Tools
Core Server (sauce-api-mcp)
Account & Organisation
Device Management
Test Jobs
Builds
Storage
Tunnels
Test Assets & Logs
RDC Server (sauce-api-mcp-rdc)
The RDC server auto-generates tools from the Sauce Labs RDC v2 OpenAPI spec. The full tool list varies as the spec evolves, but the categories below are always present.
Session Management
Device Discovery
App Management
Device Interaction
File Operations
Network & Proxy
Appium
Development Setup
Prerequisites
- Python 3.10+
uvpackage manager- Git
Clone and Setup
This creates a virtual environment and installs all dependencies (including test extras) in editable mode.
Project Structure
Running the Servers Locally
Both will print Error: This server is not meant to be run interactively — this is expected (they communicate over
stdio with MCP clients, not the terminal).
To point your MCP client at a local development checkout:
Running Tests
Tests are split into three groups:
Adding Dependencies
CI / Release Workflow
Continuous Integration
Every pull request targeting main runs three sequential jobs via build.yml:
- test — integration tests across Python 3.10, 3.11, 3.12 (in parallel)
- test-live — live tests on Python 3.12 (after
test) - test-slow — slow tests on Python 3.12 (after
test-live)
Releases
Releases are triggered manually via the Release workflow (publish.yml) in GitHub Actions:
- Go to Actions → Release → Run workflow
- Choose the release type:
patch,minor,major, orprerelease - For pre-releases, optionally set the token (
alpha,beta,rc)
The workflow then:
- Bumps the version in
pyproject.tomlandserver.jsonusingpython-semantic-release - Creates a
v*git tag and a GitHub Release with auto-generated changelog - Publishes stable releases to PyPI and the MCP Registry
- Publishes pre-releases (alpha/beta/rc) to TestPyPI only
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Getting Help
- Sauce Labs Documentation: docs.saucelabs.com
- API Reference: docs.saucelabs.com/dev/api
- Support: Contact Sauce Labs support through your account dashboard
- GitHub Issues: Report bugs or request features
Changelog
For a full history of releases and changes, see the GitHub Releases page.
v1.1.0
- Merged
sauce-api-mcpandsauce-labs-mcp(RDC OpenAPI) into single monorepo package - Added
sauce-api-mcp-rdcentry point for the RDC-focused server - Migrated RDC server from deprecated
FastMCPOpenAPItoOpenAPIProvider + FastMCP(fastmcp 3.x) - Automated release workflow via
workflow_dispatchwithpython-semantic-release; release type chosen by the author ( patch/minor/major/prerelease) - CI split into three sequential stages: integration tests (matrix 3.10–3.12) → live tests → slow tests
- Locked dependencies with
uv.lockfor reproducible installs
v1.0.3
- Updated to Apache License 2.0 (previously MIT)
v1.0.2
- Submitted to official MCP Registry
- Added Python 3.9 support
v1.0.1
- Overhauled README with improved install instructions
v1.0.0
- Initial release with full Sauce Labs API integration
Made with ❤️ for the testing community
License
Apache 2.0 (versions 1.1.0+)
Versions prior to 1.0.3 were released under the MIT License.
Disclaimer of Warranties
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Limitation of Liability
IN NO EVENT SHALL SAUCE LABS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
General Use
The MCP Server is provided as a free and open-source tool to facilitate interaction with publicly available APIs. Users are free to modify and distribute the software under the terms of the Apache License 2.0.
By using this software, you acknowledge that you are doing so at your own risk and that you are responsible for your own compliance with all applicable laws and regulations.
Indemnification
You agree to indemnify and hold harmless Sauce Labs, Inc. ("Sauce Labs"), its officers, directors, employees, and agents from and against any and all claims, liabilities, damages, losses, or expenses, including reasonable attorneys' fees and costs, arising out of or in any way connected with your access to or use of this software.
This includes, but is not limited to:
-
Your Interaction with Third-Party LLM Providers: You acknowledge that this software utilises publicly available APIs for interaction with a Large Language Model (LLM). You are solely responsible for your use of any third-party LLM services, including your adherence to the terms and conditions of the LLM provider and any costs associated with your use, such as token fees. Sauce Labs has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third-party LLM providers.
-
Content Generated by the LLM: You are solely responsible for the content generated, received, or transmitted through your use of the MCP Server and the underlying LLM. Sauce Labs does not endorse and has no control over the content of communications made by you or any third party through the server.
-
Your Code and Modifications: Any modifications, enhancements, or derivative works you create based on the MCP Server are your own, and you are solely responsible for their performance and any liabilities that may arise from their use.
来源:README.md,提交 1dbdcf7
工具
0版本历史
2- v1.3.0最新Oct 22, 2026
- v1.2.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分