1. Conduid
  2. Developer Tools
  3. Codebase RAG
MCP server · Developer Tools

Codebase RAG

MCP server for code retrieval from a fully indexed codebase using CocoIndex

Unclaimed last commit 8 months ago devtools
48Fair

Scored 14 days ago · breakdown

About Codebase RAG

Codebase RAG is an MCP server published by allentcm in the Developer Tools category: mCP server for code retrieval from a fully indexed codebase using CocoIndex.

The repository has 16 stars and 1 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/allentcm/mcp-codebase-rag

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Codebase RAG

Powered by Claude · Grounded in docs

I know everything about Codebase RAG. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Codebase RAG MCP Server

This MCP server provides semantic codebase search and file retrieval using embeddings and a PostgreSQL database. It exposes tools for searching code, listing files, and retrieving file contents.

Features

  • Semantic Code Search: Uses Voyage embedding model to convert queries into vectors and search code snippets by similarity.
  • File Listing: Lists all tracked files in the codebase.
  • File Content Retrieval: Fetches the full content of a file by filename.

Tools

  • search_codebase

    • Returns code snippets relevant to the query.
    • Inputs:
      • query (string): Search terms
  • get_files

    • Lists all files in the codebase.
  • get_file_content

    • Returns the content of the specified file.
    • Inputs:
      • filename (string): Filename

Configuration

Getting a Voyage API Key

  1. Sign up for a Voyage API account
  2. Generate your API key from the dashboard

Environment Variables

  • DATABASE_URL: PostgreSQL connection string.
  • VOYAGE_API_KEY: API key for embedding model.
  • EMBEDDING_TABLE: Table name for code embeddings.
  • TRACKING_TABLE: Table name for file tracking.

Docker

{
  "mcpServers": {
    "codebase-rag": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "VOYAGE_API_KEY",
        "-e",
        "EMBEDDING_TABLE",
        "-e",
        "TRACKING_TABLE",
        "-p",
        "8080:8080",
        "allentcm/mcp-codebase-rag:1.0.0"
      ],
      "env": {
        "DATABASE_URL": "postgres://cocoindex:cocoindex@localhost/cocoindex",
        "VOYAGE_API_KEY": "voyage_api_key",
        "EMBEDDING_TABLE": "codebase__code_embeddings",
        "TRACKING_TABLE": "codebase__cocoindex_tracking"
      }
    }
  }
}

License

This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About Codebase RAG

How do I install Codebase RAG?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Codebase RAG safe to use with an AI agent?

Its trust score is 48 out of 100 (fair). It passes 2 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Codebase RAG still maintained?

The last commit was 8 months ago and 1 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.