
Standard code base search in coding agents like OpenCode can be very limited. To improve my daily workflow, I needed more advanced features like semantic search, call graphs, or an architectural overview.
I discovered the codebase-memory-mcp on GitHub a few months ago. It’s a single, static binary that enhances code base search in your coding agent.
How to install?​
To get started, download the latest release from GitHub and install the binary on your machine.
You can choose between the CLI-only version and the UI variant with 3D graph visualization. For now, I opted for the simple CLI-only version.
How to configure OpenCode?​
To integrate codebase-memory-mcp with OpenCode, add the following MCP (Memory Computation Protocol) configuration to your OpenCode config file:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"codebase-memory-mcp": {
"type": "local",
"command": ["/usr/local/bin/codebase-memory-mcp"],
"enabled": true
}
}
}
How to use codebase-memory-mcp?​
It starts with indexing a new codebase. Run the command Index this project to start this process. Once the indexing is complete, OpenCode will start searching for code via the codebase-memory-mcp server.
Conclusion​
I’m impressed with codebase-memory-mcp’s simplicity and ease of use. As a single, static binary, it’s easy to install and works well with our PHP projects (Symfony/Sylius).
Not using PHP? No worries, it supports about 158 ​​languages, making it a versatile tool for any development team. Furthermore, it’s not limited to just programming languages; it also handles Infrastructure-as-code indexing, including Dockerfiles and Kubernetes manifests.
Overall, codebase-memory-mcp has become an indispensable tool in my development workflow, and I highly recommend it to any developer or team looking to supercharge their code search and management capabilities.



