Project Brain
v2.0.3Read-only source search and retrieval across configured GitHub repositories
Values you need
| Variable | What it is | |
|---|---|---|
PROJECT_BRAIN_REPO_LIST | required | Comma-separated owner/repo slugs or a path to a file with one slug per line |
PROJECT_BRAIN_STATE_DIR | required | Writable directory for repository caches, indexes, and locks |
PB_GITHUB_TOKEN | optional secret | Optional GitHub token for private repositories |
PB_FETCH_TTL | optional | Minimum interval between on-demand repository refreshes |
Docker discovery passed
Requires Docker
Run in a terminal
claude mcp add project-brain -e 'PROJECT_BRAIN_REPO_LIST=<PROJECT_BRAIN_REPO_LIST>' -e 'PROJECT_BRAIN_STATE_DIR=<PROJECT_BRAIN_STATE_DIR>' -- docker run -i --rm -e PROJECT_BRAIN_REPO_LIST -e PROJECT_BRAIN_STATE_DIR ghcr.io/gentleelephant/project-brain:v2.0.3Add to
claude_desktop_config.json{
"mcpServers": {
"project-brain": {
"args": [
"run",
"-i",
"--rm",
"-e",
"PROJECT_BRAIN_REPO_LIST",
"-e",
"PROJECT_BRAIN_STATE_DIR",
"ghcr.io/gentleelephant/project-brain:v2.0.3"
],
"command": "docker",
"env": {
"PROJECT_BRAIN_REPO_LIST": "<PROJECT_BRAIN_REPO_LIST>",
"PROJECT_BRAIN_STATE_DIR": "<PROJECT_BRAIN_STATE_DIR>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"project-brain": {
"args": [
"run",
"-i",
"--rm",
"-e",
"PROJECT_BRAIN_REPO_LIST",
"-e",
"PROJECT_BRAIN_STATE_DIR",
"ghcr.io/gentleelephant/project-brain:v2.0.3"
],
"command": "docker",
"env": {
"PROJECT_BRAIN_REPO_LIST": "<PROJECT_BRAIN_REPO_LIST>",
"PROJECT_BRAIN_STATE_DIR": "<PROJECT_BRAIN_STATE_DIR>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "PROJECT_BRAIN_REPO_LIST",
"id": "project-brain-repo-list",
"password": true,
"type": "promptString"
},
{
"description": "PROJECT_BRAIN_STATE_DIR",
"id": "project-brain-state-dir",
"password": true,
"type": "promptString"
}
],
"servers": {
"project-brain": {
"args": [
"run",
"-i",
"--rm",
"-e",
"PROJECT_BRAIN_REPO_LIST",
"-e",
"PROJECT_BRAIN_STATE_DIR",
"ghcr.io/gentleelephant/project-brain:v2.0.3"
],
"command": "docker",
"env": {
"PROJECT_BRAIN_REPO_LIST": "${input:project-brain-repo-list}",
"PROJECT_BRAIN_STATE_DIR": "${input:project-brain-state-dir}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.project-brain]
command = "docker"
args = ["run", "-i", "--rm", "-e", "PROJECT_BRAIN_REPO_LIST", "-e", "PROJECT_BRAIN_STATE_DIR", "ghcr.io/gentleelephant/project-brain:v2.0.3"]
env = { "PROJECT_BRAIN_REPO_LIST" = "<PROJECT_BRAIN_REPO_LIST>", "PROJECT_BRAIN_STATE_DIR" = "<PROJECT_BRAIN_STATE_DIR>" }For AI agents
- Ask the user for: PROJECT_BRAIN_REPO_LIST, PROJECT_BRAIN_STATE_DIR. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: project_code_files, project_code_read, project_code_search, project_repo_list, project_repo_sync, project_symbol_search.
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json