Cog
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cog
Semantic code search for AI assistants. Powered by Nomic embeddings on Apple Silicon.
What it does
Search code by meaning - Find functions that "handle authentication" not just keyword matches
Analyze structure - Extract functions, classes, and dependencies from any file
Generate embeddings - 768-dim vectors on Metal GPU (M1/M2/M3)
Related MCP server: code-search-mcp
Requirements
macOS with Apple Silicon
Python 3.12+
Node.js 18+
Install
git clone https://github.com/vitorcalvi/cog.git
cd cog
# Python engine
cd packages/core && uv sync
# MCP server
cd ../mcp && npm install && npm run buildIndex your code
cd packages/core
uv run cog-index ./your/projectConnect to OpenCode
Edit ~/.config/opencode/opencode.json:
{
"mcp": {
"cog": {
"type": "local",
"command": ["node", "/ABSOLUTE/PATH/TO/cog/packages/mcp/dist/index.js"],
"environment": {
"COG_CORE_DIR": "/ABSOLUTE/PATH/TO/cog/packages/core",
"COG_DB_PATH": "/ABSOLUTE/PATH/TO/cog/packages/core/cog_memory"
},
"enabled": true
}
}
}Replace /ABSOLUTE/PATH/TO with your actual path.
Use in OpenCode
> Search my codebase for user authentication
> Analyze the structure of src/api.py
> Find database connection functionsTools
Tool | Description |
| Semantic search - finds code by meaning |
| Extract functions and classes from a file |
| Get 768-dim vector for any text |
Test it works
Package | Tests | Coverage |
Python Core | 60 | 100% |
TypeScript MCP | 35 | 98.7% |
Run tests:
cd packages/core
uv run pytest
cd packages/mcp
npm testLicense
MIT © Vitor Calvi
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to perform intelligent semantic code search across codebases using local AI embeddings for meaning-based retrieval.6MIT
- AlicenseAqualityCmaintenanceEnables AI coding assistants to semantically search codebases by meaning rather than exact text, with zero external daemons and fully local embeddings. Works out-of-the-box with Claude Code, Gemini CLI, Antigravity, and Cursor.4MIT
- AlicenseAqualityCmaintenanceEnables AI coding assistants to perform local semantic code search using AST parsing and embeddings, finding code by meaning with exact file and line locations, plus AST-based usage lookup.4MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to search codebases by meaning using local AI embeddings, with tools for indexing, cache management, workspace switching, status checks, and package version lookup. It supports incremental and progressive indexing with configurable embedding dimensions to find relevant code even when terminology differs.114 npmMIT