MCP Codebase Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Codebase Serversearch for symbols matching 'UserService' in the services folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Codebase Server
MCP server for semantic codebase navigation. Builds an AST index of symbols, imports, and exports, providing high-level tools for an AI agent.
Features
Symbol search — finds functions, classes, interfaces, methods, etc. by name with wildcard (
*,?) and OR (|) supportSymbol details — shows source code, signature, documentation, and file imports
Module overview — directory structure, key symbols, subdirectories, top imports
Usage search — finds all references to a symbol in the project
Module dependencies — imports, exports, and files that use the given module
Reindexing — full or incremental (by mtime)
Watch mode — automatic index updates when files change
Related MCP server: codeweave-mcp
Supported Languages
Language | Parser | Symbols | Imports | Exports |
TypeScript / JavaScript | TypeScript Compiler API | ✅ | ✅ | ✅ |
C# | Regex-based (lightweight) | ✅ | ✅ (using) | ✅ (public) |
The architecture makes it easy to add new languages via the ILanguageParser interface.
Requirements
Node.js 18+
PostgreSQL 14+
Installation
npm install
npm run buildConfiguration
Environment variables:
Variable | Description | Default |
| Project root directory |
|
| PostgreSQL host |
|
| PostgreSQL port |
|
| Database name |
|
| PostgreSQL user |
|
| PostgreSQL password |
|
Integration with Kimi CLI
Add to kimi-mcp.json:
{
"mcpServers": {
"codebase": {
"command": "node",
"args": ["<path-to-mcp-codebase>/dist/index.js"],
"env": {
"PROJECT_ROOT": "<path-to-your-codebase>",
"PGHOST": "localhost",
"PGPORT": "5432",
"PGDATABASE": "codebase_index",
"PGUSER": "postgres",
"PGPASSWORD": "your_password"
}
}
}
}MCP Tools
search_symbols
Search symbols by name with filtering.
{
"query": "UserService|useAuth|*Controller",
"kind": "class|function",
"language": "typescript",
"file_path": "src/services",
"limit": 20
}get_symbol_details
Full information about a symbol.
{ "symbol_id": 123 }
// or
{ "name": "UserService", "file_path": "src/services/UserService.ts" }explore_module
Directory overview.
{ "path": "src/services", "depth": 1 }find_usages
Find symbol usages.
{ "name": "UserService", "file_path": "src/services/UserService.ts" }get_module_dependencies
File dependency graph.
{ "path": "src/services/UserService.ts" }reindex
Force reindexing.
{ "full": false }Architecture
src/
├── index.ts # MCP server
├── config.ts # Configuration
├── db/
│ ├── connection.ts # PostgreSQL pool
│ ├── schema.ts # DDL and migrations
│ └── repositories.ts # Database queries
├── indexer/
│ ├── file-crawler.ts # File traversal
│ ├── indexer.ts # Indexing orchestration
│ └── watcher.ts # Watch mode (chokidar)
├── parsers/
│ ├── interface.ts # ILanguageParser
│ ├── typescript.ts # TS/JS parser
│ └── csharp.ts # C# parser
├── tools/
│ ├── search-symbols.ts
│ ├── symbol-details.ts
│ ├── explore-module.ts
│ ├── find-usages.ts
│ ├── module-deps.ts
│ └── reindex.ts
└── utils/
├── gitignore.ts
└── paths.tsPerformance
On the lowcodeplatform project (~71K files, ~730 source files excluding node_modules/dist):
Full indexing: ~1.3 sec
Symbols in the index: ~5000
Symbol search: < 50 ms
Extending to Other Languages
Create a class implementing
ILanguageParserRegister it in
src/indexer/indexer.tsAdd the extension to
config.languageMap
Example:
export class PythonParser implements ILanguageParser {
readonly supportedExtensions = ['.py'];
readonly languageId = 'python';
parse(filePath: string, content: string): ParseResult | null { ... }
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server for semantic code search & navigation that helps AI agents work efficiently without burning through costly tokens. Instead of reading entire files, agents can search conceptually and jump directly to the specific functions, classes, and code chunks they need.Last updated118MIT
- Alicense-qualityBmaintenanceAn MCP server that gives AI agents structured code understanding and precise code intelligence via local indexing of AST, call graphs, and semantic search.Last updated964Apache 2.0
- Alicense-qualityDmaintenanceAST-aware codebase indexing with semantic search, exposed as an MCP server. Enables semantic search and file context retrieval across your codebase using natural language queries.Last updated101MIT
- Alicense-qualityDmaintenanceAn MCP server that indexes your codebase using tree-sitter AST parsing and gives AI tools instant access to structural intelligence like dependency graphs, call trees, and dead code detection from a local SQLite database.Last updatedMIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DmitriyOT/mcp-codebase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server