Skip to main content
Glama

Corpus-KB

CI

Local end-to-end RAG system for agentic code editors.

Exposes retrieval-augmented generation capabilities via MCP (Model Context Protocol) to any MCP-compatible client: OpenCode, Claude Code, Cursor, Codex, and others.

Features

  • Hybrid Search — Vector similarity + full-text search fused via Reciprocal Rank Fusion

  • Structure-Aware Chunking — AST-aware for code (tree-sitter, 40+ languages), heading-aware for markdown, semantic for plain text

  • Hierarchical Context — Parent/child/sibling chunk relationships for context-aware retrieval

  • Relational SQL — DuckDB queries over document metadata and chunk contents

  • Entity Graph — SQLite-backed graph with entity/relation tracking, upgradable to GraphQLite (Cypher) or LatticeDB

  • Data Versioning — LanceDB's built-in Git-like versioning with branches, tags, and time-travel

  • 100% Local — Ollama for embeddings, no cloud dependencies, no Docker required

Related MCP server: agentmako

Quick Start

# Install dependencies
pip install -e .

# Pull embedding model
ollama pull nomic-embed-text

# Run the server
python -m src.server

MCP Configuration

See mcp-configs/ for client configuration files.

Client

Config File

OpenCode

mcp-configs/opencode.json

Claude Code

mcp-configs/claude-code.json

Cursor

mcp-configs/cursor.json

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
8hResponse time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/moliver28/corpus-kb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server