# s-gw

> s-gw is a free MCP server for security. Local approvals and audit so coding agents use credentials without ever seeing them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Website:** https://s-gw.com
- **Repository:** https://github.com/sgateway/s-gw
- **MCP Registry name:** io.github.sgateway/s-gw
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-16

## About

s-gw sits between a coding agent and your secrets. The agent only ever sees a typed handle such as a production read-only credential name. When it wants to run something, you review the agent, command, handle, environment binding, working directory and target, then s-gw injects the credential into one constrained child process on your machine and returns sanitized output with detected secret values replaced by handles.

Raw values stay in macOS Keychain, Linux Secret Service, Windows Credential Manager, 1Password or an encrypted local ledger. Grants are bound to the specific action and can carry a time window, and every request, approval and execution is recorded as an audit event without storing returned secrets. A local console, CLI and menu-bar helper show the approval queue and history.

The README calls it an early preview: formats may change, Windows and Linux desktop support is experimental, and there has been no independent security audit. The TypeScript parts are Apache-2.0, while packages also include a proprietary compiled Rust execution core.

## Features

- **Typed credential handles:** Agents reference named handles and never receive plaintext values.
- **Local approvals:** Review agent, command, target and working directory before access.
- **Constrained execution:** Injects the credential only into the approved child process.
- **Output sanitization:** Scans output and replaces detected secrets with handles.
- **Audit trail:** Logs request, approval, execution and destination without raw secrets.
- **Agent profiles:** Setup for Codex, Claude Code, Cursor, OpenCode, Gemini CLI, Copilot and VS Code.

## Good for

- Let an agent run an AWS read-only command with your approval
- Stop API tokens from leaking into model context
- Audit which agent used which credential and when
- Time-limit access for a deploy task

## Install

### Claude Code (Terminal)

```sh
claude mcp add s-gw -- npx -y @s-gw/s-gw
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "s-gw": {
      "command": "npx",
      "args": [
        "-y",
        "@s-gw/s-gw"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "s-gw": {
      "command": "npx",
      "args": [
        "-y",
        "@s-gw/s-gw"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "s-gw": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@s-gw/s-gw"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "s-gw": {
      "command": "npx",
      "args": [
        "-y",
        "@s-gw/s-gw"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "s-gw": {
      "command": "npx",
      "args": [
        "-y",
        "@s-gw/s-gw"
      ]
    }
  }
}
```

## FAQ

### Where do the secrets live?

In your OS keychain, 1Password or an encrypted local ledger, never in model context.

### Is it production ready?

The README calls it an early preview without an independent security audit.

### What licence applies?

The TypeScript broker is Apache-2.0; packages also include a proprietary compiled Rust core.

### Which platforms work?

Node.js 20+ on macOS, Linux and Windows, with desktop support on Windows and Linux still experimental.

### Is s-gw free?

Yes. s-gw is free to use.

### How do I add s-gw to Claude Code?

Run this command in your terminal: claude mcp add s-gw -- npx -y @s-gw/s-gw

### What are the best alternatives to s-gw?

The closest alternatives to s-gw are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/s-gw
