# token-gate-mcp

> token-gate-mcp is an MCP server. Token and context budget for AI agents. Tracks spend and gates the session. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **MCP Registry name:** io.github.AbduljabbarBXR/token-gate-mcp
- **Listing updated:** 2026-11-13

## About

Token and context budget for AI agents. Tracks spend and gates the session.

## Install

### Claude Code (Terminal)

```sh
claude mcp add token-gate-mcp -- npx -y token-gate-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "token-gate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "token-gate-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "token-gate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "token-gate-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "token-gate-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "token-gate-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "token-gate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "token-gate-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "token-gate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "token-gate-mcp"
      ]
    }
  }
}
```

## FAQ

### How do I add token-gate-mcp to Claude Code?

Run this command in your terminal: claude mcp add token-gate-mcp -- npx -y token-gate-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/token-gate-mcp
