Add the MCP server and your API key so usage is tied to your account.
Open Dashboard, log in, and click Generate new API key. Copy the key (starts with tg_live_).
In Cursor: Settings → MCP (or open ~/.cursor/mcp.json). Add a server with headers:
{
"mcpServers": {
"tokenguard": {
"url": "https://tokenguard.agenticidaho.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY_HERE"
}
}
}
}
Replace YOUR_API_KEY_HERE with your key. You can also use X-TokenGuard-Key instead of Authorization.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on Windows:
{
"mcpServers": {
"tokenguard": {
"url": "https://tokenguard.agenticidaho.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY_HERE"
}
}
}
}
Set the MCP URL to https://tokenguard.agenticidaho.workers.dev/mcp and add a header:
Authorization: Bearer YOUR_KEY orX-TokenGuard-Key: YOUR_KEY