Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Codebase Semantic Search

MCP server by Jonathan-Dobson Verified · npm:codebase-semantic-search

Local semantic search for any codebase, exposed to AI agents as an MCP server. It answers natural-language queries using Milvus vector storage and Ollama embeddings, for developers working in code projects.

  • Score 65
  • 0 stars
  • 53 a week
  • MIT
  • Updated

Install Codebase Semantic Search

Built from the published package, never by AI.

claude mcp add codebase-semantic-search -- npx -y codebase-semantic-search

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Codebase Semantic Search in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the codebase-semantic-search block.

About

Codebase Semantic Search is a local, project-agnostic search engine for source code. You point it at your source directories, and it indexes the code so an agent or a person can search by meaning instead of literal text match. The engine runs Milvus Standalone in Docker for vector storage and Ollama with the nomic-embed-text model for 768-dimension local embeddings.

The chunker is AST-aware for TypeScript and JavaScript, heading-based for markdown, and uses a sliding window for other files. A chokidar file watcher reindexes changed files with a debounce. The main interface is a stdio MCP server that agents such as Claude Code, GitHub Copilot Chat and OpenCode can spawn on demand. An HTTP API is available as a fallback for humans.

Written from the project's README and checked against it.

Tools it gives your assistant

  • codebase_semantic_searchReturns ranked code chunks that match a natural-language query.
  • codebase_clipReturns the full text of a chunk by its short numeric id, single or batch.
  • codebase_read_fileReturns a file slice by line range, using sed -n style semantics.
  • codebase_statsReports chunk count, collection name and embedding model.

What you need

  • Node.js 20 or later
  • Docker with Compose v2 plugin
  • Ollama running on http://127.0.0.1:11434
  • curl on the PATH

Try asking

  • Search this codebase for where user sessions are created.
  • Show the full text of chunk 3 from the last search.
  • Read lines 40 to 80 of src/index.ts.

Good to know

  • Clip ids are valid only for the lifetime of the MCP process that issued them.
  • Without the tree-sitter-cpp grammar, C++ falls back to line-window chunking, which is noticeably worse.
  • First run pulls about 600 MB of Docker images, plus the roughly 270 MB embedding model.

Security check

B
  • Downloads a script from the internet and runs it (a well-known installer)In README.md: curl -fsSL https://ollama.com/install.sh \| sh

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Codebase Semantic Search

All alternatives →
Agent Skills Search Server agentskills
100

Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.

BAA Remote 28k
Exa exa-labs
100

Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.

AAA Remote 5.3k
Apify apify
100

Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.

AAA Remote 19k
changedetection.io (official) dgtlmoon
100

Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.

AAA Remote 36k
brave brave
95

Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.

AAA Remote 1.6k
Scrapling MCP ServerD4Vinci
94

Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.

AAA Local 107k

Compare with Agent Skills Search Server, Exa or Apify

Codebase Semantic Search: common questions

Which embedding model does it use?

It uses Ollama with the nomic-embed-text model, which produces 768-dimension vectors locally.

How does it keep the index up to date?

A chokidar file watcher reindexes changed files with a debounced incremental update.

Does it work with languages other than TypeScript and JavaScript?

Yes. Other files use a sliding window chunker, and C++ uses AST chunking when the optional tree-sitter-cpp grammar loads.

How do I install Codebase Semantic Search?

In Claude Code run claude mcp add codebase-semantic-search -- npx -y codebase-semantic-search. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Codebase Semantic Search the official server?

Codebase Semantic Search is published by npm:codebase-semantic-search from its verified domain in the official MCP Registry.

Is Codebase Semantic Search free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Codebase Semantic Search safe to use?

It scores 65 of 100. Grades: maintenance B, licence A, quality C. Security check: grade B (downloads a script from the internet and runs it (a well-known installer)). Review the code before you install. How grades work.

What are alternatives to Codebase Semantic Search?

Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).

Does Codebase Semantic Search work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Codebase Semantic Search Install

Add to stack

Loading.