Sourcerer MCP 🧙
An MCP server for semantic code search & navigation that helps AI agents work efficiently without burning through costly tokens. Instead of reading entire files, agents can search conceptually and jump directly to the specific functions, classes, and code chunks they need.
Demo
Requirements
- OpenAI API Key: Required for generating embeddings (local embedding support planned)
- Git: Must be a git repository (respects
.gitignorefiles) - Add
.sourcerer/to.gitignore: This directory stores the embedded vector database
Installation
Go
go install github.com/st3v3nmw/sourcerer-mcp/cmd/sourcerer@latestHomebrew
brew tap st3v3nmw/tap
brew install st3v3nmw/tap/sourcererConfiguration
Claude Code
claude mcp add sourcerer -e OPENAI_API_KEY=your-openai-api-key -e SOURCERER_WORKSPACE_ROOT=$(pwd) -- sourcerermcp.json
{
"mcpServers": {
"sourcerer": {
"command": "sourcerer",
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"SOURCERER_WORKSPACE_ROOT": "/path/to/your/project"
}
}
}
}





