Context AI MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Context AI MCP Server
A comprehensive Model Context Protocol (MCP) server that enhances AI capabilities by providing rich context from your workspace. This server is designed to make AI assistants smarter by giving them deep understanding of your codebase, patterns, and project structure.
π Features
π Workspace Analysis
Complete Code Analysis: Analyzes entire workspace structure, technologies, and patterns
Dependency Mapping: Tracks file dependencies and relationships
Technology Detection: Automatically identifies frameworks, libraries, and tools
Architecture Insights: Recognizes architectural patterns and design principles
π οΈ Powerful Tools
analyze_workspace: Comprehensive workspace analysis with customizable depthsearch_codebase: Advanced code search with regex support and contextget_file_dependencies: Detailed dependency analysis for any fileget_project_patterns: Extract architectural patterns and conventionsget_context_summary: Generate AI-optimized workspace summariessuggest_improvements: Automated code quality and security recommendations
π Smart Prompts
Code Review Templates: Comprehensive code review checklists
Architecture Analysis: System design evaluation prompts
Security Audits: Security-focused analysis templates
Performance Optimization: Performance analysis and improvement guides
Refactoring Suggestions: Code quality improvement templates
π Resource Access
Direct access to all workspace files
Intelligent file filtering and organization
MIME type detection and proper content handling
Efficient caching for better performance
Related MCP server: Code Expert MCP Server
π― Use Cases
For Development Teams
Onboarding: Help new team members understand codebase structure
Code Reviews: Automated analysis and comprehensive review checklists
Architecture Planning: Analyze current patterns and plan improvements
Knowledge Transfer: Preserve and share architectural knowledge
For AI Enhancement
Context Enrichment: Provide comprehensive workspace context to AI assistants
Pattern Recognition: Help AI understand your specific coding patterns
Smart Suggestions: Get AI recommendations based on your actual codebase
Automated Analysis: Regular codebase health checks and improvement suggestions
π¦ Getting Started
Prerequisites
Node.js 18+
TypeScript
VS Code or compatible MCP client
Installation
Clone or create the project:
git clone <your-repo> context-ai-mcp-server cd context-ai-mcp-serverInstall dependencies:
npm installBuild the project:
npm run buildConfigure your MCP client:
For VS Code: The
.vscode/mcp.jsonfile is already configured. Just open VS Code and the server will be available.For Claude Desktop: Add to your
claude_desktop_config.json:{ "mcpServers": { "context-ai-mcp-server": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/context-ai-mcp-server/dist/index.js" ], "env": { "WORKSPACE_PATH": "/ABSOLUTE/PATH/TO/YOUR/PROJECT" } } } }
Usage Examples
Analyze Your Workspace:
Use the analyze_workspace tool to get comprehensive insights about your project structure, technologies, and patterns.Search Your Code:
Use search_codebase with queries like "function.*authenticate" to find authentication-related code across your project.Get Context Summary:
Use get_context_summary to generate AI-optimized summaries of your workspace for enhanced AI interactions.
π§ Configuration
Environment Variables
WORKSPACE_PATH: Path to the workspace to analyze (defaults to current directory)
Customization
The server can be customized by modifying:
Prompt Templates: Edit
src/prompt-templates.tsto add custom promptsAnalysis Logic: Modify
src/context-manager.tsfor custom analysis patternsFile Indexing: Adjust
src/workspace-indexer.tsfor different file handling
ποΈ Architecture
βββ src/
β βββ index.ts # Main MCP server implementation
β βββ workspace-indexer.ts # File system analysis and indexing
β βββ context-manager.ts # Context extraction and management
β βββ prompt-templates.ts # Predefined prompt templates
βββ dist/ # Compiled JavaScript output
βββ .vscode/
β βββ mcp.json # VS Code MCP configuration
βββ .github/
βββ copilot-instructions.md # GitHub Copilot customizationπ Development
Scripts
npm run build: Compile TypeScript to JavaScriptnpm run dev: Watch mode for developmentnpm start: Run the compiled server
Adding New Tools
Add tool definition in
src/index.tssetupToolHandlers()Implement tool logic in
src/context-manager.tsAdd corresponding method in the main server class
Update documentation
Adding New Prompts
Add prompt template in
src/prompt-templates.tsImplement prompt generation logic
Test with MCP clients
π€ Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
π License
MIT License - see LICENSE file for details
π Links
Made with β€οΈ to enhance AI capabilities through rich workspace context
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
The context platform for AI agents: code search, team decisions, and grounded project context.
Codebase intelligence for AI agents β dead code, blast radius, ownership.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntelligently analyzes codebases to enhance LLM prompts with relevant context, featuring adaptive context management and task detection to produce higher quality AI responses.2MIT
- AlicenseAqualityDmaintenanceAnalyzes codebases from local directories, GitHub, and Azure DevOps, providing intelligent context to AI coding assistants through repository structure, critical files, and semantic maps.144MIT
- AlicenseAqualityBmaintenanceSelf-hosted semantic code search for AI coding agents. Indexes many repositories at once with tree-sitter AST chunking, local llama.cpp embeddings and Qdrant, so Claude Code, Cursor, Codex and any MCP client can find code by meaning, trace usages and callers, and read the git history behind each chunk. No API keys, and your code never leaves your machine.1835MIT
- AlicenseNot gradedqualityDmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.MIT