# Shellward (MCP server)

> Shellward is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. AI agent security: 7 MCP tools for injection detection, PII scanning, command safety, DLP. It has 140 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y shellward.

scan 是确定性扫描：它能告诉你「项目里有境外模型端点」，但判断不了个人信息有没有真的流过去；14 个法规控制项里也有 11 个它只能标「需人工确认」。这一段交给你的编码 agent 来做——Claude Code、Cursor、Codex 等支持 Agent Skills 的工具都能用。

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/jnMetaCode/shellward |
| GitHub stars | 140 |
| License | Apache-2.0 |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: shellward |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Other |
| Latest release | v0.7.21 (Jun 23, 2026) |
| Last commit | Sep 28, 2026 |
| MCP registry name | io.github.jnMetaCode/shellward |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "shellward": {
      "command": "npx",
      "args": [
        "-y",
        "shellward"
      ],
      "env": {
        "SHELLWARD_MODE": "your-value",
        "SHELLWARD_LOCALE": "your-value",
        "SHELLWARD_THRESHOLD": "your-value"
      }
    }
  }
}
```

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

### Claude Code

```sh
claude mcp add --env SHELLWARD_MODE=your-value --env SHELLWARD_LOCALE=your-value --env SHELLWARD_THRESHOLD=your-value --transport stdio shellward -- npx -y shellward
```

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

```json
{
  "mcpServers": {
    "shellward": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "shellward"
      ],
      "env": {
        "SHELLWARD_MODE": "your-value",
        "SHELLWARD_LOCALE": "your-value",
        "SHELLWARD_THRESHOLD": "your-value"
      }
    }
  }
}
```

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

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

```json
{
  "servers": {
    "shellward": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "shellward"
      ],
      "env": {
        "SHELLWARD_MODE": "your-value",
        "SHELLWARD_LOCALE": "your-value",
        "SHELLWARD_THRESHOLD": "your-value"
      }
    }
  }
}
```

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

## Environment variables

- `SHELLWARD_MODE`: Security mode: enforce (block + log) or audit (log only)
- `SHELLWARD_LOCALE`: Locale: auto, zh, or en
- `SHELLWARD_THRESHOLD`: Injection detection threshold 0-100 (lower = stricter)

## Similar MCP servers

- [Reactive Resume](https://appsgit.com/mcp-servers/reactive-resume): A one-of-a-kind resume builder that keeps your privacy in mind. (43,921 stars, MIT)
- [N8n MCP](https://appsgit.com/mcp-servers/n8n-mcp): A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you. (23,047 stars, MIT)
- [XHS Downloader](https://appsgit.com/mcp-servers/xhs-downloader): 小红书（XiaoHongShu、RedNote）链接提取/作品采集工具. (12,922 stars, GPL-3.0)
- [MCP Use](https://appsgit.com/mcp-servers/mcp-use): The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents. (10,726 stars, MIT)
- [Ha MCP](https://appsgit.com/mcp-servers/ha-mcp): Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants. (4,964 stars, MIT)
- [MCP Server Chart](https://appsgit.com/mcp-servers/mcp-server-chart): A Model Context Protocol server for generating charts using AntV. (4,391 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/shellward
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
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.
