
code analyzer server
MCP server for analyzing code for bugs, errors, and functionality issues
Repository Info
About This Server
MCP server for analyzing code for bugs, errors, and functionality issues
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Code Analyzer MCP Server
This MCP server provides tools to analyze code for bugs, errors, and functionality issues in both front-end and back-end code, with options to fix them.
Features
- Analyze JavaScript/TypeScript code using ESLint
- Analyze HTML code using HTMLHint
- Analyze CSS code using Stylelint
- Analyze Python code using Pyright
- Automatically fix issues when possible
- Get suggestions for fixing identified issues
Available Tools
1. analyze_code
Analyzes code for bugs, errors, and functionality issues.
Parameters:
path(required): Path to the file or directory to analyzelanguage(optional): Language of the code (auto-detected if not provided)- Options: 'javascript', 'typescript', 'html', 'css', 'python', 'auto'
fix(optional): Whether to automatically fix issues when possible (default: false)
Example:
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.js",
language: "javascript",
fix: true
}
});
2. fix_issues
Fixes identified issues in code.
Parameters:
path(required): Path to the file to fixissueIds(required): Array of issue IDs to fix (from analyze_code results)
Example:
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "fix_issues",
arguments: {
path: "/path/to/your/file.js",
issueIds: ["js-/path/to/your/file.js-0", "js-/path/to/your/file.js-1"]
}
});
3. get_fix_suggestions
Gets suggestions for fixing identified issues.
Parameters:
path(required): Path to the file with issuesissueId(required): ID of the issue to get suggestions for
Example:
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "get_fix_suggestions",
arguments: {
path: "/path/to/your/file.js",
issueId: "js-/path/to/your/file.js-0"
}
});
Usage Examples
Analyzing JavaScript Code
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.js"
}
});
Analyzing and Automatically Fixing JavaScript Code
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.js",
fix: true
}
});
Analyzing HTML Code
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.html",
language: "html"
}
});
Analyzing CSS Code
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.css",
language: "css"
}
});
Analyzing Python Code
use_mcp_tool({
server_name: "code-analyzer-server",
tool_name: "analyze_code",
arguments: {
path: "/path/to/your/file.py",
language: "python"
}
});
Installation
The server has been installed and configured in your MCP settings. To use it, simply restart your VSCode or Claude application to load the new MCP server.
Quick Start
Clone the repository
git clone https://github.com/vigourpt/code-analyzer-serverInstall dependencies
cd code-analyzer-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.