# Connect your AI

> Drive SpecRoll from Claude Code, Cursor or any MCP client — search, read and edit your projects, and make videos, with your own access.

Source: https://docs.specroll.ai/ai/connect-your-ai/

SpecRoll runs a **Model Context Protocol (MCP)** server. Connect an AI client to it and that client can do what you do in SpecRoll:
search products, read and edit your projects, write scripts, and start generation — *"with exactly the access you have here."*

> **Early access:** Creating a connection token is rolling out gradually. If you don't see **Settings → MCP (Claude Code)** yet, ask the SpecRoll team for access.

## Connect

1. In SpecRoll, open **Settings → MCP (Claude Code)** and press **Generate token**.
   Copy it straight away — *"It is shown only once"* — and note when it expires (tokens last 30 days).

2. Add SpecRoll to your client.

   **Claude Code:**

   ```sh
   claude mcp add --transport http specroll https://play.specroll.ai/api/mcp \
     --header "Authorization: Bearer YOUR_TOKEN"
   ```
   
   **JSON config (Cursor & others):**

   ```json
   {
     "mcpServers": {
       "specroll": {
         "type": "http",
         "url": "https://play.specroll.ai/api/mcp",
         "headers": { "Authorization": "Bearer YOUR_TOKEN" }
       }
     }
   }
   ```
   

3. Ask your assistant to do something.

> **Treat the token like a password:** A token lets a client act as you until it expires — including tools that **spend your credits**.
> Keep it out of shared files, repos and chats. Tokens can't be cancelled one at a time yet: if one leaks, tell the SpecRoll team.

## Try it

> **Prompt:** List my SpecRoll projects and tell me which ones are ready to export

> **Prompt:** In my "Best ACs Mumbai" project, rewrite the hook to open on the electricity bill, then show me the new line

> **Prompt:** Start a new SpecRoll video: best budget earbuds for gym use in Hyderabad, Hinglish, portrait

> **Prompt:** How many credits would it take to finish the shots in my latest project?

## Which clients work

| Client | Works today? |
|---|---|
| Claude Code | Yes — the command above |
| Cursor, VS Code, and other clients that accept an HTTP server with headers | Yes — the JSON config |
| Claude.ai and ChatGPT connectors | Not yet — they sign in with OAuth, which SpecRoll's server doesn't offer yet |

> **Tip:** Just want to ask an assistant *about* SpecRoll? No token needed — use **Open in Claude / ChatGPT** on any docs page, or see [Docs for AI agents](https://docs.specroll.ai/ai/docs-for-ai/).
