Install TokenSaver

One click for Visual Studio and VS Code. One command for Claude Code. JSON snippets for Cursor, Claude Desktop, and anything else that speaks stdio.

Requires .NET 10 SDK or later. The server downloads automatically on first use — no separate install step.

VS

Visual Studio 2026 / 2022 17.14+

Opens Visual Studio and adds the server to your .mcp.json in one click.

Install in Visual Studio
No prompt after clicking the link, or prompt not working?

Add to %USERPROFILE%\.mcp.json on Windows (or ~/.mcp.json on macOS). Create the file if it doesn't exist. Restart Visual Studio after saving.

{
  "servers": {
    "tokensaver": {
      "type": "stdio",
      "command": "dotnet",
      "args": ["tool", "execute", "TokenSaver.Mcp", "--yes"],
      "env": { "TOKENSAVER_API_URL": "https://tokensavermcp.com" }
    }
  }
}
VS​Code

VS Code

Adds the server to Copilot Chat's MCP configuration.

No prompt after clicking the link, or prompt not working?

Open User Settings (JSON) via Ctrl+Shift+POpen User Settings (JSON) and merge in the following. Reload VS Code after saving.

{
  "mcp": {
    "servers": {
      "tokensaver": {
        "type": "stdio",
        "command": "dotnet",
        "args": ["tool", "execute", "TokenSaver.Mcp", "--yes"],
        "env": { "TOKENSAVER_API_URL": "https://tokensavermcp.com" }
      }
    }
  }
}

Claude Code

Run once in your terminal — installs globally across all projects (-s user):

claude mcp add -s user tokensaver -e TOKENSAVER_API_URL=https://tokensavermcp.com -- dotnet tool execute TokenSaver.Mcp --yes

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "tokensaver": {
      "command": "dotnet",
      "args": ["tool", "execute", "TokenSaver.Mcp", "--yes"],
      "env": { "TOKENSAVER_API_URL": "https://tokensavermcp.com" }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "tokensaver": {
      "command": "dotnet",
      "args": ["tool", "execute", "TokenSaver.Mcp", "--yes"],
      "env": { "TOKENSAVER_API_URL": "https://tokensavermcp.com" }
    }
  }
}
>_

Other clients, or install everywhere at once

The register command detects installed MCP clients and writes the config for all of them in one shot. Recommended for CI and scripted setup.

dotnet tool install -g TokenSaver.Mcp
tokensaver-mcp register

To upgrade later — close Visual Studio and any Claude sessions first, then:

dotnet tool update --global TokenSaver.Mcp
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.