Feedback

Code Context Provider MCP Server

@ab498 Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
ab498
Submitted by
Community
Quality
40
Stars
22

About Code Context Provider MCP Server

Analyze JavaScript, TypeScript, and Python projects with Code Context Provider—advanced static code analysis and source code analysis tools.

Code Context Provider is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by ab498. It exposes 1 tool, including get_code_context. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 22 GitHub stars. Source code is hosted on github.com. Related topics: community, context, context-engine, developer-tools, mcp.

Setup

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

Code Context Provider MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Code Context Provider MCP Server tools

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

Overview

What is Code Context Provider?

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?

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

  • 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

  • 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

Frequently asked questions

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

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

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

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

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

Videos

Tutorials, guides, and showcases related to Code Context Provider MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬