# Spendplane — AI Privacy, Redaction & Cost Routing

> Spendplane — AI Privacy, Redaction & Cost Routing is a freemium MCP server for cloud and infrastructure. Redacts secrets and PII from AI prompts and enforces spend caps for AI tools and APIs. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $12 a month
- **Platforms:** Web, iOS, Android, macOS, Windows, Chrome extension, VS Code, CLI, API, Slack, Self-hosted
- **Website:** https://spendplane.com
- **MCP Registry name:** com.spendplane/spendplane
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-27

## About

Spendplane sits between your AI traffic and model providers, scanning prompts for API keys, personal data and custom keywords and replacing them with reversible tokens before anything leaves your machine or network. When the model replies, the tokens are mapped back to the original values so your application receives a complete answer.

The same gateway handles cost control. Requests can be routed to cheaper or local models based on task complexity, failover is supported, and hard or soft daily and monthly spend caps can be set per workspace or API key. A metadata-only audit trail records model, token counts and redacted entity categories rather than prompt bodies.

The product fits developers and teams who use tools such as Cursor, VS Code or Claude Code, or who run backend services calling OpenAI or Anthropic, and who want sensitive data kept out of third-party prompts without rewriting their code. An MCP endpoint is available for AI clients that support streamable HTTP.

## Features

- **Reversible PII and secret redaction:** Replaces API keys, emails and other personal identifiers with placeholder tokens before a prompt is sent, then restores them in the response.
- **Hard spend caps:** Sets daily or monthly budget limits and returns an HTTP 429 response once a cap is reached.
- **Cost-based model routing:** Sends routine prompts to lower-cost or local models and fails over to other providers when needed.
- **Custom keyword masking:** Masks user-defined keywords, with the number allowed depending on the plan.
- **Metadata-only audit logs:** Records timestamps, models, token counts and redacted entity types without storing prompt bodies.
- **Drop-in gateway integration:** Works by changing the base URL in an OpenAI or Anthropic SDK rather than altering application code.

## Good for

- Keeping customer emails and API keys out of prompts sent to hosted LLMs
- Capping daily AI API spend for a project or team
- Routing simple summarization or classification jobs to cheaper or local models
- Using AI coding assistants without exposing .env secrets to the model provider
- Producing audit metadata for security teams reviewing AI usage

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http spendplane https://api.spendplane.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "type": "http",
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.spendplane.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "type": "http",
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.spendplane.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add spendplane --url https://api.spendplane.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.spendplane]
url = "https://api.spendplane.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "httpUrl": "https://api.spendplane.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http spendplane https://api.spendplane.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "serverUrl": "https://api.spendplane.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "type": "streamableHttp",
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "spendplane": {
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.spendplane.com/mcp
```

Enter a Name (for example "Spendplane — AI Privacy, Redaction & Cost Routing"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

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

```json
{
  "mcpServers": {
    "spendplane": {
      "type": "http",
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```

## FAQ

### Does Spendplane store my prompts?

Prompt bodies and model completions are not stored. Only structured metadata such as timestamp, model, token counts and redacted entity categories is retained, for 7 days on Free, 30 days on Pro and 90 days on Teams.

### How is the gateway integrated?

You create a workspace key, point your OpenAI or Anthropic SDK base URL to Spendplane and enable redaction and budget rules in the dashboard.

### Are there markups on model usage?

Spendplane uses your own provider keys with no token markup. You pay the model provider directly and Spendplane charges a flat platform fee.

### Can Spendplane — AI Privacy, Redaction & Cost Routing work with local models?

Yes. Through the Spendplane CLI or desktop client, it can bridge to Ollama, LM Studio or vLLM to run routine prompts locally.

### How do I add Spendplane — AI Privacy, Redaction & Cost Routing to Claude Code?

Run this command in your terminal: claude mcp add --transport http spendplane https://api.spendplane.com/mcp

### What are the best alternatives to Spendplane — AI Privacy, Redaction & Cost Routing?

The closest alternatives to Spendplane — AI Privacy, Redaction & Cost Routing are Xpenvo Agents, nable, Plutus and Gvnr.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Xpenvo Agents](https://ai-powered.com/mcp/xpenvo-agents): Xpenvo Agents is an MCP server for cloud and infrastructure.
- [nable](https://ai-powered.com/mcp/nable): nable is a freemium MCP server for cloud and infrastructure.
- [Plutus](https://ai-powered.com/mcp/plutus): Plutus is an MCP server for cloud and infrastructure.
- [Gvnr](https://ai-powered.com/mcp/gvnr): Gvnr is a freemium MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/spendplane-ai-privacy-redaction-and-cost-routing
