CmdShiftR for developers
Read your workspace’s audits, issues, keyword trackers, AI answer tracking and alerts from your own code, or let an AI assistant read them through the MCP server. Both are read-only and included in the Pro and Agency plans.
1. Create an API key
In the app, open Connections and keys → API and MCP and click Create key. The key is shown once; store it like a password. Workspace owners and admins can create up to 10 keys and revoke them at any time. Each key reads only its own workspace.
Send the key with every request as Authorization: Bearer csr_api_….
2. Read API
Base URL https://cmdshiftr.app/v1. Every endpoint answers JSON. Audits older than your plan’s history window aren’t returned.
| Endpoint | Returns |
|---|---|
GET /v1/projects | Your projects (sites and apps). |
GET /v1/audits?domain=&limit= | Audits, newest first: pages, site health, AI search health, errors, warnings and notices. |
GET /v1/audits/latest?domain= | The latest audit of a domain, as below. |
GET /v1/audits/{id} | One audit: scores, key checks, change since the previous audit and the top issues with how to fix them. |
GET /v1/audits/{id}/issues?severity=&rows= | Every issue with why it matters, how to fix it and example URLs (rows per issue, up to 500). |
GET /v1/audits/{id}/pages?limit=&offset= | The pages checked: status, title, description, H1, words, speed, indexability and links (up to 1,000 a call). |
GET /v1/keywords | Keyword trackers and the searches they track. |
GET /v1/ai-visibility?campaign= | AI answer tracking: mention rates for your brand and competitors, the latest run and a 30-run trend. |
GET /v1/rankings?domain= | Rank tracker: Google positions in the top 100 for your keywords, for your domain and competitors. |
GET /v1/alerts?limit= | Recent alerts. |
curl -H "Authorization: Bearer $CMDSHIFTR_KEY" \
"https://cmdshiftr.app/v1/audits/latest?domain=example.com"
Limits: 60 requests a minute per key (120 on Agency). Over the limit you get HTTP 429 with a Retry-After header. Errors come back as {"error": "…"} with 401 (bad key), 402 (plan), 404 (not found) or 429.
3. MCP server for AI assistants
The server is at https://cmdshiftr.app/mcp (Streamable HTTP, stateless). Connect with a sign-in, or with an API key. Step-by-step setup for each app, the ready-made commands and example questions are on the MCP server page.
Sign in (Claude.ai, ChatGPT and other connectors)
Add https://cmdshiftr.app/mcp as a custom connector, for example in Claude.ai under Settings → Connectors. The app opens a CmdShiftR page: sign in, pick a workspace on the Pro or Agency plan where you are an owner or admin, and click Allow read access. No key to copy. You can disconnect the app at any time in Connections and keys → API and MCP → Connected apps.
For developers: standard OAuth 2.1 with PKCE (S256) and dynamic client registration. Discovery at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. Access tokens last an hour; refresh tokens last 30 days and are replaced on every use. The same tokens work on the read API.
API key (Claude Code, Cursor, scripts)
Clients that can send a custom header can use an API key instead.
Claude Code:
claude mcp add --transport http cmdshiftr https://cmdshiftr.app/mcp \
--header "Authorization: Bearer csr_api_…"
Clients configured with JSON (Cursor, Windsurf and others):
{
"mcpServers": {
"cmdshiftr": {
"type": "http",
"url": "https://cmdshiftr.app/mcp",
"headers": { "Authorization": "Bearer csr_api_…" }
}
}
}
| Tool | What the assistant can read |
|---|---|
list_projects | Projects in the workspace. |
list_audits | Audits, optionally for one domain. |
get_audit | An audit’s scores and top issues (by id, or the latest for a domain). |
get_audit_issues | Every issue with fixes and example URLs. |
get_audit_pages | The pages checked in an audit. |
list_keyword_trackers | Keyword trackers. |
get_ai_visibility | AI answer tracking results and trend. |
get_rankings | Rank tracker positions, changes and trend. |
list_alerts | Recent alerts. |
Try asking: “What should I fix first on example.com?”, “Did site health drop since the last audit?” or “How often do AI assistants mention us compared with competitors?”
Security
Keys and sign-in tokens are stored only as SHA-256 hashes, so we can’t show a key again; create a new one if it’s lost. The API and MCP server only read data: they can’t start audits, run AI checks, change settings or see other workspaces. Revoking a key or disconnecting an app stops it at once.
Get a key
Start a Pro trial, then create a key in Connections and keys.
See plansLast updated