# vera [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/VeraTools/vera  
**GitHub Stars:** 155  
**npm Downloads (last month):** 1404  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/vera

## Description
Local code search combining BM25, vector similarity, and cross-encoder reranking. Parses 60+ languages with tree-sitter, runs entirely offline, and returns structured results with file paths, line ranges, and symbol metadata. Built in Rust.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "vera": {
    "command": "npx",
    "args": ["-y","@vera-ai/cli"]
  }
}
```

## Documentation

## 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:

```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.

_Full upstream README: https://allmcps.com/mcp/vera/readme_

