# Codebase RAG

> Codebase RAG — allentcm-codebase-rag. Use this tool when you need to perform semantic codebase search and retrieval, solving problems like navigating large codebases and finding relevant code snippets through natural language queries. It takes in natural language inputs and returns relevant code snippets with similarity scores, line numbers, and file contents as output. Ideal for AI assistants, it provides an alternative to traditional keyword-based search, enabling more intuitive and efficient code exploration.

Canonical page: https://skillsregistry.net/skills/allentcm-codebase-rag  
JSON: https://api.skillsregistry.net/v1/skills/allentcm-codebase-rag

## Description

This MCP server provides semantic codebase search and file retrieval using CocoIndex embeddings and PostgreSQL with pgvector for similarity search. Built by allentcm, it integrates with the Voyage API for code-specific embeddings (voyage-code-3 model) and offers three core tools: semantic code search that returns relevant snippets with similarity scores and line numbers, file listing from the tracking table, and complete file content retrieval. The implementation uses CocoIndex's transform flow system for embedding generation, supports Docker deployment with environment-based configuration, and is designed for AI assistants that need to understand and navigate large codebases through natural language queries rather than traditional keyword-based search.

## Trust

- **Trust score (0–1):** 0.97
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/allentcm-codebase-rag)
- **Repository:** <https://github.com/allentcm/mcp-codebase-rag>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "allentcm-codebase-rag"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/allentcm-codebase-rag` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/allentcm-codebase-rag/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
