Code Context Provider MCP

by ab498

20 stars
302 downloads
Not rated
GitHub

About

Provides code context and analysis for AI assistants using WebAssembly Tree-sitter parsers.

Details

Author
ab498
GitHub stars
20
Downloads
302
Categories
Developer Tools

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Code Context Provider MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

[Development] Setting up the Development Environment

# Clone the repository git clone https://github.com/your-username/code-context-provider-mcp.git cd code-context-provider-mcp # Install dependencies npm install # Set up WASM parsers npm run setup

After installation, the package'spreparescript automatically runs to download the WASM parsers. If for some reason the download fails, users can manually run the setup:

- Email (abcd49800@gmail.com)
-
Discord (CodePlayground)

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

get_code_context

Returns 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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "code context provider mcp": {
            "code-context-provider-mcp": {
                "command": "npx",
                "args": [
                    "code-context-provider-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "code-context-provider-mcp": {
        "command": "npx",
        "args": [
            "code-context-provider-mcp"
        ]
    }
}

Provides code context and analysis for AI assistants using WebAssembly Tree-sitter parsers.

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.

- Generate directory tree structure
- Analyze JavaScript/TypeScript and Python files
- Extract code symbols (functions, variables, classes, imports, exports)
- Compatible with the MCP protocol for seamless integration with AI assistants

To install Code Context Provider for Claude Desktop automatically viaSmithery:

npx -y @smithery/cli install @AB498/code-context-provider-mcp --client claude
{ "mcpServers": { "code-context-provider-mcp": { "command": "cmd.exe", "args": [ "/c", "npx", "-y", "code-context-provider-mcp@latest" ] } } }
{ "mcpServers": { "code-context-provider-mcp": { "command": "npx", "args": [ "-y", "code-context-provider-mcp@latest" ] } } }
npm install -g code-context-provider-mcp
code-context-provider-mcp # if you're not using @latest, you may want to clear the cache for latest version using Remove-Item -Path "$env:LOCALAPPDATA\npm-cache\_npx" -Recurse -Force for windows and rm -rf ~/.npm/_npx for linux/macos

Analyzes a directory and returns its structure along with code symbols (optional).

- absolutePath(string, required): Absolute path to the directory to analyze
- analyzeJs(boolean, optional): Whether to analyze JavaScript/TypeScript and Python files (default: false)
- includeSymbols(boolean, optional): Whether to include code symbols in the response (default: false)
- symbolType(enum, optional): Type of symbols to include if includeSymbols is true (options: 'functions', 'variables', 'classes', 'imports', 'exports', 'all', default: 'all')
- filePatterns(array of strings, optional): File patterns to analyze (e.g. ['.js', '.py', 'config.'])
- maxDepth(number, optional): Maximum directory depth to analyze (default: 5 levels)

Note: Anonymous functions are automatically filtered out of the results.

Directory structure for: C:\Users\Admin\Desktop\mcp\context-provider-mcp Code Analysis Summary: - Files analyzed: 3 - Total functions: 29 - Total variables: 162 - Total classes: 0 Note: Symbol analysis is supported for JavaScript/TypeScript (.js, .jsx, .ts, .tsx) and Python (.py) files only. Code analysis limited to a maximum depth of 5 directory levels (default). ├── index.js (39 KB) │ └── [Analyzed: 22 functions, 150 variables, 0 classes] │ Functions: │ - initializeTreeSitter [39:0] │ - getLanguageFromExtension [107:0] │ - getPosition [138:24]

You can use thefilePatternsparameter to specify which files to analyze. This is useful for complex projects with multiple languages or specific files of interest.

- [".js", ".py"]- Analyze all JavaScript and Python files
- ["config.
"]- Analyze all configuration files regardless of extension
- ["package.json", ".config.js"]- Analyze package.json and any JavaScript config files
- [".ts", ".tsx", ".py"]- Analyze TypeScript and Python files (using extension format)

- Simple glob patterns with wildcards ()
- Direct file extensions (with or without the dot)
- Exact file names

For very large projects, you can use themaxDepthparameter to limit how deeply the tool will traverse directories:

- maxDepth: 2- Only analyze the root directory and one level of subdirectories
- maxDepth: 3- Analyze the root, and two levels of subdirectories
- maxDepth: 0- Only analyze files in the root directory

- Working with large monorepos
- Analyzing projects with many dependencies
- Focusing only on the main source code and not third-party libraries

- JavaScript (.js)
- JSX (.jsx)
- TypeScript (.ts)
- TSX (.tsx)
- Python (.py)

Using thefilePatternsparameter allows you to include other file types in the directory structure, though symbolic analysis may be limited.

[Development] Setting up the Development Environment

# Clone the repository git clone https://github.com/your-username/code-context-provider-mcp.git cd code-context-provider-mcp # Install dependencies npm install # Set up WASM parsers npm run setup

After installation, the package'spreparescript automatically runs to download the WASM parsers. If for some reason the download fails, users can manually run the setup:

- Email (abcd49800@gmail.com)
-
Discord (CodePlayground)

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.