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/mcpFor 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.
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
Authorizationheader. 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 fromSHORTCUT_TOKEN:
export SHORTCUT_TOKEN="scut_live_paste_your_token_here"Cursor
Cursor signs in to Shortcut.
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%3DSelect Install in Cursor. To add the server by hand instead, put it in
~/.cursor/mcp.jsonfor every project, or.cursor/mcp.jsonin one project:{ "mcpServers": { "shortcut": { "url": "https://api.shortcutco.com/mcp" } } }Open Cursor Settings → MCP and select Connect next to Shortcut.
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:
Cursor's guides: Model Context Protocol and install links.
VS Code
GitHub Copilot's agent mode in VS Code signs in to Shortcut.
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):Select Install in VS Code. To add it by hand instead, run MCP: Open User Configuration from the Command Palette and add:
Start the server: select Start above Shortcut in the configuration, or run MCP: List Servers and start it there.
When VS Code asks to authenticate Shortcut, select Allow.
Your browser opens Shortcut. Sign in if asked, then select Approve.
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:
VS Code's guide: MCP servers in VS Code.
Codex
OpenAI Codex signs in to Shortcut. Run this in a terminal:
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:
Codex's guide: MCP in Codex.
Windsurf
Windsurf connects with a token.
In Shortcut, create a token named
Windsurfwith Read everything, and copy it.In Windsurf, open Cascade's MCP servers settings and select View raw config.
Add Shortcut with your token in place of
YOUR_TOKEN, then save:Refresh the server list.
Teams with an MCP allowlist allow the server ID shortcut first. Windsurf's guide: MCP in Cascade.
Other apps
Any MCP client that supports remote servers connects the same way:
Add a remote MCP server (Streamable HTTP) with the server URL.
If the app offers sign-in (OAuth), choose it and leave any client ID and secret empty. Shortcut registers the app on its own.
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:
With a token, pass the header through env; write it with no space after the colon, because some apps split arguments on spaces:
mcp-remote's guide: README.
Your own agent
MCP TypeScript SDK
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:
Anthropic's guide: MCP connector.
OpenAI Agents SDK
OpenAI's guide: MCP in the Agents SDK.
Plain HTTP
The server keeps no session, so any HTTP client can call a tool in one request. See MCP overview 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 beBearer, 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 noOriginheader.
Last updated