Code Context Provider MCP
@AB498
About Code Context Provider MCP
MCP server that provides code context and analysis for AI assistants. Extracts directory structure and code symbols using WebAssembly Tree-sitter parsers with Zero Native Dependencies.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"code-context-provider-mcp": {
"command": "npx",
"args": [
"code-context-provider-mcp"
]
}
}
}Tools
1Returns Complete Context of a given project directory, including directory tree, and code symbols. Useful for getting a quick overview of a project. Use this tool when you need to get a comprehensive overview of a project's codebase. Useful at the start of a new task.
Overview
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
FAQ from Code Context Provider MCP
What programming languages does Code Context Provider MCP support?
Code symbol analysis supports JavaScript (.js), JSX (.jsx), TypeScript (.ts), TSX (.tsx), and Python (.py) files. Other file types can be included in the directory structure via filePatterns, though symbol extraction may be limited.
What parameters does the get_code_context tool accept?
It requires absolutePath (string) and accepts optional booleans analyzeJs and includeSymbols, an enum symbolType (functions, variables, classes, imports, exports, all), an array filePatterns, and a number maxDepth (default 5). Anonymous functions are automatically filtered from results.
How can I handle large projects with Code Context Provider MCP?
Use the maxDepth parameter to limit directory traversal: maxDepth: 0 for root only, 2 for one subdirectory level, etc. This is useful for monorepos or projects with many dependencies.
How do I install Code Context Provider MCP?
You can install via Smithery (npx -y @smithery/cli install @AB498/code-context-provider-mcp --client claude), run with npx directly, or install globally with npm install -g code-context-provider-mcp and then run code-context-provider-mcp.
Does Code Context Provider MCP require any native dependencies?
No. It uses WebAssembly Tree-sitter parsers, so it has zero native dependencies and runs out of the box with Node.js.
More Developer Tools MCP servers
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
MCP Framework
QuantGeekDevThe Typescript MCP Framework
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Comments