MCP Catalogs
Homecodebase-context screenshot

codebase-context

by PatrickSys·44·Score 45

An MCP server that maps codebase conventions and provides semantic search for AI agents to understand architecture and patterns.

developer-toolsai-llmsearch
10
Forks
6
Open issues
this month
Last commit
2d ago
Indexed

Overview

Codebase-context generates a map of your codebase to help AI agents understand your architecture, coding conventions, and patterns before they start searching. It provides bounded conventions mapping, pattern detection, semantic search with quality indicators, and team memory functionality. The server supports both stdio and HTTP modes, works with multiple AI clients, and offers multi-project support with different languages.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI-assisted code generation that respects team conventions
you:Codebase analysis and refactoring with pattern awareness
you:New team member onboarding with architectural understanding
you:How does codebase-context differ from code search tools?
you:What languages are supported?

When to choose this

Teams wanting to help AI assistants understand their specific codebase conventions and architecture before making changes, reducing the need for broad searches.

When NOT to choose this

You need write access capabilities (this tool is primarily read-only), or if you're working with very small codebases where the indexing overhead isn't justified.

Tools this server exposes

10 tools extracted from the README
  • search_codebase

    Hybrid search + decision card when intent='edit'

  • get_team_patterns

    Pattern frequencies, golden files, conflict detection

  • get_symbol_references

    Concrete references to a symbol (count + snippets)

  • remember

    Record a convention, decision, gotcha, or failure

  • get_memory

    Query team memory with confidence decay scoring

  • get_codebase_metadata

    Project structure, frameworks, dependencies

  • get_style_guide

    Style guide rules for the current project

  • detect_circular_dependencies

    Import cycles between files

  • refresh_index

    Full or incremental re-index + git memory extraction

  • get_indexing_status

    Progress and stats for the current index

Comparable tools

semantic-searchgithub-copilot-chatsourcegraph

Installation

Install via npm: npm install -g codebase-context

Add to Claude Desktop:

{
  "mcpServers": {
    "codebase-context": {
      "command": "npx",
      "args": ["-y", "codebase-context"]
    }
  }
}

For HTTP mode, configure with --http flag and set port to 3100.

FAQ

How does codebase-context differ from code search tools?
It starts with a bounded conventions map showing architecture layers and patterns before searching, rather than dumping raw search results. It also provides pattern trend analysis and quality indicators.
What languages are supported?
Full symbol extraction for 10 languages (TS, JS, Python, Java, Kotlin, C, C++, C#, Go, Rust) and indexing coverage for 30+ languages including PHP, Ruby, Swift, and Shell.

Compare codebase-context with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.