ClaudeCodeMod

All shelves / MCP servers

Koma Gate MCP

io.github.swnotmetal/koma-gate-mcp · 12 stars · TypeScript · MIT

MCP server Classifies prompt injection, jailbreaks, and out-of-scope user input before agents act on it.

Install

The repo has no one-line install. Follow its README.

Published as

  • npmkoma-gate-mcpstdio

From the server's entry in the official MCP Registry.

Open the repo

Configuration

NameSet asWhat it is
KOMA_PROVIDEROptionalEnv varLLM provider: openai, anthropic, google, deepseek, or ollama (default: google)
KOMA_MODELOptionalEnv varOptional model override for the selected provider
GEMINI_API_KEYOptional · SecretEnv varGoogle Gemini API key (used by the default provider)
OPENAI_API_KEYOptional · SecretEnv varOpenAI API key when KOMA_PROVIDER=openai
ANTHROPIC_API_KEYOptional · SecretEnv varAnthropic API key when KOMA_PROVIDER=anthropic
DEEPSEEK_API_KEYOptional · SecretEnv varDeepSeek API key when KOMA_PROVIDER=deepseek

Files

packages/koma-gate-mcp/README.md

Koma Gate MCP

Expose Koma Gate's prompt-injection classification as an MCP tool for AI agents.

npm install koma-gate-mcp

What it does

Provides a single tool, classify_input, that an AI agent can call to check whether untrusted user text is safe and in-scope before acting on it.

Setup

Set the provider and API key:

# Provider: openai | anthropic | google | deepseek | ollama (default: google)
export KOMA_PROVIDER=google
export GEMINI_API_KEY=sk-...

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "koma-gate": {
      "command": "npx",
      "args": ["-y", "koma-gate-mcp"]
    }
  }
}

Tool: classify_input

  • text (required) — the untrusted user input to classify
  • preset (optional) — general | code | support | reference (default: general)

Returns:

{
  "allowed": true,
  "in_scope": true,
  "reason": "in scope",
  "preset": "general",
  "model": "gemini-2.5-flash"
}

Security Boundary

This is an LLM-based scope classifier, not a cryptographic prompt-injection defense. See koma-gate's README for the full security boundary and BENCHMARKS.md for evaluation results.

Facts

Kind
MCP server
Repo
swnotmetal/Project-Koma
Group
Uncategorized
Stars
12
License
MIT
Language
TypeScript
Last push
2026-10-10
Forks
2
MCP Registry
io.github.swnotmetal/koma-gate-mcp
Homepage
github.com/swnotmetal/Project-Koma/blob/main/packages/koma-gate-mcp/README.md
Topics
ai-security, guardrails, middleware, nodejs, prompt-injection, rag, rate-limiting, typescript, ai-firewall, llm-security, owasp-top-10-llm, ai-governance, ai-tools

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k