llm-web-guard
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OLLAMA_MODEL | No | Optional local Ollama model ID. | |
| OLLAMA_BASE_URL | No | Local OpenAI-compatible Ollama endpoint. | http://localhost:11434/v1 |
| OPENROUTER_API_KEY | No | Optional OpenRouter API key for AI review. | |
| OPENROUTER_DEFAULT_MODEL | No | Optional OpenRouter model ID. If empty, a low-cost model is selected from the live catalog. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Defensive security checks for LLM-powered web applications. Scan a local project, then ask for an AI review only when the user wants a second opinion. Never send whole files to a model; only the finding and the relevant code context.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scanC | Scan a local project for LLM web security issues. Read-only, no AI calls. |
| reviewB | Ask a real LLM to review one finding and a small code snippet. The snippet is sent to the selected provider. Use provider=ollama to keep it on this machine. The default is local Ollama first, then OpenRouter. |
| modelsA | List available Ollama models and current OpenRouter models with prices. |
| rulesA | List the deterministic checks and their OWASP LLM mappings. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clearly distinct role: scan runs the deterministic static pass, review does a single LLM-backed deep dive on one finding, while models and rules are pure informational lookups. The scan vs. review boundary is spelled out explicitly (read-only/no AI calls vs. snippet sent to a provider), so misselection is unlikely.
All names are single lowercase tokens with no case/style drift, which is predictable. The only inconsistency is grammatical: scan/review are verbs while models/rules are bare nouns that implicitly mean list_models/list_rules.
Four tools is a tight, well-scoped surface for a small security scanner: detection, AI-assisted triage, provider discovery, and rule enumeration. No tool looks redundant or like filler, and nothing essential is obviously missing at this scale.
The lifecycle (list rules -> scan -> inspect providers -> review a finding) is coherent and has no dead ends. Minor gaps: no way to enumerate/export the findings from a scan in structured form, and no configuration/baseline management for suppressions or provider defaults.