home / mcp / code context provider mcp server
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.
Configuration
View docs{
"mcpServers": {
"ab498-code-context-provider-mcp": {
"command": "npx",
"args": [
"-y",
"code-context-provider-mcp@latest"
]
}
}
}Code Context Provider MCP offers directory structure generation and code symbol analysis for AI assistants. It helps you surface project layout and key symbols from JavaScript, TypeScript, and Python files, enabling smarter code understanding and faster context-building for you and your AI workflows.
You connect your MCP client to the Code Context Provider MCP to request a directory tree and optional code symbols. The server analyzes the target project, returning a structured view of folders and files, along with functions, variables, classes, imports, and exports when you enable symbol extraction. This is useful for quickly grasping a codebase, navigating large repos, and providing richer context to AI assistants.
Prerequisites you need before installation:
Install the MCP server using the standard CLI command shown for MCP setup. You can install via npx or as a global package.
npx -y @smithery/cli install @AB498/code-context-provider-mcp --client claude{
"mcpServers": {
"code_context_mcp": {
"type": "stdio",
"name": "code_context_mcp",
"command": "npx",
"args": [
"-y",
"code-context-provider-mcp@latest"
]
}
}
}{
"mcpServers": {
"code_context_mcp": {
"type": "stdio",
"name": "code_context_mcp",
"command": "npx",
"args": [
"-y",
"code-context-provider-mcp@latest"
]
}
}
}npm install -g code-context-provider-mcp
```
Then run:
```bash
code-context-provider-mcp
```
If you’re not using the latest version, clear the npx cache as needed on Windows or Linux/macOS to fetch the latest release.If you used the global command, you can start the MCP server directly (the exact command may vary slightly if you use a non-latest version). The important part is that you invoke the MCP server so that your client can request the directory structure and optional code symbols.
Analyzes a directory and returns its structure along with code symbols (optional). Supports configuring analyzeJs, includeSymbols, symbolType, filePatterns, and maxDepth to tailor the analysis.