✨ Lucidity MCP 🔍
AI-powered code quality analysis using MCP to help AI assistants review code more effectively. Analyze git changes for complexity, security issues, and more through structured prompts.
Overview
Lucidity MCP is an AI-powered code quality analysis tool that utilizes the Model Context Protocol (MCP) to help AI assistants review code more effectively by analyzing git changes for complexity, security issues, and more through structured prompts.
To use Lucidity MCP, clone the repository, set up a virtual environment, install dependencies, and run the server. Connect your AI assistant using the MCP protocol URI to analyze code quality feedback.
- Comprehensive issue detection across 10 critical quality dimensions. - Contextual analysis comparing changes against original code. - Language agnostic, supporting any programming language. - Focused analysis targeting specific issue types. - Structured outputs providing actionable feedback. - Seamless integration with MCP-compatible AI assistants. - Lightweight implementation with minimal dependencies. - Extensible framework for adding new issue types. - Git-aware analysis for pre-commit reviews.
- Analyzing code quality in git changes before committing.
- Checking for security vulnerabilities in code.
- Ensuring adherence to coding standards and best practices.
- Identifying performance issues and code duplication.
- Improving code abstractions and error handling.
Add to your AI client
Use these steps to connect ✨ Lucidity MCP 🔍 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"lucidity-mcp-hyperb1iss": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"lucidity-mcp-hyperb1iss": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"lucidity-mcp-hyperb1iss": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"lucidity-mcp-hyperb1iss": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lucidity-mcp-hyperb1iss": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"lucidity-mcp-hyperb1iss": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lucidity-mcp-hyperb1iss"
]
}
}
}FAQ
Can Lucidity MCP analyze any programming language?
Yes! It is designed to work with any language the AI assistant understands.
Is Lucidity MCP free to use?
Yes! It is open-source and free for everyone.
How does Lucidity MCP ensure code quality?
It analyzes code across multiple dimensions, providing detailed feedback and recommendations.