MCP server/ai-tools

NeuroDev MCP Server

Intelligent Code Analysis, Test Generation & Execution

ravikant1918/neurodev-mcp ↗by ravikant1918updated
1

Add it to Claude Code

claude mcp add neurodev-mcp -- /absolute/path/to/neurodev-mcp/.venv/bin/python -m neurodev_mcp.server
2

Make your agent remember this setup

neurodev-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • 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

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.
Original README from ravikant1918/neurodev-mcp

🧠 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.

FeaturesInstallationQuick StartToolsExamples


✨ Features

<table> <tr> <td width="50%">

🔍 **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
</td> <td width="50%">

🧪 **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
</td> </tr> <tr> <td width="50%">

▶️ **Test Execution**

  • Comprehensive Testing
    • Isolated environment
    • Coverage reporting
    • Line-by-line analysis
    • Timeout protection
  • Detailed pass/fail results
  • Performance metrics
</td> <td width="50%">

🎨 **Code Formatting**

  • Auto-formatting
    • black - Opinionated style
    • autopep8 - PEP8 compliance
  • Configurable line length
  • Consistent code style
  • One-command formatting
</td> </tr> </table>

📦 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
</details>

🚀 Quick Start

**Step 1: Configure Your MCP Client**

<details open> <summary><b>🖥️ Claude Desktop</b></summary>

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

</details> <details> <summary><b>🔧 Cline (VSCode)</b></summary>

Add to your MCP settings:

{
  "neurodev-mcp": {
    "command": "python",
    "args": ["-m", "neurodev_mcp.server"]
  }
}
</details> <details> <summary><b>🐍 Standalone Usage</b></summary>

Run the server directly:

# Using the module
python -m neurodev_mcp.server

# Or as a command (if installed)
neurodev-mcp
</details>

**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

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.

Conare · memory for coding agents

Turn this server into reusable context

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

Set up free$npx conare@latest