> For the complete documentation index, see [llms.txt](https://docs.shortcutco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shortcutco.com/developers/mcp/connect-cursor-and-others.md).

# Connect Cursor and other clients

Connect Cursor, VS Code with GitHub Copilot, OpenAI Codex, Windsurf, any other MCP client, and your own agents to the Shortcut MCP server.

After this page, your editor, your coding agent, or your own agent can use the Shortcut tools: look up customers, read the schedule, and, if you allow it, create leads and book jobs. Each client connects to the same server:

```
https://api.shortcutco.com/mcp
```

For a workspace on Shortcut's dev environment, use `https://dev.shortcutco.com/api/mcp` in every example below, and name the server `shortcut-dev` so it sits beside production; see [Environments](https://docs.shortcutco.com/developers/concepts/conventions.md#environments).

In Shortcut, **Settings → API & integrations → Connect an AI app** has a tile for each client below, with its steps, this workspace's server URL, and copy buttons.

There are two ways to connect, and both need a company admin:

* **Sign in.** Cursor, VS Code, and Codex sign in to Shortcut with OAuth: your browser opens Shortcut's approval screen, you keep read access or choose **Work for you as an AI agent**, select **Approve**, and the client lists the tools that access allows. There is no token to copy. The client shows under **Settings → API & integrations → Connected apps**, where you can disconnect it.
* **API token.** You create a token in **Settings → API & integrations** and the client sends it in the `Authorization` header. Use this for Windsurf, for clients without sign-in, for your own agents, or when a client needs scopes other than the two sign-in offers. Start with **Read everything**, and keep the token in an environment variable rather than in a file you might commit. The token examples read it from `SHORTCUT_TOKEN`:

```bash
export SHORTCUT_TOKEN="scut_live_paste_your_token_here"
```

## Cursor

Cursor signs in to Shortcut.

1. In Shortcut's **Connect an AI app** section, select the Cursor tile, then **Add to Cursor**. Or paste this install link into your browser's address bar:

   ```
   cursor://anysphere.cursor-deeplink/mcp/install?name=Shortcut&config=eyJ1cmwiOiJodHRwczovL2FwaS5zaG9ydGN1dGNvLmNvbS9tY3AifQ%3D%3D
   ```

   Select **Install** in Cursor. To add the server by hand instead, put it in `~/.cursor/mcp.json` for every project, or `.cursor/mcp.json` in one project:

   ```json
   {
     "mcpServers": {
       "shortcut": { "url": "https://api.shortcutco.com/mcp" }
     }
   }
   ```
2. Open **Cursor Settings → MCP** and select **Connect** next to Shortcut.
3. Your browser opens Shortcut. Sign in if asked, then select **Approve**.

On Cursor teams with an MCP allowlist, an admin allows the server URL first.

To use a token instead, add a header to the same entry. Cursor reads `${env:SHORTCUT_TOKEN}` from the environment it was started in, so set the variable in your shell profile and restart Cursor:

```json
{
  "mcpServers": {
    "shortcut": {
      "url": "https://api.shortcutco.com/mcp",
      "headers": { "Authorization": "Bearer ${env:SHORTCUT_TOKEN}" }
    }
  }
}
```

Cursor's guides: [Model Context Protocol](https://cursor.com/docs/context/mcp) and [install links](https://cursor.com/docs/mcp/install-links).

## VS Code

GitHub Copilot's agent mode in VS Code signs in to Shortcut.

1. In Shortcut's **Connect an AI app** section, select the VS Code tile, then **Install in VS Code**. Or paste this install link into your browser's address bar (for VS Code Insiders, start it with `vscode-insiders:` instead):

   ```
   vscode:mcp/install?%7B%22name%22%3A%22Shortcut%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.shortcutco.com%2Fmcp%22%7D
   ```

   Select **Install** in VS Code. To add it by hand instead, run **MCP: Open User Configuration** from the Command Palette and add:

   ```json
   {
     "servers": {
       "shortcut": { "type": "http", "url": "https://api.shortcutco.com/mcp" }
     }
   }
   ```
2. Start the server: select **Start** above Shortcut in the configuration, or run **MCP: List Servers** and start it there.
3. When VS Code asks to authenticate Shortcut, select **Allow**.
4. Your browser opens Shortcut. Sign in if asked, then select **Approve**.
5. In Copilot Chat's agent mode, turn on the Shortcut tools in the tool picker.

On Copilot Business and Enterprise, an organization admin turns on the **MCP servers in Copilot** policy first.

To use a token instead, add an input that prompts for it once; VS Code stores it securely:

```json
{
  "inputs": [
    { "type": "promptString", "id": "shortcut-token", "description": "Shortcut API token", "password": true }
  ],
  "servers": {
    "shortcut": {
      "type": "http",
      "url": "https://api.shortcutco.com/mcp",
      "headers": { "Authorization": "Bearer ${input:shortcut-token}" }
    }
  }
}
```

VS Code's guide: [MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers).

## Codex

OpenAI Codex signs in to Shortcut. Run this in a terminal:

```bash
codex mcp add shortcut --url https://api.shortcutco.com/mcp
codex mcp login shortcut
```

Your browser opens Shortcut. Sign in if asked, then select **Approve**. The Codex IDE extension reads the same `~/.codex/config.toml`, so this connects it too.

To use a token instead, name the variable that holds it in `~/.codex/config.toml`:

```toml
[mcp_servers.shortcut]
url = "https://api.shortcutco.com/mcp"
bearer_token_env_var = "SHORTCUT_TOKEN"
```

Codex's guide: [MCP in Codex](https://developers.openai.com/codex/mcp).

## Windsurf

Windsurf connects with a token.

1. In Shortcut, create a token named `Windsurf` with **Read everything**, and copy it.
2. In Windsurf, open Cascade's **MCP servers** settings and select **View raw config**.
3. Add Shortcut with your token in place of `YOUR_TOKEN`, then save:

   ```json
   {
     "mcpServers": {
       "shortcut": {
         "serverUrl": "https://api.shortcutco.com/mcp",
         "headers": { "Authorization": "Bearer YOUR_TOKEN" }
       }
     }
   }
   ```
4. Refresh the server list.

Teams with an MCP allowlist allow the server ID `shortcut` first. Windsurf's guide: [MCP in Cascade](https://docs.devin.ai/desktop/cascade/mcp).

## Other apps

Any MCP client that supports remote servers connects the same way:

1. Add a remote MCP server (Streamable HTTP) with the server URL.
2. If the app offers sign-in (OAuth), choose it and leave any client ID and secret empty. Shortcut registers the app on its own.
3. If it doesn't, create a token and have the app send it as `Authorization: Bearer YOUR_TOKEN`.

Apps that only run local servers connect through `mcp-remote`, which runs on your computer and needs Node.js. With sign-in:

```json
{
  "mcpServers": {
    "shortcut": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.shortcutco.com/mcp"] }
  }
}
```

With a token, pass the header through `env`; write it with no space after the colon, because some apps split arguments on spaces:

```json
{
  "mcpServers": {
    "shortcut": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.shortcutco.com/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer scut_live_paste_your_token_here" }
    }
  }
}
```

`mcp-remote`'s guide: [README](https://github.com/geelen/mcp-remote#readme).

## Your own agent

### MCP TypeScript SDK

```ts
// agent.mjs: Node 18 or later. npm install @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(new URL("https://api.shortcutco.com/mcp"), {
  requestInit: { headers: { Authorization: `Bearer ${process.env.SHORTCUT_TOKEN}` } },
});
const client = new Client({ name: "my-shortcut-agent", version: "1.0.0" });
await client.connect(transport);

const { tools } = await client.listTools();
console.log(tools.map((tool) => tool.name));

const schedule = await client.callTool({ name: "get_schedule", arguments: {} });
console.log(JSON.stringify(schedule.structuredContent, null, 2));
await client.close();
```

### Claude API

The Messages API connects to remote MCP servers itself. Put the token in the server entry's authorization token field; Claude sends it as the bearer token:

```bash
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 1024,
    "mcp_servers": [
      { "type": "url", "url": "https://api.shortcutco.com/mcp", "name": "shortcut", "authorization_token": "'"$SHORTCUT_TOKEN"'" }
    ],
    "tools": [{ "type": "mcp_toolset", "mcp_server_name": "shortcut" }],
    "messages": [{ "role": "user", "content": "What is on the schedule today, by crew?" }]
  }'
```

Anthropic's guide: [MCP connector](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector).

### OpenAI Agents SDK

```python
# agent.py: pip install openai-agents
import asyncio, os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main():
    async with MCPServerStreamableHttp(
        name="shortcut",
        params={
            "url": "https://api.shortcutco.com/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['SHORTCUT_TOKEN']}"},
        },
    ) as shortcut:
        agent = Agent(name="Dispatcher", instructions="Answer questions about the Shortcut schedule.", mcp_servers=[shortcut])
        result = await Runner.run(agent, "What is on the schedule today, by crew?")
        print(result.final_output)

asyncio.run(main())
```

OpenAI's guide: [MCP in the Agents SDK](https://openai.github.io/openai-agents-python/mcp/).

## Plain HTTP

The server keeps no session, so any HTTP client can call a tool in one request. See [MCP overview](https://docs.shortcutco.com/developers/mcp/overview.md#protocol-details) for the headers and a `curl` example.

## Troubleshooting

* **Sign-in says "Ask a company admin".** Only company admins can approve a connection.
* **Sign-in says the account isn't in a workspace.** Select **Sign in with another account** and sign in as a company admin of the workspace.
* **No tools, or `401`.** The header must be `Bearer` , one space, then the whole token. Check the variable is set in the environment the client was started from.
* **A tool is missing.** The token lacks its scope. Ask the agent to call `explain_scopes`.
* **`403` "Requests from this origin are not allowed."** The server accepts browser requests only from Claude's web apps. Run your client from a server, a desktop app, or a script, which send no `Origin` header.
