What is Code Context Provider MCP?
Code Context Provider MCP is a Model Context Protocol server that provides code context and analysis for AI assistants. It extracts directory structure and code symbols using WebAssembly Tree-sitter parsers with zero native dependencies, compatible with the MCP protocol for seamless integration with AI assistants.
How to use Code Context Provider MCP?
Install via Smithery, npx, or npm global (code-context-provider-mcp@latest). Configure as an MCP server in your client’s mcpServers JSON with command npx -y code-context-provider-mcp@latest. Once connected, call the get_code_context tool with an absolute directory path and optional parameters for code analysis, symbol extraction, file patterns, and depth.
Key features of Code Context Provider MCP
- Generates directory tree structure
- Analyzes JavaScript/TypeScript and Python files
- Extracts code symbols (functions, variables, classes, imports, exports)
- Compatible with the MCP protocol for AI assistant integration
- Zero native dependencies (WebAssembly Tree-sitter)
- Configurable analysis depth and file patterns
Use cases of Code Context Provider MCP
- Provide a full codebase snapshot to an AI coding assistant
- Extract functions and classes from a project for refactoring
- Analyze specific file types in a large monorepo using file patterns
- Limit traversal depth to focus on root-level source code in huge projects
- Give AI assistants structured context about a directory’s contents
コメント