Lucidity MCP logo

Lucidity MCP

by hyperb1iss

Reviews git changes with prompt-based checks for complexity, security, performance, testing, and other code-quality risks.

Install Lucidity MCP

Run the project’s own setup commands, in order.

Setup steps from the project

hyperb1iss/lucidity-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/hyperbliss/lucidity-mcp.git
    
  2. 2. Run
    cd lucidity-mcp
    
  3. 3. Install
    uv venv .venv
    
  4. 4. Install
    uv sync
    
  5. 5. Start the server
    lucidity-mcp
    
  6. 6. Start the server
    lucidity-mcp --transport sse --host 127.0.0.1 --port 6969
    

Overview

The hyperb1iss/lucidity-mcp MCP server prepares git changes for AI-assisted code-quality analysis. It accepts a repository root and an optional file path, then provides structured guidance across 10 dimensions, including complexity, security, performance, error handling, and test coverage. Use it before committing or when reviewing refactors and newly generated code. It supports stdio for local clients and SSE for network-based connections.

Use cases

  • Review recent git changes before committing
  • Check generated code for security and performance issues
  • Find unintended deletions during refactoring
  • Identify missing tests and incomplete error handling

Key features

  • Analyzes git changes through MCP
  • Covers 10 code-quality dimensions
  • Supports optional file-focused analysis
  • Provides structured recommendations
  • Supports stdio and SSE transports
  • Offers configurable logging

Tools3

What Lucidity MCP lets your agent do. Expand a tool for its parameters.

Self-reported~42 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

31/31 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars90Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Lucidity MCP works

What hyperb1iss/lucidity-mcp MCP server does

The hyperb1iss/lucidity-mcp MCP server helps an AI coding assistant inspect recent code changes before they are committed. Rather than running a language-specific linter or scanner, it prepares context for prompt-based analysis and guides the assistant toward structured, actionable feedback.

Analysis covers 10 quality dimensions:

  • Unnecessary complexity
  • Poor or leaky abstractions
  • Accidental deletion of functionality
  • References to nonexistent components or APIs
  • Style inconsistencies
  • Potential security vulnerabilities
  • Performance problems
  • Duplicated logic
  • Incomplete error handling
  • Missing tests or test coverage gaps

The project describes the analysis as language agnostic, provided the connected AI assistant understands the programming language being reviewed. It can also focus on particular issue types when the project needs a narrower review.

How it works

The main MCP tool is analyze_changes. Give it workspace_root, pointing to the root of the workspace or Git repository, and optionally provide path to limit the review to a specific file. The server prepares the relevant Git changes for the assistant rather than directly making edits or committing code.

Lucidity compares changes with the original code to help identify unintended modifications. This makes it suitable for checking generated patches, refactors, new features, and changes where removed validation or altered behavior could be easy to miss. The resulting guidance is structured around recommendations that the assistant can explain and act on.

The hyperb1iss/lucidity-mcp MCP server can communicate over stdio for local terminal-based use or SSE for network-based access. With SSE, an assistant connects through the server's MCP endpoint; the documented example uses sse://localhost:6969/sse.

Setup and configuration

The project requires Python 3.13 or newer, Git, and the UV package manager. The documented setup clones the repository, creates a UV-managed virtual environment, activates it, and runs uv sync to install dependencies. Once installed, start the local server with lucidity-mcp.

For a network connection, use the SSE transport and optionally set the bind host and port. The command-line interface also supports debug logging, log levels, verbose HTTP logging, and a log-file path. In stdio mode, logging is kept off stdout so it does not interfere with MCP communication; enabled logs can be directed to a file.

Tools and capabilities

analyze_changes accepts:

  • workspace_root: the workspace or Git repository root
  • path: an optional file to analyze

The hyperb1iss/lucidity-mcp MCP server is intended for pre-commit reviews and for asking an AI assistant questions such as whether a recent change introduced a security issue, removed important validation, created a performance problem, or left a feature without sufficient tests. Its framework is described as extensible, allowing additional issue types or revised analysis criteria as the project evolves.

Limitations and notes

The material documents one MCP analysis tool and does not describe automatic code modification, commits, or a standalone language parser. Results depend on the connected AI assistant's ability to understand the code under review. Git is required for change-based analysis, and the project is marked as being in active development.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Lucidity MCP

Clone the repository, create and activate a Python 3.13+ UV virtual environment, and run `uv sync`.

It prepares Git changes for prompt-based review across complexity, abstractions, unintended deletions, hallucinated components, style, security, performance, duplication, error handling, and test coverage.

Yes. The `analyze_changes` tool accepts an optional `path` parameter for a specific file.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLucidity MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hyperb1iss-lucidity-mcp?style=directory)](https://allmcps.com/mcp/hyperb1iss-lucidity-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/hyperb1iss-lucidity-mcp"><img src="https://allmcps.com/api/badge/hyperb1iss-lucidity-mcp?style=directory" alt="Lucidity MCP on AllMCPs" /></a>