Agentsbestfriend logo

Agentsbestfriend

Indexes local codebases for compact search, navigation, dependency analysis, diagnostics, and controlled refactoring through MCP.

Install Agentsbestfriend

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": {
    "agentsbestfriend": {
      "command": "npx",
      "args": [
        "-y",
        "agentsbestfriend"
      ],
      "env": {
        "ABF_ENABLE_WRITES": "YOUR_VALUE_HERE",
        "ABF_PROJECT_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y agentsbestfriend

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The agentsbestfriend MCP server indexes a local project and exposes compact code search, navigation, dependency analysis, diagnostics, Git inspection, and refactoring tools. It maintains a SQLite index under the project root, updates changed files incrementally, and can use Ollama for summaries and semantic embeddings. Use it when an AI coding agent needs symbol-aware context instead of repeatedly reading whole files. The server runs over stdio and can be configured through the included CLI or an MCP client configuration.

Use cases

  • Search a large repository with compact, ranked results
  • Trace symbol usage and reverse-import risk before editing
  • Inspect definitions, types, callers, and related tests
  • Preview refactoring changes without writing files
  • Index a local project for an MCP coding agent

Key features

  • Exact, keyword, semantic, and multi-query code search
  • AST-aware symbols, definitions, impact analysis, and call graphs
  • SQLite indexing with incremental updates and file watching
  • Dependency graphs, blast-radius scoring, and test ranking
  • TypeScript diagnostics, Git inspection, and convention detection
  • Optional guarded atomic file edits

Tools22

What Agentsbestfriend lets your agent do. Expand a tool for its parameters.

Self-reported~465 tokens of context

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.

25/29 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · agentsbestfriend (npm)

Adoption & maintenance

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

npm downloads306Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed22Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Agentsbestfriend works

What agentsbestfriend MCP server does

The agentsbestfriend MCP server gives coding agents structured access to a local repository. It can search source code with exact, keyword-ranked, or embedding-based methods; combine several searches; inspect symbols; retrieve file sections; and summarize a project's technology stack, directory layout, and dependencies.

Analysis tools cover import relationships, symbol usage, reverse-import blast radius, likely related tests, TypeScript diagnostics, definitions, hover information, and transitive call graphs. Git support includes log, blame, and recent, staged, or unstaged diff data. Read-only change planning can produce a preview or an ordered refactoring plan for operations such as rename, move, extract, or split.

A write operation is available through abf_apply_edit, but it is disabled unless ABF_ENABLE_WRITES=1 is set. When enabled, the tool performs an atomic file write with a SHA-256 hash check.

How it works

The server keeps a lightweight SQLite database at .abf/index.db in each project root. Files are discovered through git ls-files, and changed files are reprocessed incrementally. A watcher can keep the index current while files are edited. The database stores file metadata and summaries, extracted symbols, import edges, embeddings, smart chunks, and an FTS5 index over summaries.

TypeScript and JavaScript analysis uses AST-based processing, including ts-morph for typed impact analysis and call graphs. Python symbol extraction uses regular expressions. File chunks can follow symbol boundaries, which helps tools return focused context rather than entire files.

Ollama is optional. If it is running, the indexer can create file summaries with qwen2.5-coder:1.5b and embeddings with nomic-embed-text. Without Ollama, the tools remain available and semantic search falls back to keyword search.

Setup and configuration

Install the package globally with npm install -g agentsbestfriend, then run abf init. Initialization indexes the project, optionally generates summaries and embeddings, adds .abf/ to .gitignore after prompting, and guides MCP setup for supported agents.

The server itself starts in stdio mode with abf start. An MCP client can launch npx agentsbestfriend start; set ABF_PROJECT_ROOT in the client environment when the client does not provide the working directory. The CLI also provides commands for indexing, status checks, configuration, health checks, and the interactive portal.

Global settings are stored in ~/.abf/config.json. Configuration covers the Ollama endpoint and models, automatic watching, Git-ignore handling, maximum file size, excluded patterns, and the default result count.

Tools and capabilities

The agentsbestfriend MCP server exposes tools for:

  • Exact, keyword, semantic, and multi-query code search.
  • Symbols, chunks, definitions, hover data, diagnostics, and call graphs.
  • Project overview, dependencies, conventions, file-summary search, and index management.
  • Impact analysis, blast-radius scoring, related-test ranking, and Git inspection.
  • Read-only change previews and refactoring plans, plus optional guarded file writes.

Limitations and notes

The server requires Node.js 20 or newer, ripgrep, and Git. Ollama is not required, but semantic search and LLM-generated summaries depend on it. Language coverage differs by feature: AST-oriented capabilities target TypeScript and JavaScript, while Python symbol discovery uses regex-based extraction. The write tool is off by default and must be explicitly enabled.

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 Agentsbestfriend

agentsbestfriend is an MCP server that connects AI coding agents to a locally indexed project. Its main tools provide exact, keyword, and semantic code search, symbol and definition lookup, dependency and impact analysis, diagnostics, Git inspection, refactoring previews, and optional guarded file edits.

Install it with `npm install -g agentsbestfriend`, then run `abf init`. The initializer indexes the project and guides MCP configuration. You can also configure a client to launch `npx agentsbestfriend start` in stdio mode.

Yes, agentsbestfriend works with Cursor through a stdio MCP entry in `.cursor/mcp.json`. Configure the server command as `npx` with `agentsbestfriend` and `start` as arguments, and set `ABF_PROJECT_ROOT` if Cursor does not pass the project directory.

No, Ollama is optional. All tools continue to work without it, while semantic search falls back to keyword mode. Running Ollama enables generated file summaries and embeddings during indexing.

Set `ABF_ENABLE_WRITES=1` before starting the server. This enables `abf_apply_edit`, which performs an atomic write with a SHA-256 hash check; the tool is disabled by default.

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 PreviewAgentsbestfriend AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentsbestfriend?style=directory)](https://allmcps.com/mcp/agentsbestfriend)
HTML Embed
<a href="https://allmcps.com/mcp/agentsbestfriend"><img src="https://allmcps.com/api/badge/agentsbestfriend?style=directory" alt="Agentsbestfriend on AllMCPs" /></a>