semantic-index
Uses Ollama's local embeddings model (nomic-embed-text) to power semantic code search by embedding code chunks and generating query embeddings.
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.
agent-code-search
Local semantic code search and call-graph tracing for AI coding agents, served as a CLI and an MCP server. Your code never leaves your machine.
search "<query>"finds code by meaning, not keywords.trace callers|callees <name>walks a real AST call graph, including arrow functions, namespace imports andthis.method(). Calls the tool can't resolve are listed asunresolved, never silently dropped.
TypeScript and JavaScript only (.ts, .tsx, .js, .jsx).
Quickstart
Requires Node.js 20+ and Ollama.
git clone https://github.com/arifbazli/agent-code-search && cd agent-code-search
npm install && npm run build && npm link
ollama pull nomic-embed-text
cd /path/to/your/project
semantic-index init # index this directory
semantic-index search "who validates a login"
semantic-index trace callers login # works without initAdd --json to search or trace for machine-readable output. semantic-index watch keeps the index current while you edit.
Related MCP server: codesteer-atlas
Connect your agent
Agent | Setup |
Claude Code |
|
Claude Desktop, Cursor |
|
VS Code |
|
Shell-only agents |
|
The MCP server exposes search, trace_callers and trace_callees. Run init first for search.
Example
$ semantic-index search "look up an item by id" --top-k 1
0.643 getItemById service.ts:1-3
export function getItemById(id: string) {
return ItemModel.findOne({ where: { id } });
}
$ semantic-index trace callees getItemById
No callees found for "getItemById".
Unresolved calls (not followed):
ItemModel.findOne in getItemById service.ts:2For trace callers, the unresolved list shows possible callers: call sites such as this.repo.save whose final name matches the target.
Limits
Brute-force vector search with no ANN index. Tested on codebases of about 30 files and 130 functions.
Call resolution is name- and import-based. Dynamic dispatch, higher-order calls and barrel re-exports stay
unresolved.nomic-embed-textranks similar helpers within one file less reliably than unrelated code.watchre-parses the whole directory on each change and runs only in the foreground.
Design notes: docs/ARCHITECTURE.md.
Development
npm run lint && npm test # type-check + unit tests (what CI runs)
npm run test:e2e # needs Ollama with nomic-embed-textOne e2e test indexes a sibling checkout at ../semantic-code-review and is skipped when it's missing.
License
MIT
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
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.-
- AlicenseAqualityBmaintenanceLocal MCP server for semantic code search using Tree-sitter AST parsing, local embeddings, and hybrid search; enables indexing and querying codebases entirely offline.7MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for semantic code search and explanation. Allows AI agents to search, ask questions, and manage memory about a codebase with local embeddings and LLM integration.-
- FlicenseNot gradedqualityDmaintenanceGive your AI coding agents superpowers — a local MCP server for fast, token-efficient code navigation, search & analysis.-