Connect an AI assistant
Connect Claude, ChatGPT, Codex, Cursor or another assistant, check it works, and teach it your preferences.
Reviewed 24 Oct 2026
Connect an AI assistant
ShortZen speaks the Model Context Protocol (MCP), so an AI assistant can find, create and measure your links when you ask in your own words. Every tool works on every plan, including Free, within your plan’s limits.
Most assistants log in: you add ShortZen's address, a ShortZen screen opens, and you choose the workspace and tick what it may do. The address is https://shortzen.io/api/mcp. Use it exactly as written: it does not redirect, and an assistant that is redirected can drop its credentials.
Settings, AI assistants walks you through it for the assistant you pick, and shows whether each connected assistant is working.
Pick your assistant
| Assistant | Connects by | Needs |
|---|---|---|
| Claude Code | Logs in | Works on every ShortZen plan. |
| Claude | Logs in | Claude on the web, desktop or mobile, on any plan; Free allows one custom connector. On Team and Enterprise an Owner adds ShortZen once, then each member presses Connect. |
| ChatGPT | Logs in | ChatGPT Business, Enterprise or Edu, on the web. Pro can read only, and Plus cannot add one. On Business an admin or owner adds it. |
| Codex | Logs in | The Codex CLI, the IDE extension and the Codex app share one setting, so adding it once covers all three. |
| Cursor | An API key | Cursor cannot log in to ShortZen yet, so it uses an API key. The key stays in your environment, not in the link or a file. |
| VS Code | Logs in | Visual Studio Code with GitHub Copilot in agent mode. |
| Grok | Logs in, or an API key | Grok lets you add a custom connector; ShortZen has not tested its log in yet. The Grok Build CLI uses an API key. |
| Another app | Logs in, or an API key | Any app that adds an MCP server by its address. It logs in to ShortZen; an app that can only send a header uses an API key. |
Claude Code
Works on every ShortZen plan.
- Run this in a terminal. --scope user makes ShortZen available in every project.
- In Claude Code, type /mcp, choose shortzen, then Authenticate.
- On the ShortZen screen, pick the workspace and tick what it may do. Deleting stays off unless you tick it.
claude mcp add --scope user --transport http shortzen https://shortzen.io/api/mcpTo check it: /mcp lists shortzen as connected, with its 11 tools. Then ask it "Use ShortZen to describe my workspace."
Logged out or expired: type /mcp, choose shortzen, then Re-authenticate. To remove it, run claude mcp remove shortzen.
Claude
Claude on the web, desktop or mobile, on any plan; Free allows one custom connector. On Team and Enterprise an Owner adds ShortZen once, then each member presses Connect.
- Copy the address.
- In Claude, open Customize, then Connectors, then Add custom connector. Name it ShortZen and paste the address.
- Press Connect and log in to ShortZen.
https://shortzen.io/api/mcpTo check it: ShortZen shows as connected under Connectors. Then ask it "Use ShortZen to describe my workspace."
If logging in fails, remove the connector and add it again: Claude cannot edit a connector's sign-in. To remove it, open Customize, then Connectors, then ShortZen, then Remove.
ChatGPT
ChatGPT Business, Enterprise or Edu, on the web. Pro can read only, and Plus cannot add one. On Business an admin or owner adds it.
- Copy the address.
- In ChatGPT, open Plugins, press +, then Add custom MCP server. Name it ShortZen, paste the address and choose OAuth.
- Log in to ShortZen when ChatGPT asks.
https://shortzen.io/api/mcpTo check it: ShortZen appears in your plugins. Start a new chat for it. Then ask it "Use ShortZen to describe my workspace."
If its tools look out of date, an admin presses Refresh on the ShortZen plugin. To remove it, open Plugins, then ShortZen, then Delete.
Codex
The Codex CLI, the IDE extension and the Codex app share one setting, so adding it once covers all three.
- Add the server.
- Log in.
- On the ShortZen screen, pick the workspace and tick what it may do. Deleting stays off unless you tick it.
codex mcp add shortzen --url https://shortzen.io/api/mcpcodex mcp login shortzenTo check it: codex mcp list shows shortzen. Then ask it "Use ShortZen to describe my workspace."
Logged out or expired: run codex mcp login shortzen again. To remove it, run codex mcp remove shortzen.
Cursor
Cursor cannot log in to ShortZen yet, so it uses an API key. The key stays in your environment, not in the link or a file.
- Create a key for Cursor. Reading and changing links are ticked; leave deleting off unless you need it. In Settings, AI assistants, "Create a key for Cursor" opens the key form ready for it.
- Set it in the shell that starts Cursor, then restart Cursor.
- Add ShortZen to Cursor, or put this in ~/.cursor/mcp.json.
export SHORTZEN_API_KEY=sz_live_…{
"mcpServers": {
"shortzen": {
"url": "https://shortzen.io/api/mcp",
"headers": {
"Authorization": "Bearer ${env:SHORTZEN_API_KEY}"
}
}
}
}To check it: Cursor's MCP settings show shortzen turned on. The key's Last used changes after its first request. Then ask it "Use ShortZen to describe my workspace."
If Cursor lists it as failed, the variable was not set when Cursor started. Set it, then restart Cursor. To remove it, delete shortzen in Cursor's MCP settings, then revoke the key here.
VS Code
Visual Studio Code with GitHub Copilot in agent mode.
- Install ShortZen in VS Code, or put this in your mcp.json.
- VS Code asks you to log in to ShortZen the first time it uses it.
{
"servers": {
"shortzen": {
"type": "http",
"url": "https://shortzen.io/api/mcp"
}
}
}To check it: The MCP view shows shortzen running. Then ask it "Use ShortZen to describe my workspace."
Logged out: in the MCP view, restart shortzen and log in again. To remove it, uninstall shortzen in the MCP view.
Grok
Grok lets you add a custom connector; ShortZen has not tested its log in yet. The Grok Build CLI uses an API key.
- On grok.com, open Connectors, then New Connector, then Custom, and paste the address.
- For the Grok Build CLI instead, create a key, set it as SHORTZEN_API_KEY, then run: In Settings, AI assistants, "Create a key for Grok" opens the key form ready for it.
https://shortzen.io/api/mcpgrok mcp add --transport http shortzen https://shortzen.io/api/mcp --header "Authorization: Bearer ${SHORTZEN_API_KEY}"To check it: In the CLI, grok mcp list shows shortzen. Then ask it "Use ShortZen to describe my workspace."
In the CLI, grok mcp doctor names what failed. To remove it, run grok mcp remove shortzen, or delete the connector on grok.com.
Another app
Any app that adds an MCP server by its address. It logs in to ShortZen; an app that can only send a header uses an API key.
- Give the app this address.
- If it asks for a header instead, create a key and send it as: In Settings, AI assistants, "Create a key for Another app" opens the key form ready for it.
https://shortzen.io/api/mcpAuthorization: Bearer sz_live_…To check it: The app lists ShortZen's tools. Then ask it "Use ShortZen to describe my workspace."
Use the address exactly as written: ShortZen does not redirect it, and a redirected app can drop its key. To remove it, remove it in the app, then disconnect it or revoke its key here.
Check it works
Being added is not the same as working. Ask your assistant "Use ShortZen to describe my workspace." It only reads: it names your plan, your domains, folders and tags. In Settings, AI assistants, an assistant that has logged in reads Connected until its first request and Working after it. One that has not been used for a long time reads Expired: log in again from the assistant to reconnect.
Teach it your rules
ShortZen already tells your assistant how its tools work, so add only your own preferences: your usual domain, tags, folders and campaign values, and that it should ask before changing anything. Copy this and edit the parts in brackets.
## ShortZen
- Use the ShortZen tools for short links, link analytics and our domains.
- New links go on [go.example.com] unless I say otherwise.
- Tag links you create with [ai]. Put campaign links in the [Campaigns] folder.
- Add utm_source=[newsletter] to links for the newsletter.
- Show me the destination and wait for my yes before creating, changing or deleting a link.- Claude Code: paste it into CLAUDE.md.
- Claude: paste it into a Project's instructions.
- ChatGPT: paste it into a Project's instructions.
- Codex: paste it into AGENTS.md.
- Cursor: paste it into .cursor/rules/shortzen.mdc, with alwaysApply: true.
- VS Code: paste it into .github/copilot-instructions.md.
- Grok: paste it into AGENTS.md.
- Another app: paste it into the app's instructions.
What an assistant can do
| Tool | Does | Permission |
|---|---|---|
| links_search, links_get | Find links and read one. | links:read |
| analytics_link, analytics_workspace | Click numbers for one link, or for the workspace. | analytics:read |
| workspace_get, domains_list, usage_get | Describe the workspace (plan, default domain, domains, folders, tags), list domains, and show every plan limit with what is used. | workspace:read |
| links_create, links_update, links_set_active | Create, edit, pause or resume a link. | links:write |
| links_delete | Delete a link. The assistant is told to confirm with you first. | links:delete |
ShortZen does not visit a destination you create through an assistant. It checks the address against its safety screening but does not fetch the page, so a link's title stays empty until you or the assistant set one.
Limits and workspace access
Each assistant you connect can use up to 50% of your workspace's hourly API requests, so no single assistant can use the whole hour. When it reaches that, it is told how long to wait. You can connect up to 20 assistants across your workspaces; one that has expired or been disconnected does not count.
Workspace owners and admins can turn AI assistants off for the whole workspace, or disconnect every assistant in it at once, in Settings, AI assistants, Workspace access. While assistants are off, each one says so when asked to do something, and no one can connect a new one there. API keys keep working.
Permissions and plans
Everything an assistant does is checked the way a dashboard action is: your role, the permissions you ticked, your plan's limits and the audit log all apply. Every tool works on every plan, including Free, within your plan’s limits. A link an assistant creates counts toward your monthly links like any other. A viewer can connect an assistant to read only.
Give an assistant the least it needs
When something goes wrong
It says it needs authentication or failed to connect
Log in again from the assistant; each assistant's section above says how. If it keeps failing, remove ShortZen from the assistant and add it again.
It stays Connected and does not show Working
It has not called ShortZen yet. Ask it "Use ShortZen to describe my workspace." If it says it has no ShortZen tools, turn the server on in the assistant's settings.
It says it was not given a permission
The answer names the permission. Disconnect ShortZen in Settings, AI assistants, connect it again and tick that permission. An assistant using an API key needs a key with that scope.
It says the key is invalid, revoked or expired
Create a new key in Settings, Developers and use that. Keys made on a test workspace start with sz_test_.
It says the workspace reached its plan's limit
The answer names the limit and the plan that allows more. Ask the assistant how close you are to your limits to see them all.
A tool in the browser is refused
The address is for assistants and apps, not web pages: it refuses any request that carries a browser's Origin header.
Referrers and browsers come back empty
Those breakdowns are part of full analytics, on the Pro plan and above.