# TokenSafe (MCP server)

> TokenSafe is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks. It has 44 GitHub stars, is released under the MIT license and runs locally with npx -y tokensafe.

Make AI coding agents 3x faster and stop burning team quotas. Precise code context, zero hallucinated methods, and pre-git security. Runs 100% locally on your machine in under 30ms. When an agent reads 200 lines of typed contracts instead of 3,000 lines of boilerplate, turns drop from 45 seconds to 3 seconds. Secrets stay out of LLM transcripts, prompt caches stay warm, and your team ships releases without 5-hour quota lockouts.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/tokensafe-dev/tokensafe |
| GitHub stars | 44 |
| License | MIT |
| Language | Python |
| Transport | stdio, streamable-http |
| Packages | npm: tokensafe; pypi: tokensafe |
| Remote URL | https://api.tokensafe.dev/mcp |
| Needs API key | yes |
| Official | yes |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code, Claude.ai, ChatGPT |
| Category | Developer tools |
| Latest release | v4.1.5 (Nov 16, 2026) |
| Last commit | Nov 16, 2026 |
| MCP registry name | dev.tokensafe/tokensafe |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tokensafe": {
      "command": "npx",
      "args": [
        "-y",
        "tokensafe"
      ]
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --transport stdio tokensafe -- npx -y tokensafe
```

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

```json
{
  "mcpServers": {
    "tokensafe": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tokensafe"
      ]
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

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

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

### Claude Code (remote)

```sh
claude mcp add --transport http tokensafe "https://api.tokensafe.dev/mcp"
```

The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.

Config formats checked against the official docs on 2026-10-07.

## Similar MCP servers

- [SmartBear MCP](https://appsgit.com/mcp-servers/smartbear-mcp): MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J. (44 stars, MIT, official, needs API key)
- [Kage](https://appsgit.com/mcp-servers/kage): Verified memory for coding agents: claims cited against code, stale withheld, savings receipts. (41 stars, GPL-3.0, official)
- [Codesign](https://appsgit.com/mcp-servers/codesign): Local design engine for AI agents: create, edit and export real, editable designs. (45 stars, MIT, official)
- [Codelogic MCP Server](https://appsgit.com/mcp-servers/codelogic-mcp-server): An MCP Server to utilize Codelogic's rich software dependency data in your AI programming assistant. (37 stars, MPL-2.0, official, needs API key)
- [WormaCeptor](https://appsgit.com/mcp-servers/wormaceptor): Inspect a running Android debug app: network traffic, crashes, logs, databases and preferences. (46 stars, MIT, official)
- [Fuse](https://appsgit.com/mcp-servers/fuse): Local .NET compiler verification, change impact, and typed wiring for AI agents. (37 stars, Apache-2.0, official)

---

Canonical page: https://appsgit.com/mcp-servers/tokensafe
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
