# ShellWard

> AI agent security and compliance checks for Chinese-language contexts.

- **URL**: https://followmcp.com/en/servers/shellward
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 140
- **FMRS Score**: 51/100 (Grade D)
- **Source**: https://github.com/jnMetaCode/shellward
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: No credential needed

## Overview
ShellWard is an MCP security server over stdio that also provides project compliance scanning and runtime guard features. Its listed tools cover command safety, prompt-injection detection, sensitive-data scanning, path and tool checks, response auditing, MCP tool-poisoning scans, and compliance checks. The README describes it as dependency-free, with Chinese PII and Chinese and English threat detection.

## Best for
- AI agent developers who need Chinese prompt-injection and personal-information detection.
- Teams adding command, tool, and data-safety checks to MCP workflows.
- Teams conducting Chinese regulatory-topic self-assessments of AI projects.

## Not for
- Organizations seeking legal advice, filing determinations, or a replacement for human compliance review.
- Users seeking full RAG or vector-database protection or general truthfulness checks; the README lists these as out of scope.
- Users who require a guarantee that every attack will be detected or blocked.

## Required permissions
- The MCP client must be able to start a local Node.js/npx process and communicate with it over stdio.
- Tools can inspect commands, text, paths, tool definitions, or responses provided by the caller; the README does not say the server automatically reads project files.
- The project-scanning feature needs to read files in the project being checked; the README says local scans do not upload data.

## Risks
- In enforce mode, operations judged dangerous may be blocked; the README notes that conservative rules can flag commands that look dangerous even when harmless.
- Mode and detection threshold affect blocking behavior; a lower threshold is stricter.
- The README lists some obfuscation and indirect-reference techniques outside its expected detection scope, so results are not a guarantee of complete protection.
- Compliance scan results are technical self-check material, not legal advice; some controls require human review.

## Client config (JSON)
```json
{
  "mcpServers": {
    "shellward": {
      "command": "npx",
      "args": ["-y", "-p", "shellward", "shellward-mcp"]
    }
  }
}
```

## Tools (9)
- `check_command`: Check whether a shell command contains a dangerous operation.
- `check_injection`: Detect prompt-injection risks in text.
- `scan_data`: Scan text for personal information and sensitive data.
- `check_path`: Check whether a file path operation involves a sensitive path.
- `check_tool`: Check a tool name against security policy.
- `check_response`: Audit an AI response for canary leaks and personal-information exposure.
- `scan_mcp_tool`: Scan an MCP tool definition for poisoning indicators and definition-change risks.
- `security_status`: View the current security configuration and active defense layers.
- `compliance_check`: Produce compliance risk checks mapped to Chinese regulatory topics.
