Codebase MCP
コードベース MCP
RepoMixを使用してコードベース全体を取得および分析するためのツールを提供するモデルコンテキストプロトコル (MCP)サーバー実装。
この MCP により、Cursor の Composer Agent などの AI エージェントはコードベース全体を一度に自動的に読み取って理解できるようになり、開発者は大規模なコードベースでの作業が容易になり、AI アシスタントはプロジェクトの包括的なコンテキストを把握できるようになります。
特徴
📚コードベースの取得: コードベース全体を単一のテキスト出力としてさまざまな形式 (XML、Markdown、Plain) で取得します。
🌐リモートリポジトリのサポート:リモートGitHubリポジトリを直接処理します
💾ファイル保存: 処理されたコードベースをファイルに保存します
🔧カスタマイズ可能なオプション: さまざまなオプション (コメント、行番号、ファイルの概要など) を使用して、コードベースの処理方法を制御します。
Related MCP server: CodeAlive MCP
インストール
NPMから(推奨)
# Install the package globally
npm install -g codebase-mcp
# Install RepoMix (required dependency)
codebase-mcp installGitHubから
# Clone the repository
git clone https://github.com/DeDeveloper23/codebase-mcp.git
# Navigate to the project directory
cd codebase-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Install globally
npm install -g .
# Install RepoMix (required dependency)
codebase-mcp installカーソルとの統合
この MCP を Cursor の Composer Agent で使用するには:
オープンカーソルIDE
サイドバーのComposerアイコンをクリックします
上部の「MCPサーバー」ボタンをクリックします
「新しいMCPサーバーを追加」をクリックします
詳細を入力してください:
名前:
Codebase MCP(または任意の名前)タイプ:
commandコマンド:
codebase-mcp start
「追加」をクリックして保存します
MCP を追加すると、Composer Agent に 3 つの強力なツールが提供されます。
利用可能なツール
コードベースを取得する
目的: 現在のワークスペース/プロジェクトを分析する
使用する場合: AIにコードベース全体を理解させたい場合
プロンプトの例:「コードベースを分析して構造を理解してください」
リモートコードベースを取得する
目的: 公開されているGitHubリポジトリを取得して分析する
使用する場合: 他のプロジェクトを探索したり理解したりしたい場合
プロンプトの例:「github.com/username/repo のリポジトリを分析できますか?」
コードベースを保存
目的: コードベース分析を後で使用するためにファイルに保存します
使用する場合: コードベースのスナップショットを保存したり共有したりしたい場合
プロンプトの例:「このコードベースの分析を保存して、後で確認します」
カーソルでの使用例
Composer Agent で使用できるプロンプトの例を次に示します。
"Analyze my current project and explain its main components."
"Can you look at the tensorflow/tensorflow repository and explain how their testing framework works?"
"Save an analysis of my project to 'codebase-analysis.md' in markdown format."Composer Agent は、リクエストに応じて適切なツールを自動的に使用します。
カーソル外での使用
MCPサーバーの起動
codebase-mcp startこれにより、MCP サーバーが stdio モードで起動され、MCP 互換のクライアントであればどれでも使用できるようになります。
ライセンス
マサチューセッツ工科大学
Available Tools
3 toolsgetCodebaseC
Retrieve the entire codebase as a single text output using RepoMix
Inputs: cwd, format, ignorePatterns, includeDirectoryStructure, +5 more.
getRemoteCodebaseC
Retrieve a remote repository's codebase as a single text output using RepoMix
Inputs: repo (required), format, ignorePatterns, includeDirectoryStructure, +5 more.
saveCodebaseC
Save the codebase to a file using RepoMix
Inputs: cwd, format, ignorePatterns, includeDirectoryStructure, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have distinct purposes: retrieving local codebase, retrieving remote codebase, and saving codebase. While 'getCodebase' and 'getRemoteCodebase' both retrieve code, the local/remote distinction is clear. There's minor potential confusion about whether 'saveCodebase' saves the local or remote version, but overall boundaries are well-defined.
All tools follow a consistent verb_noun pattern with camelCase styling: getCodebase, getRemoteCodebase, saveCodebase. The naming is predictable and follows the same grammatical structure throughout, making it easy for agents to understand the action-object relationship.
With only 3 tools, this feels quite minimal for a 'Codebase MCP' server. While the tools cover basic retrieval and saving operations, the scope seems limited - there are no tools for searching, analyzing, modifying, or managing codebase components. The count is borderline thin for what could be expected from a codebase management system.
For a codebase management server, there are significant gaps in functionality. The tools only provide retrieval and saving operations using RepoMix, but lack any tools for code analysis, search, modification, version control operations, or component management. This creates a dead-end surface where agents can only get and save entire codebases without any ability to work with code meaningfully.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that gives your AI access to the source code and docs of all public github repos
The context platform for AI agents: code search, team decisions, and grounded project context.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup22142,766 PyPI1,005MIT

CodeAlive MCPofficial
AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.91MIT- AlicenseAqualityDmaintenanceAn enterprise-grade Model Context Protocol server that provides comprehensive GitHub repository analysis and AI-powered development assistance through 11 streamlined tools.112MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI applications to access and analyze local code repositories without manual uploads, providing file listing, content reading, code searching, and project structure analysis capabilities.7MIT
Appeared in Searches
- Code intelligence tools for LLMs to understand codebase structure and locate functionality
- A tool for reading, understanding, and summarizing code in GitHub repositories
- A tool for managing entire project code context
- MCP server for contextual codebase analysis and task-focused code understanding
- MCP server for code understanding and agent context initialization