ClaudeCodeMod

All shelves / MCP servers

Koma Core MCP

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

MCP server Protected RAG storage — agents discover public metadata, content only by access token.

Install

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

Published as

  • npmkoma-core-mcpstdio

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

Open the repo

Configuration

NameSet asWhat it is
KOMA_MASTER_KEYOptional · SecretEnv varHKDF master key for content tokens (demo key fallback if unset)

Files

packages/koma-core-mcp/README.md

Koma Core MCP

Expose Koma Core's protected RAG storage as MCP tools for AI agents.

npm install koma-core-mcp

What it demonstrates

Discovery ≠ Authorization. Agents can search the public index, but retrieve private content only with the correct access tier.

Tool What it does Access
search_docs Search the public index — returns metadata, never content Public
retrieve_doc Fetch full content by source ID Requires userTier ≥ document tier

Setup

# Optional: set a master key for token derivation (default is a demo key)
export KOMA_MASTER_KEY=your-32-byte-minimum-secret

Claude Desktop

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

Tools

search_docs

  • category (optional) — filter by category
  • tag (optional) — filter by tag
  • limit (optional) — max results

Returns metadata only: displayName, category, tags, accessTier, preview. No content, no token.

retrieve_doc

  • sourceId (required) — the document source ID from search_docs
  • userTier (required) — public | premium | enterprise

Returns full content only if userTier ≥ the document's tier.

Seed Data

Three demo documents are ingested on startup:

sourceId Tier
guide-getting-started public
api-reference premium
internal-architecture enterprise

Security Boundary

This is an in-memory reference implementation — no persistence, demo master key. For production, implement the DatabaseAdapter interface against a real database and provide a real master key. See koma-core's README for the full security boundary.

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-core-mcp
Homepage
github.com/swnotmetal/Project-Koma/blob/main/packages/koma-core-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