MCP Server for CodeTree - Query code repositories from Claude Desktop and other MCP clients
Project description
CodeTree MCP Server
MCP (Model Context Protocol) server for CodeTree. Query code repositories using natural language from Claude Desktop, Cline, Continue, and other MCP-compatible clients.
Installation
pip install codetree-mcp
Setup for Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"codetree": {
"command": "codetree-mcp",
"env": {
"OPENAI_API_KEY": "sk-your-key-here"
}
}
}
}
Restart Claude Desktop after configuration.
Available Tools
| Tool | Description |
|---|---|
codetree_index |
Index a repository (required before other operations) |
codetree_query |
Ask natural language questions about code |
codetree_tree |
Show the hierarchical code structure |
codetree_find |
Find all references to a symbol |
codetree_stats |
Get repository statistics |
Usage in Claude
Once configured, ask Claude:
- "Use codetree to index /path/to/my/project"
- "Query the codebase: how does authentication work?"
- "Show me the code structure"
- "Find all references to UserService"
Requirements
- Python 3.10+
- OpenAI or Anthropic API key (for LLM queries)
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codetree_mcp-0.1.0.tar.gz.
File metadata
- Download URL: codetree_mcp-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
218e5d9bb32192efbbf9580c270f87b7a4c62f5adc8e922761fb75276594fb48
|
|
| MD5 |
3df3a27d7f111dc93f3a4691b9539a85
|
|
| BLAKE2b-256 |
5975760f308eb8ba17f9cedd83feede2847f4fe6bb40d733df74cfc36b324310
|
File details
Details for the file codetree_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: codetree_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c30245ed03c0c2263e749695aef92a993ff7cd956053ca4940508df561a758b
|
|
| MD5 |
82b50db062c7dc48e911d51036fe270f
|
|
| BLAKE2b-256 |
ee2961c3fe318afd6e6003b93aa542a9bc046913688e8cb61792bb4e971e0acc
|