- Home
- MCP servers
- Code Context Provider
Code Context Provider
- javascript
22
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
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.
How to use
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.
How to install
Prerequisites you need before installation:
- Node.js and npm installed on your machine
- Access to a terminal or command prompt
Install the MCP server using the standard CLI command shown for MCP setup. You can install via npx or as a global package.
Install via npx (recommended for quick setup)
npx -y @smithery/cli install @AB498/code-context-provider-mcp --client claude
Windows
{
"mcpServers": {
"code_context_mcp": {
"type": "stdio",
"name": "code_context_mcp",
"command": "npx",
"args": [
"-y",
"code-context-provider-mcp@latest"
]
}
}
}
macOS / Linux
{
"mcpServers": {
"code_context_mcp": {
"type": "stdio",
"name": "code_context_mcp",
"command": "npx",
"args": [
"-y",
"code-context-provider-mcp@latest"
]
}
}
}
Alternative: install globally and run
npm install -g code-context-provider-mcp
Then run:
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.
## Notes on usage after install
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.
## Available tools
### get\_code\_context
Analyzes a directory and returns its structure along with code symbols (optional). Supports configuring analyzeJs, includeSymbols, symbolType, filePatterns, and maxDepth to tailor the analysis.