MCP Tree-sitter Server / Studio
Click on "Deploy 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 Tree-sitter Server / Studioregister the project at /workspace and list symbols in src/index.ts"
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 Tree-sitter Server / Studio
Servidor Model Context Protocol para análise de código com Tree-sitter (WASM), com uma UI web (editor Monaco, explorador de AST, consultas, complexidade, similaridade, Git e console SQLite).
Backend: Node.js (>= 22.5) + Express,
web-tree-sitter+tree-sitter-wasms, SQLite (node:sqlite).Frontend: React 18 + Vite + Tailwind.
MCP: JSON-RPC 2.0 em
POST /api/mcp; stream SSE emGET /mcp/sse.
Instalação e execução
npm ci
cp .env.example .env # ajuste os valores
npm run dev # modo desenvolvimento (auth opcional, Vite embutido) em http://127.0.0.1:3000Produção:
npm run build
MCP_API_KEYS=troque-esta-chave npm startCom Docker (auth ligada, usuário não-root, sistema de arquivos somente leitura, volume para o SQLite):
MCP_API_KEYS=troque-esta-chave docker compose up --buildMétricas Prometheus em GET /api/metrics (exige o mesmo Bearer). Logs JSON em stderr; X-Request-Id em todas as respostas.
Fora do modo dev (--dev / NODE_ENV=development) a autenticação é obrigatória e o servidor não sobe sem MCP_API_KEYS ou MCP_JWT_SECRET.
Related MCP server: ACE-MCP
Segurança
Controle | Variável | Padrão |
Autenticação Bearer (API key / JWT HS256) em |
| ligada fora do modo dev |
Origens CORS permitidas |
|
|
Raízes permitidas para |
|
|
Console SQL com escrita |
|
|
Interface de rede |
|
|
/api/health é público. A UI pede o token quando o servidor responde 401 e o guarda apenas em sessionStorage. Detalhes dos contratos em docs/04-governance/api-specification.md.
Usando com um cliente MCP
Aponte o cliente para http://127.0.0.1:3000/api/mcp enviando Authorization: Bearer <chave>. Ferramentas principais: register_project_tool, list_files, get_ast, get_symbols, run_query, find_references, analyze_complexity, find_similar_code, search_text, find_dependencies, audit_project_isolation. A lista completa vem de tools/list.
Desenvolvimento
npm run lint # tsc --noEmit
npm test # vitest
npm run buildVeja AGENTS.md (arquitetura e regras) e CONTRIBUTING.md. A documentação da implementação Python original está em docs/legacy-python/ apenas como histórico.
Licença
Veja LICENSE e NOTICE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceStandalone MCP server for code structure analysis using tree-sitter. Directory trees, symbol definitions, and call graphs without reading raw source files. Supports Rust, Python, Go, Java, TypeScript, Fortran, JavaScript, C/C++, and C#. Benchmarked up to 68% fewer tokens vs native tools.6Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMulti-language code intelligence MCP server providing structured code analysis including symbol search, references, hierarchies, and change impact. Supports 25 languages with persistent indexing and LSP integration.44 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides a code graph querying and visualization MCP server, enabling users to search, trace, and describe code components, overlay diffs, and explore architecture through natural language.MIT