ultralytics-mcp
The ultralytics-mcp server lets you manage computer vision workflows end-to-end on the Ultralytics Platform:
Projects — list, get details (by id, slug, username/slug, or ul:// URI), create, and soft-delete projects.
Datasets — list, get, create, and soft-delete datasets; ingest data from remote URLs or upload local archive files to start ingest jobs.
Models — list models within a project, get model details, run inference on an image URL or base64 source (with configurable confidence, IoU, and image size), and download trained model weights.
Training — start cloud training jobs (requires explicit confirm_cost: true) and monitor training status/progress.
Exports — list export jobs, get status of a specific export, and create new export jobs in a specified format (requires confirm_cost: true).
Infrastructure — check current cloud GPU stock availability by GPU type.
Explore — search public projects and datasets on Ultralytics Explore.
Provides tools for browsing, creating projects, datasets, models, running predictions, exports, monitoring training, and checking GPU availability on the Ultralytics platform.
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., "@ultralytics-mcplist my projects"
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.
Ultralytics Platform MCP
MCP server for Ultralytics Platform workflows: projects, datasets, models, training, prediction, exports, and dataset uploads.
Independent community project. Not affiliated with or endorsed by Ultralytics.
Demo
https://github.com/user-attachments/assets/9e049bcd-e562-4a1b-a4de-e9fe70af6d43
Related MCP server: Roboflow MCP Server
Table of Contents
Requirements
Node.js
>=20Ultralytics Platform API key
ffmpegandffprobeonPATHto upload a dataset from a local video fileClaude Code, Codex, or another MCP client that can launch stdio servers
Get API Key
Sign in at Ultralytics Platform.
Open
Settings -> API Keys.Create or copy an API key.
See the official Ultralytics API key docs for key creation, usage, and revocation details.
Environment Variables
Variable | Required | Description |
| ✅ | Ultralytics API key. Expected format: |
| ❌ | Advanced: override API base URL. Default: |
Treat ULTRALYTICS_API_KEY as a bearer token. Pass it through your MCP client's
environment configuration only. Never paste real keys into prompts, scripts, or
committed config files. Project-scoped .mcp.json files are ignored by this repo
to reduce accidental key commits; if a key is exposed, revoke it in Ultralytics
Platform and create a replacement.
Installation
Standard Config
Works in many MCP clients that accept JSON stdio server definitions.
{
"mcpServers": {
"ultralytics": {
"command": "npx",
"args": ["-y", "ultralytics-mcp@latest"],
"env": {
"ULTRALYTICS_API_KEY": "ul_your_api_key_here"
}
}
}
}Add via the Antigravity settings or by updating your configuration file:
{
"mcpServers": {
"ultralytics": {
"command": "npx",
"args": ["-y", "ultralytics-mcp@latest"],
"env": {
"ULTRALYTICS_API_KEY": "ul_your_api_key_here"
}
}
}
}Add server with Claude Code CLI:
claude mcp add ultralytics --env ULTRALYTICS_API_KEY=ul_your_api_key_here -- npx -y ultralytics-mcp@latestOr add a project-scoped server in repo-root .mcp.json:
{
"mcpServers": {
"ultralytics": {
"command": "npx",
"args": ["-y", "ultralytics-mcp@latest"],
"env": {
"ULTRALYTICS_API_KEY": "ul_your_api_key_here"
}
}
}
}Follow the MCP install guide, use the standard config above.
Add server with Codex CLI:
codex mcp add ultralytics --env ULTRALYTICS_API_KEY=ul_your_api_key_here -- npx -y ultralytics-mcp@latestOr add it directly to ~/.codex/config.toml:
[mcp_servers.ultralytics]
command = "npx"
args = ["-y", "ultralytics-mcp@latest"]
[mcp_servers.ultralytics.env]
ULTRALYTICS_API_KEY = "ul_your_api_key_here"Click the button to install:
Important The install button writes a placeholder key. After installing, open your Cursor MCP config and replace
ul_your_api_key_herewith your Ultralytics API key, then restart Cursor.
Or install manually:
Go to Cursor Settings -> MCP -> Add new MCP Server (or edit ~/.cursor/mcp.json directly) and use the standard config above: command set to npx, args set to ["-y", "ultralytics-mcp@latest"], and ULTRALYTICS_API_KEY in env.
Follow the MCP install guide, use the standard config above.
Click the button to install:
Important The install button writes a placeholder key. After installing, open your VS Code MCP config and replace
ul_your_api_key_herewith your Ultralytics API key, then restart VS Code.
Or install manually:
Follow the MCP install guide, use the standard config above. You can also install the server using the VS Code CLI:
# For VS Code
code --add-mcp '{"name":"ultralytics","command":"npx","args":["-y","ultralytics-mcp@latest"],"env":{"ULTRALYTICS_API_KEY":"ul_your_api_key_here"}}'After installation, the Ultralytics MCP server will be available for use with your GitHub Copilot agent in VS Code.
These examples track latest published npm release. Restart MCP client or session after upgrading so new server process picks up latest package.
Verify Setup
Claude Code
claude mcp listYou should see ultralytics in configured MCP servers.
Codex
codex mcp listYou should see ultralytics in configured MCP servers.
What You Can Do
Browse projects, datasets, models, exports, GPU availability
Resolve project and dataset refs by id, slug,
username/slug, orul://Search public projects and datasets on Ultralytics Explore
Start dataset ingest jobs and upload archive files, folders, or videos
Monitor training progress and inspect latest metrics or recent metric history
Run model prediction from image URL or base64 input
Download model weights to local path
Create exports and training jobs with explicit cost confirmation
Pass advanced YOLO training settings through
training_start.train_argsStart training from existing project models or official YOLO base checkpoints
Tools
See TOOLS.md for full parameter reference, safety notes, local-path behavior, and examples for tricky tools.
Projects: 5 tools
Datasets: 12 tools
Models: 5 tools
Training: 2 tools
Exports: 3 tools
Infrastructure: 1 tool
Safety
ULTRALYTICS_API_KEYis a bearer token; pass it via MCP clientenvand never commit real keysexport_createrequiresconfirm_cost: truetraining_startrequiresconfirm_cost: trueAmbiguous project or dataset refs fail instead of guessing
Signed upload and download URLs do not forward
AuthorizationLocal upload tools read files from the MCP client host; approve calls only for paths you expect to share with Ultralytics
model_downloadwrites to the requested local path; reviewoutput_pathandoverwritebefore approvingRe-uploading labeled copies may duplicate dataset image records instead of attaching labels to existing images
Images-only dataset uploads may be inferred as
classify; include labels when task preservation matters
Troubleshooting
Invalid API key
ULTRALYTICS_API_KEY must start with ul_ and contain exactly 40 hex
characters after prefix.
Server not loading in Claude Code
run
claude mcp listverify
npxand Node.js are installedverify
ULTRALYTICS_API_KEYwas passed with--envwhen adding serverif needed, inspect server config with
claude mcp get ultralytics
Server not loading in Codex
run
codex mcp listverify
npxand Node.js are installedverify
ULTRALYTICS_API_KEYvalue in~/.codex/config.tomlorcodex mcp addcommand
Manual server smoke test
ULTRALYTICS_API_KEY=ul_your_api_key_here npx -y ultralytics-mcp@latestIf command exits immediately with config error, fix environment first.
Platform API errors
For authentication, rate-limit, or endpoint behavior, compare against the official Ultralytics Platform REST API docs. When asking for help, include the tool name, request summary, response status, redacted response body, and a minimal reproduction. Do not include real API keys, signed URLs, private dataset contents, or private model artifacts.
Development
npm install
npm run check
npm test
npm run build
npm run generate:toolsMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/amanharshx/ultralytics-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server