code-tree-mcp
Provides tools to index and query symbols and dependencies in JavaScript codebases.
Provides tools to index and query symbols and dependencies in Python codebases.
Provides tools to index and query symbols and dependencies in TypeScript codebases.
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., "@code-tree-mcpindex my codebase at /home/user/project"
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.
code-tree-mcp
An MCP server in Node.js + TypeScript that indexes source code into a local code-tree database for:
JavaScript / TypeScript
Java
Python
The server stores symbols and dependencies per file and exposes MCP tools to query the indexed tree.
Features
Incremental indexing based on file modification time
Local persisted database in
.code-tree/code-tree.dbSymbol extraction for classes, interfaces, types, functions, and methods (language-dependent)
Dependency extraction for imports/requires/packages
MCP tools for indexing, listing tree data, symbol search, and dependency queries
Related MCP server: code-context-mcp
Install
npm installBuild
npm run buildRun
npm run startFor development:
npm run devMCP Tools
The server exposes these tools:
index_codebaseInputs:
workspacePath(required, absolute path)forceReindex(optional boolean)
get_code_treeInputs:
workspacePath(required)pathPrefix(optional, workspace-relative prefix)limit(optional)
get_file_symbolsInputs:
workspacePath(required)filePath(required, workspace-relative)
search_symbolsInputs:
workspacePath(required)query(required)language(optional:javascript,typescript,java,python)nodeType(optional:module,class,interface,type,function,method)limit(optional)
get_dependenciesInputs:
workspacePath(required)filePath(optional)dependency(optional)limit(optional)
Example MCP Server Configuration
Use your MCP client configuration format to register:
{
"mcpServers": {
"code-tree": {
"command": "node",
"args": ["/absolute/path/to/code-tree-mcp/dist/index.js"]
}
}
}During active development, you can point to TS entry via tsx:
{
"mcpServers": {
"code-tree": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/code-tree-mcp/src/index.ts"]
}
}
}Notes
This implementation uses robust regex-based parsing for broad compatibility.
For deeper AST-level semantic analysis, the parser layer can be upgraded per language.
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
- Flicense-qualityDmaintenanceAn MCP server that indexes local Python projects into a SQLite database to enable efficient symbol searching and dependency tracking. It allows users to find function or class definitions, trace module imports, and read file contents through natural language interfaces.Last updated
- Alicense-qualityAmaintenanceIndexes codebases into a SQLite database to provide metadata, exports, dependency graphs, and change tracking for JS/TS projects. It enables users to search for symbols, map internal dependencies, and monitor file changes through MCP tools and a web dashboard.Last updated1544MIT
- Alicense-qualityBmaintenanceMCP server for local-first lexical code search, providing tools for searching code, finding symbols, and reading chunks from indexed repositories.Last updatedMIT
- Alicense-qualityDmaintenanceMCP server for semantic code search and dependency graph analysis. Indexes codebases into a knowledge graph with vector embeddings for AI-powered code understanding.Last updated17MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server for deep research or task groups
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/markgregg/code-tree-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server