Codebase Context MCP
C

Codebase Context MCP

An MCP server for cross-platform codebase indexing and searching, using WASM technology to replace native dependencies, capable of running seamlessly on ARM64 and x86_64 architectures, providing code parsing, symbol search, and project analysis functions.
2 points
4.8K

What is codebase-context-mcp?

codebase-context-mcp is a Model Context Protocol server that provides intelligent indexing and searching functions specifically for codebases. It can parse your project code, extract symbol information such as functions, classes, and variables, and provide fast and accurate code search functions. Different from traditional code search tools, it is completely built on WebAssembly technology and does not require the installation of any native C++ dependencies, so it can run on any platform, including devices with ARM64 architecture.

How to use codebase-context-mcp?

You can use this server through Claude Code or by directly configuring MCP settings. After installation, it will automatically index your codebase, and then you can search for code, view the file structure, and obtain project overviews and other information through natural language queries. The entire process is fully automated, without the need for manual configuration of complex search services.

Applicable scenarios

• Quickly find the definitions of specific functions or classes in a large codebase • Understand the structure and technology stack of a newly taken-over project • Conduct code analysis and search on ARM devices such as Raspberry Pi • Quickly understand the project architecture during team collaboration • Quickly locate relevant code during code review

Main features

Full-platform compatibility
Using pure WASM technology, without native dependencies, supporting x86_64 and ARM64 architectures, including devices such as Raspberry Pi, Apple Silicon Mac, and AWS Graviton.
Intelligent code indexing
Automatically parse the codebase, extract symbol information (functions, classes, types, etc.), and build a searchable index.
Fast code search
Provides two search methods: symbol search (search by name) and full-text search (BM25 algorithm), supporting fuzzy matching.
File structure analysis
Generate a detailed outline of the file, including functions, classes, import and export statements, and their line numbers.
Project overview
Automatically analyze the project's technology stack, file type distribution, and directory structure to help quickly understand the project.
Incremental indexing
Only re-index the files that have changed, significantly improving the efficiency of repeated indexing.
Advantages
True cross-platform support: No need to compile native dependencies on ARM64 devices
Zero-configuration installation: Just use 'npm install' and no complex environment configuration is required
Lightweight: Using pure JavaScript and WASM, with low resource consumption
Seamless integration with Claude: Directly communicate with Claude through the MCP protocol
Intelligent ignoring: Automatically ignore irrelevant directories such as node_modules and.git
Support for mainstream languages: TypeScript, JavaScript, Python, C#, etc.
Limitations
Performance limitation: The WASM parsing speed may be slightly slower than the native implementation
File size limitation: Supports a maximum single file size of 512KB
Project scale limitation: Supports a maximum of 20,000 files
Limited language support: Currently supports 7 programming languages and does not support all languages
Requires manual triggering of indexing: Does not automatically monitor file changes

How to use

Install the server
Add the MCP server through the Claude Code command-line tool
Or manually configure
Add server settings to the MCP configuration file
Index the codebase
When using it for the first time, you need to index the codebase first
Start searching
After the indexing is completed, you can use various search tools to query the code

Usage examples

Find a specific function
When you need to find a function named 'calculateTotal' but are not sure which file it is in
Understand a new project
When you first take over a new project and need to quickly understand the project's technology stack and overall structure
Code review assistance
When conducting a code review, you need to view the complete structure of a file
Cross-file search
You need to find all code that uses a specific API or pattern

Frequently Asked Questions

Why can this tool work on Raspberry Pi while other similar tools cannot?
How much disk space will the index occupy?
Which programming languages are supported?
How to update the index?
Can certain files or directories be ignored?
What is the performance like? How large a project can it handle?

Related resources

GitHub repository
Project source code and latest updates
Model Context Protocol documentation
Official specification of the MCP protocol
Claude Code documentation
Claude Code usage guide
web-tree-sitter project
The WASM parser technology used

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "codebase-context": {
      "command": "npx",
      "args": ["codebase-context-mcp"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
16.2K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
10.6K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
9.2K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
7.8K
4 points
P
Paperbanana
Python
9.1K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
9.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.0K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.5K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
81.9K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.1K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
38.6K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.9K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
55.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase