Vera logo

Vera

Offline MCP code search with hybrid retrieval, structural navigation, and ranked results for local repositories.

Install Vera

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "vera": {
      "command": "npx",
      "args": [
        "-y",
        "@vera-ai/cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The vera MCP server exposes local code search and repository navigation through seven MCP tools. It combines BM25 keyword matching, vector similarity, optional cross-encoder reranking, and tree-sitter parsing to return relevant symbols, paths, line ranges, and metadata. Vera runs as a native stdio process, builds project indexes locally, and can index automatically when a search arrives. Reach for it when an agent needs to understand an unfamiliar codebase without broad file reads or a remote search service.

Use cases

  • Search an unfamiliar repository for an implementation
  • Trace callers and callees across source files
  • Find definitions, routes, or environment-variable usage
  • Scan compact symbol signatures before reading implementations

Key features

  • Hybrid BM25 and vector code retrieval
  • Optional cross-encoder reranking
  • Tree-sitter symbol parsing across supported languages
  • Structural searches for definitions and references
  • Local indexes with automatic first-search indexing
  • Seven MCP tools over stdio

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 33d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @vera-ai/cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars155Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Vera works

What vera MCP server does

vera provides code retrieval and structural navigation for local repositories through the Model Context Protocol. It is designed for coding agents that need to locate implementations, understand repository structure, trace references, and inspect relevant code while limiting unnecessary context.

The server returns ranked code results with file paths, line ranges, and symbol information. It can search by exact terms or natural-language descriptions, and it supports structural queries for definitions, references, routes, environment variables, SQL, and implementations. Results can include complete symbol bodies or compact signatures for an initial scan.

Vera operates entirely on the machine running it. Each project keeps its index in a .vera/ directory, without requiring a background daemon or database server.

How it works

Run vera mcp to start the MCP server over stdio. On the first search, Vera can create an index if one is not already available, then watch for file changes during the session. The server also accepts repository selectors for multi-repository queries through repo and repos.

Indexing uses tree-sitter to identify functions, classes, methods, structs, and traits across supported programming languages. Configuration files and documentation use fallback chunking strategies such as sections, whole files, or line windows. Search combines BM25 and vector similarity, then can apply cross-encoder reranking and code-aware preferences for definitions and source files. A full-text-only index uses BM25 without model-based retrieval.

Embeddings can run locally on CPU with Potion Code after its model download, or through an OpenAI-compatible API. The resulting index, search, and ranking work locally apart from any configured embedding API calls.

Setup and configuration

Install the native executable through one of the published package entry points:

  • npx -y @vera-ai/cli install
  • bunx @vera-ai/cli install
  • uvx vera-ai install

Choose a model backend with vera setup, or use vera setup --potion-code for local CPU embeddings or vera setup --api for an API backend. Index a repository before use with vera index .; vera update . and vera watch . handle changed files afterward.

For an MCP client, register the stdio command with an entry such as:

config.json
{"mcpServers":{"vera":{"command":"vera","args":["mcp"]}}}

Claude Code can add the same configuration with claude mcp add vera -- vera mcp. The MCP setup also covers Codex, Cursor, Windsurf, and VS Code.

Tools and capabilities

The MCP interface exposes these tools:

  • search_code for ranked keyword or natural-language code retrieval.
  • get_overview for repository orientation.
  • regex_search for regular-expression searches.
  • structural_search for symbol and code-structure queries.
  • find_references for callers and related references.
  • explain_path for path-oriented code explanations.
  • get_stats for index and repository statistics.

The underlying CLI supports multi-query searches, compact signature output, dependency-source indexing, and structural modes for definitions, references, routes, environment variables, SQL, and implementations.

Limitations and notes

Vera is aimed at code discovery. Its installed agent guidance routes exact-string searches, match counts, file-name lookups, find-and-replace work, and unindexed-file inspection to tools such as rg or direct file reads instead of Vera search. Non-code questions should also bypass the code search tools.

The MCP process uses stdio rather than a network transport. API-based embeddings require a configured OpenAI-compatible service; local embedding mode requires the model download before it can operate offline. Repository indexes are local and should be refreshed after source changes when automatic watching is not being used.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Vera

Use `vera update .` or `vera watch .` to re-index changed files. The MCP process also watches for file changes while running, and it can build an index automatically on the first search when one is needed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewVera AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/vera?style=directory)](https://allmcps.com/mcp/vera)
HTML Embed
<a href="https://allmcps.com/mcp/vera"><img src="https://allmcps.com/api/badge/vera?style=directory" alt="Vera on AllMCPs" /></a>