codesearch
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codesearchwhere is frame series alignment implemented?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codesearch
Semantic search over local source repositories and forum/mailing-list archives, exposed both as a shell CLI and as an MCP server so any LLM (Claude Code, a local model, whatever speaks MCP) can look things up while helping you debug.
This is the retrieval half of warpembot, extracted and made project-agnostic. No email, no GitHub, no auto-replying — just indexing and querying.
The csbot command
One entry point for everything:
./csbot init warp https://github.com/warpem/warp.git --kb archives/warp-group.mboxRegisters a codebase (cloning it if you give a git URL, or just pointing at a
local checkout), ingests any accumulated discussion archive you have for it, and
builds the embeddings. --kb is optional — with no archive you get a
code-only knowledge base. Missing archives are reported and skipped, not fatal.
./csbot update --pullgit pulls each registered repo and re-embeds only the files whose checksums
changed. Drop --pull to index local edits; name repos to do a subset.
./csbot ask "why does frame series alignment deselect items" --repo warpRetrieves the relevant source and prior discussions, sends them to a local
Ollama chat model, and prints the answer followed by the file:line citations it
drew on. Useful flags: --no-forum (code only), -k N (more context),
--model (override the chat model), and --context-only, which prints the
assembled context instead of generating — paste it into Claude or any other
model when you want a stronger answer than the local one.
./csbot status
./csbot kb warp-group archives/more-threads.mboxstatus shows chunk/document counts per source and flags repos whose path has
gone missing. kb adds discussion knowledge to an existing project later.
Two models are involved and they are configured separately in config.json:
embedding_model (used for indexing and search — changing it invalidates every
index) and chat_model (used only by csbot ask to write the answer).
Related MCP server: Acemcp
Components
The csbot wrapper is thin; the pieces underneath stay usable on their own.
File | Purpose |
| Single CLI entry point: |
| Config, Ollama embeddings, on-disk vector index, chunk metadata |
| Build/update indexes: repos (incremental), mbox archives, text/JSON dumps |
| MCP stdio server: |
| Shell CLI: |
| Which repos and corpora exist, embedding model, chunking params |
Everything is local: embeddings come from Ollama, indexes are .npz files of
L2-normalized vectors, search is a dot product. No external services.
Setup
pip install -r requirements.txtollama pull embeddinggemma:300membeddinggemma:300m is the default embedding model: ~600 MB and 768-dim,
which keeps indexing and query latency sane on Apple silicon.
Vectors from different embedding models are not comparable, so changing
embedding_model invalidates every index. index/manifest.json records which
model built the indexes: csbot update refuses to write into a mismatched index,
and the query paths warn instead of returning nonsense. To switch models,
delete index/ and rebuild.
Each family also wants its own query/document prefixes (Qwen's Instruct:
block, Gemma's task: search result | query:, Nomic's search_query:). These
live in EMBED_PROFILES in cs_common.py and are selected automatically from
the model name — add an entry there if you use something else.
Because embeddinggemma's context window is 2048 tokens, chunk_size defaults
to 100 lines with 25 lines of overlap. If you move to a long-context embedder
such as nomic-embed-text (8192), raising chunk_size back to 200 is safe.
Then use csbot init to register codebases, or edit config.json by hand:
repos— name → path of each checkout you want searchable (relative paths resolve against this directory;~works).corpora— name → directory holding forum/mailing-list documents as JSON.
Direct access to the layers
csbot covers the normal workflow; these are the same operations unwrapped, for
scripting or partial re-indexing.
Indexing
python3 cs_index.py reposWalks every configured repo, chunks source files into overlapping line
windows (chunk_size/chunk_overlap), and embeds them. It checksums each file, so re-running only re-embeds
what changed — run it after a git pull.
python3 cs_index.py mbox warp-group archive.mboxImports a mailing-list archive (Google Groups exports an mbox) into a corpus.
cs_index.py text <corpus> <dir> does the same for a directory of .txt,
.md, or .json posts — use it for scraped forum threads; JSON items may
carry id, title, author, date, body, url.
python3 cs_index.py statusShows chunk/document counts per source and flags repos whose path is missing.
Querying from the shell
python3 cs_query.py code "how are CTF parameters fitted" --repo warp --showpython3 cs_query.py forum "tilt series stuck at 0%"python3 cs_query.py context "why does frame series alignment deselect items" --repo warp --forumcontext prints a paste-ready block — question, matching source with line
numbers, optionally prior discussions — for feeding to a model that has no
tools of its own.
Querying from an LLM (MCP)
.mcp.json registers the server — edit the placeholder path to point at your
clone, then copy the block into any project's .mcp.json (or your MCP client's
config) and the model gets four tools:
list_sources()— what's indexedsearch_code(query, repo="", top_k=5)— file + line range + scoreread_code(repo, file, start_line, end_line)— the actual linessearch_forum(query, corpus="", top_k=5)— prior discussions
The server loads indexes into memory at startup, so restart it after re-indexing.
Guidance worth putting in your CLAUDE.md (or system prompt): search code with
a targeted query derived from the question, read the real source before
answering, and treat forum hits as leads rather than truth — archived answers
go stale when the software changes.
Reusing the warpembot data
The 2188-message Google Group corpus is already in corpora/warp-group/, copied
from ../warpembot-public/threads/. load_doc maps the old
message_id/subject/sender keys onto id/title/author, so it needs no
conversion — only re-embedding:
python3 cs_index.py rebuild warp-groupThe prebuilt .npz indexes that shipped with warpembot were built with
qwen3-embedding:8b and are therefore unusable under the current model. They
are parked in index_qwen8b_legacy/ — delete that directory once the rebuild
is done, or restore it if you ever switch back.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseAqualityFmaintenanceProvides code repository indexing and semantic search capabilities, allowing natural language queries to find relevant code snippets with automatic incremental indexing and multi-language support.127359ISC
- AlicenseAqualityDmaintenanceProvides intelligent semantic code search using local AI embeddings, enabling natural language queries to find relevant code by meaning rather than exact keywords. Indexes codebases in the background with smart project detection and privacy-first local processing.636199MIT

Semantic Code Search MCPofficial
Flicense-qualityDmaintenanceProvides AI coding agents with structured access to indexed codebases via semantic search, symbol analysis, and file reading tools.12
Related MCP Connectors
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
Token-efficient search for coding agents over public and private documentation.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shahpnmlab/codesearch-bot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server