Claude Code, Cursor and other tools — personal tokens
Developer tools and scripts (Claude Code, Cursor, Windsurf, VS Code with MCP extensions, your own automations) usually do not connect through the sign-in screen but with a personal token — a long secret key you paste into the tool's settings. You create the token under Account → AI apps and choose its permissions yourself.
Note: A token is like a password — whoever has it can work with the site within the permissions you gave it. It is shown only once, when created. Do not send it in messages and do not put it in public repositories.
Where it is configured
On the dashboard open Account (/admin/account) and click the AI apps tab. The page has three cards:
| Card | Purpose |
|---|---|
| AI apps and connectors | Shows the connector address (https://www.emit.rs/mcp) with a Copy button and a link to the guide |
| Connected apps | Apps you approved through the sign-in screen (ChatGPT, Claude…), with connection date, last use and a Disconnect button |
| Personal tokens | The list of tokens and the form for creating a new one |
Step by step — creating a token
- Open Account → AI apps and scroll to the Personal tokens card.
- In Token name write where you will use it, e.g.
Claude Code on my laptop— the name is only there to help you tell tokens apart. - Under Permissions leave ticked what the tool needs (all are on by default). For a tool that only analyses the site, leave only Read site.
- Click Create token.
- The green box Your new token shows a key starting with
emit_pat_…. Click Copy and paste it into the tool right away (steps below). - The token appears in the list with its name, the first characters of the key, the date and its permissions. The full key can no longer be viewed — if you lose it, create a new one and revoke the old one.
Tip: One token per tool/device. When you stop using a tool, just revoke its token — the others keep working.
Claude Code
In the terminal (one command; replace emit_pat_… with your token):
claude mcp add --transport http emit https://www.emit.rs/mcp \
--header "Authorization: Bearer emit_pat_..."
Then in Claude Code:
/mcp
shows that the emit server is connected and which tools it offers. Try: "Use the emit tools to give me an overview of my site."
Alternative without a token (sign-in through the screen, as with claude.ai):
claude mcp add --transport http emit https://www.emit.rs/mcp
then run /mcp in Claude Code and choose Authenticate — the Emit sign-in screen opens in your browser.
Cursor
- Cursor Settings → MCP → Add new global MCP server (opens
mcp.json). - Add:
{
"mcpServers": {
"emit": {
"url": "https://www.emit.rs/mcp",
"headers": {
"Authorization": "Bearer emit_pat_..."
}
}
}
}
- Save — in the MCP server list emit gets a green dot and a list of tools.
- In chat (Agent mode) ask e.g. "List my site's pages using the emit tools."
Other tools and scripts
Any client that supports the Streamable HTTP MCP transport works with the same details:
| Setting | Value |
|---|---|
| Address (URL) | https://www.emit.rs/mcp |
| Transport | http / streamable-http |
| Header | Authorization: Bearer emit_pat_… |
If the tool supports OAuth you can also go without a token — the tool will redirect you to the Emit sign-in screen.
For your own scripts (Node.js) use the official @modelcontextprotocol/sdk client with StreamableHTTPClientTransport and the same header.
Revoking a token
- Account → AI apps → Personal tokens.
- Click Revoke next to the token and confirm.
- Everything that used that token stops working immediately (the next request gets a
401). The tool does not need to be uninstalled — just give it a new token if you want.
Troubleshooting
| Problem | Fix |
|---|---|
The tool reports 401 Unauthorized / invalid_token |
The token was pasted wrongly (check that Bearer with a space precedes it), it was revoked, or https is missing. Create a new token. |
| The tool sees fewer tools than expected | The token has limited permissions — only tools covered by its permissions are visible. Create a token with wider permissions. |
429 / a message about a limit |
60 requests and 15 changes per minute per token. Wait a minute. |
The tool asks for .ppk, SSE or stdio |
The connector is an HTTP (Streamable HTTP) server, not a local process. Choose the "remote/HTTP server" option in the tool. |
Frequently asked questions
How many tokens can I create?
Up to 20 active ones. Revoke old ones if you need more.
Does a token expire?
No, personal tokens do not expire on their own — they are valid until you revoke them. That is why you should keep them safe.
Can I see when a token was last used?
Yes — the Last used column in the token list updates on every request. A token that was "never" used and whose purpose you are not sure of can safely be revoked.