NeuroDev MCP Server

Intelligent Code Analysis, Test Generation & Execution

README.md

๐Ÿง  NeuroDev MCP Server

*Intelligent Code Analysis, Test Generation & Execution*

A powerful Model Context Protocol (MCP) server that supercharges your Python development workflow with AI-powered code review, intelligent test generation, and comprehensive test execution.

Features โ€ข Installation โ€ข Quick Start โ€ข Tools โ€ข Examples


โœจ Features

๐Ÿ” **Code Review**

  • 6 Powerful Analyzers
    • pylint - Code quality & PEP8
    • flake8 - Style enforcement
    • mypy - Type checking
    • bandit - Security scanning
    • radon - Complexity metrics
    • AST - Custom inspections
  • Real-time issue detection
  • Security vulnerability scanning
  • Complexity & maintainability scores

๐Ÿงช **Test Generation**

  • Intelligent AST Analysis
    • Auto-generate pytest tests
    • Happy path coverage
    • Edge case handling
    • Exception testing
    • Type validation tests
  • Supports functions & classes
  • Type-hint aware

โ–ถ๏ธ **Test Execution**

  • Comprehensive Testing
    • Isolated environment
    • Coverage reporting
    • Line-by-line analysis
    • Timeout protection
  • Detailed pass/fail results
  • Performance metrics

๐ŸŽจ **Code Formatting**

  • Auto-formatting
    • black - Opinionated style
    • autopep8 - PEP8 compliance
  • Configurable line length
  • Consistent code style
  • One-command formatting

๐Ÿ“ฆ Installation

**Quick Install**

```bash

# Clone the repository
git clone https://github.com/ravikant1918/neurodev-mcp.git
cd neurodev-mcp

# Create virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate

# Install the package
pip install -e .
\`\`\`

### **Verify Installation**

\`\`\`bash
# Run tests (should show 15/15 passing)
python test_installation.py

# Test the server
python -m neurodev_mcp.server
\`\`\`

<details>
<summary><b>๐Ÿ“ Project Structure</b> (click to expand)</summary>

\`\`\`
neurodev-mcp/
โ”œโ”€ neurodev_mcp/              # ๐Ÿ“ฆ Main package
โ”‚   โ”œโ”€ __init__.py            # Package exports
โ”‚   โ”œโ”€ server.py              # MCP server entry point
โ”‚   โ”œโ”€ analyzers/             # ๐Ÿ” Code analysis
โ”‚   โ”‚   โ”œโ”€ __init__.py
โ”‚   โ”‚   โ””โ”€ code_analyzer.py   # Multi-tool static analysis
โ”‚   โ”œโ”€ generators/            # ๐Ÿงช Test generation
โ”‚   โ”‚   โ”œโ”€ __init__.py
โ”‚   โ”‚   โ””โ”€ test_generator.py  # AST-based test creation
โ”‚   โ””โ”€ executors/             # โ–ถ๏ธ Test execution
โ”‚       โ”œโ”€ __init__.py
โ”‚       โ””โ”€ test_executor.py   # Test running & formatting
โ”œโ”€ pyproject.toml             # Project configuration
โ”œโ”€ README.md                  # This file
โ”œโ”€ test_installation.py       # Installation validator
โ”œโ”€ examples.py                # Usage examples
โ””โ”€ requirements.txt           # Dependencies

๐Ÿš€ Quick Start

**Step 1: Configure Your MCP Client**

๐Ÿ–ฅ๏ธ Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "neurodev-mcp": {
      "command": "/absolute/path/to/neurodev-mcp/.venv/bin/python",
      "args": ["-m", "neurodev_mcp.server"]
    }
  }
}

๐Ÿ’ก Tip: Replace /absolute/path/to/neurodev-mcp with your actual path

๐Ÿ”ง Cline (VSCode)

Add to your MCP settings:

{
  "neurodev-mcp": {
    "command": "python",
    "args": ["-m", "neurodev_mcp.server"]
  }
}
๐Ÿ Standalone Usage

Run the server directly:

# Using the module
python -m neurodev_mcp.server

# Or as a command (if installed)
neurodev-mcp

**Step 2: Restart Your Client**

Restart Claude Desktop or reload VSCode to load the server.

**Step 3: Start Using! ๐ŸŽ‰**

Try these commands with your AI assistant:

  • "Review this Python code for issues"
  • "Generate unit tests for this function"
  • "Run these tests with coverage"
  • "Format this code to PEP8 standards"

๐ŸŒ Transport Options

NeuroDev MCP supports multiple transport protocols for different use cases:

**STDIO (Default) - Local CLI**

Perfect for local development with MCP clients like Claude Desktop or Cline:

# Default STDIO transport
neurodev-mcp

# Or explicitly specify STDIO
neurodev-mcp --transport stdio

Configuration (Claude Desktop): ```json

Tools 4

analyze_codePerforms static analysis on Python code using pylint, flake8, mypy, bandit, and radon.
generate_testsGenerates pytest unit tests for specified functions or classes using AST analysis.
run_testsExecutes test suites with coverage reporting and performance metrics.
format_codeAutomatically formats Python code using black and autopep8.

Try it

โ†’Review this Python code for issues and security vulnerabilities.
โ†’Generate unit tests for the user authentication function in auth.py.
โ†’Run the test suite in the tests directory and provide a coverage report.
โ†’Format the current file to comply with PEP8 standards.

Frequently Asked Questions

What are the key features of NeuroDev MCP?

Multi-tool static analysis including pylint, flake8, mypy, and bandit. AST-based intelligent unit test generation for functions and classes. Isolated test execution with line-by-line coverage reporting. Automated code formatting using black and autopep8.

What can I use NeuroDev MCP for?

Automating code quality checks during the development process. Rapidly generating test suites for legacy Python codebases. Ensuring consistent code style across team projects. Identifying security vulnerabilities in Python applications.

How do I install NeuroDev MCP?

Install NeuroDev MCP by running: git clone https://github.com/ravikant1918/neurodev-mcp.git && cd neurodev-mcp && python -m venv .venv && source .venv/bin/activate && pip install -e .

What MCP clients work with NeuroDev MCP?

NeuroDev MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep NeuroDev MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare