# MCP Server

Work on your Roboflow projects together with AI. Connect Claude Code (or any MCP-compatible agent) to your workspace. It can create projects, upload data, train models, build Workflows, and guide you through the visual steps in the Roboflow UI. You handle what you're best at (seeing, labeling, judging results), your agent handles the rest.

## Demo

{% embed url="<https://www.loom.com/share/1692bda4cfb242bb9a1041129230dfeb>" %}

<https://mcp.roboflow.com/>

## Adding MCP

### Claude Code CLI

```bash
claude mcp add roboflow \
  --transport http https://mcp.roboflow.com/mcp \
  --header "x-api-key: YOUR_ROBOFLOW_API_KEY" \
  --header "Accept: application/json, text/event-stream"
```

### MCP Client

For any other MCP client (including Claude Desktop app) you can add Roboflow MCP server to your config (eg. `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "roboflow": {
      "type": "http",
      "url": "https://mcp.roboflow.com/mcp",
      "headers": {
        "x-api-key": "YOUR_ROBOFLOW_API_KEY",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}
```

You can find your Roboflow API Key at [app.roboflow.com/settings/api](https://app.roboflow.com/settings/api)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/developer/mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
