Codeweave logo

Codeweave

Local code intelligence for AI agents with semantic search, incremental indexing, and code-structure status reporting.

Install Codeweave

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": {
    "codeweave": {
      "command": "npx",
      "args": [
        "-y",
        "@codeweave/mcp"
      ]
    }
  }
}

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

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 @codeweave/mcp

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

Local code intelligence is the focus of the codeweave MCP server, which indexes source code into searchable structural data for AI agents. It parses seven languages, builds function indexes and code graphs, and combines vector search with BM25 keyword retrieval. A file watcher incrementally updates the index, while Ollama provides local embeddings when available. Reach for it when an agent needs relevant functions and code structure instead of entire file dumps.

Use cases

  • Search unfamiliar repositories by describing desired behavior
  • Find architecturally central functions during code investigation
  • Check indexing coverage and embedding status
  • Refresh the code index after manual changes

Key features

  • Hybrid semantic and BM25 code search
  • AST-based parsing for seven languages
  • Call and type graph indexing
  • Incremental file-watcher reindexing
  • Local Ollama embeddings
  • Index health and language statistics

Tools3

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

Self-reported~91 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.

15/15 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @codeweave/mcp (npm)

Adoption & maintenance

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

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

How Codeweave works

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.

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 Codeweave

codeweave is an MCP server that connects AI agents to local source-code indexes built from seven languages. Its main tools are semantic_search for hybrid meaning and keyword retrieval, reindex for manual updates, and get_index_status for indexing and graph statistics. It uses tree-sitter, LanceDB, and optional Ollama embeddings.

Run `npx @codeweave/mcp` from the project directory. The setup wizard installs the package, obtains Ollama and the embedding model if needed, configures Claude Code or VS Code, and indexes the project. Node.js 20 or newer is required, and the first run may take several minutes.

Yes, codeweave works with Cursor because the README identifies Cursor as an MCP-compatible client. The server communicates over stdio, while the documented quick-start configuration specifically handles Claude Code and VS Code.

Yes, codeweave can search without Ollama by falling back to full-text matching. Ollama is used for the embedding-based portion of semantic search, so unavailable embeddings reduce the search pipeline to keyword retrieval rather than preventing the server from operating.

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