# codeweave [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/semihkayan/codeweave-mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 403  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/codeweave

## Description
Structured code intelligence for AI agents — semantic search, dependencies, impact analysis.

## Tools
Capabilities this server exposes over MCP:

- **semantic_search** — Search by meaning — finds functions even when you don't know exact names. Hybrid vector + keyword search with density-based reranking.
- **reindex** — Manually trigger index update. Usually unnecessary — file watcher auto-reindexes on changes.
- **get_index_status** — Index health dashboard: file/function counts, embedding status, call graph stats, language breakdown.

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

```json
"mcpServers": {
  "codeweave": {
    "command": "npx",
    "args": ["-y","@codeweave/mcp"]
  }
}
```

## Documentation

## What codeweave MCP server does

The codeweave MCP server gives AI agents a local index of source-code structure rather than requiring them to inspect complete files. It extracts functions, methods, classes, interfaces, imports, calls, and type relationships from supported languages. The resulting data supports semantic retrieval, structural ranking, and index-health reporting.

Supported languages are Python, TypeScript, JavaScript, Go, Rust, Java, and C#. Parser coverage varies by language, but the repository documents support for functions or methods, imports, calls, types, and test detection across these language families. Standard-library call filtering and AST-based classifications help reduce dependency-analysis noise.

## How it works

CodeWeave uses tree-sitter to parse source files and maintains an in-memory function index. It also creates call and type graphs, stores vector data in LanceDB, and maintains a BM25 full-text index. Qwen3-Embedding-0.6B, served locally through Ollama, supplies embeddings for semantic retrieval.

Search combines several stages: exact name matching, vector retrieval, BM25 keyword search, reciprocal rank fusion, name-match boosting, and density-based reranking. Density signals include body size, documentation, parameter count, call-graph centrality, visibility, and code kind. Accessors, constructors, and test files receive penalties intended to keep routine code from dominating results.

A file watcher detects changes and incrementally reindexes affected files. The MCP process can expose its tools before indexing has fully completed. If Ollama cannot be reached, semantic search falls back to full-text search.

## Setup and configuration

Run the server from the project directory with `npx @codeweave/mcp`. The setup wizard installs the package globally, installs Ollama if necessary, downloads the embedding model, configures Claude Code or VS Code, and indexes the project. The first run requires a one-time download of Ollama and the embedding model. Node.js version 20 or newer is required.

The codeweave MCP server works without configuration for a basic project. Optional settings can be placed in `.code-context/config.yaml`. The documented options include multiple workspaces, the embedding model and Ollama URL, vector dimensions, embedding batch size, a source-root prefix, and additional ignore patterns. Search configuration also includes the reciprocal-rank-fusion parameter `rrfK`.

## Tools and capabilities

- `semantic_search` finds relevant functions by meaning and by keywords, including cases where the exact function name is unknown.
- `reindex` manually starts an index update. It is generally unnecessary when the file watcher is operating normally.
- `get_index_status` reports file and function counts, embedding state, call-graph statistics, and language distribution.

## Limitations and notes

The codeweave MCP server is actively developed, so behavior and available capabilities may change as new work is released. Embedding-based retrieval depends on Ollama and its local model; without Ollama, searches use full-text matching only. The server is designed for local indexing and communicates with MCP clients over stdio.

The README explicitly describes setup for Claude Code and VS Code and identifies Cursor as an MCP-compatible client. The material does not document remote hosting, authentication, environment variables, or a separate HTTP transport. No standalone MCP tool for dependency or impact analysis is listed; those relationships are represented internally through the call and type graphs and surfaced through search ranking or index-status information.

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

