Codebase Brain MCP
An MCP server that provides AI agents with a cited, searchable memory of a codebase. It supports hybrid search, git history analysis, impact analysis, and documentation drift detection. The server runs locally and privately, allowing agents to answer questions about code with exact file and line citations, understand the history behind changes, and identify outdated documentation without sending code to external servers.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Perform hybrid search across codebase files using exact names or plain language descriptions
- Analyze git history to understand why specific code changes were made
- Determine impact analysis by finding all callers and tests for a function
- Detect documentation drift by finding references to non-existent functions or settings
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
codebase-brain-mcp 0.2.0
{
"version": "0.2.0",
"transport": "stdio",
"identifier": "codebase-brain-mcp",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"environmentVariables": [
{
"name": "GITHUB_TOKEN",
"description": "Optional. Raises GitHub's rate limit when reading pull request titles and descriptions."
},
{
"name": "CODEBASE_BRAIN_HOME",
"description": "Where indexes and clones are stored (default ~/.codebase-brain)."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"codebase-brain-mcp": {
"command": "uvx",
"args": [
"codebase-brain-mcp==0.2.0"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"CODEBASE_BRAIN_HOME": "<YOUR_CODEBASE_BRAIN_HOME>"
}
}
}
}Cline
{
"mcpServers": {
"codebase-brain-mcp": {
"command": "uvx",
"args": [
"codebase-brain-mcp==0.2.0"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"CODEBASE_BRAIN_HOME": "<YOUR_CODEBASE_BRAIN_HOME>"
}
}
}
}VS Code
{
"servers": {
"codebase-brain-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"codebase-brain-mcp==0.2.0"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"CODEBASE_BRAIN_HOME": "<YOUR_CODEBASE_BRAIN_HOME>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"codebase-brain-mcp": {
"command": "uvx",
"args": [
"codebase-brain-mcp==0.2.0"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"CODEBASE_BRAIN_HOME": "<YOUR_CODEBASE_BRAIN_HOME>"
}
}
}
}Let your agent find its tools
Find servers like Codebase Brain MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.