Skip to content
FunCoding

Koma Core MCP

Listed in the official MCP Registry

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

Star
13
Version
v0.1.1
License
MIT
Last commit
Oct 13, 2026

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.

ToolWhat it doesAccess
search_docsSearch the public index — returns metadata, never contentPublic
retrieve_docFetch full content by source IDRequires 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:

sourceIdTier
guide-getting-startedpublic
api-referencepremium
internal-architectureenterprise

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.

Similar MCP servers

Official

Memory

Knowledge graph-based persistent memory system

MOmodelcontextprotocol/servers92k190 new stars in the last 7 days

Honcho

Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.

PLplastic-labs/honcho8.4k99 new stars in the last 7 days

PDF Craft

Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.

OOoomol-lab/pdf-craft6.8k33 new stars in the last 7 days

Featured

gemini-notebook-mcp-cli

Access Gemini Notebook via CLI and MCP Server.

JAjacob-bd/gemini-notebook-mcp-cli6.7k86 new stars in the last 7 days

Featured

Zotero MCP

Search, read and cite papers from your Zotero library in any AI agent.

5454yyyu/zotero-mcp6.2k103 new stars in the last 7 days