Coding File Management MCP server

Extract and document code from your local filesystem, enabling automated documentation and codebase analysis.
Back to servers
Setup instructions
Provider
aindreyway
Release date
Dec 20, 2024
Language
TypeScript
Package
Stats
3.9K downloads
14 stars

MCP Neurolora is an intelligent server that provides powerful tools for code analysis using OpenAI API, code collection, and documentation generation. It integrates with Claude AI assistants to help analyze and improve your codebase through the Model Context Protocol (MCP).

Installation Guide

Prerequisites

Install Node.js

macOS:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node@18
echo 'export PATH="/opt/homebrew/opt/node@18/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Windows:

  1. Download Node.js 18 LTS from nodejs.org
  2. Run the installer
  3. Open a new terminal to apply changes

Linux (Ubuntu/Debian):

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

Install uv and uvx

curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install uvx

Verify Installation

node --version  # Should show v18.x.x
npm --version   # Should show 9.x.x or higher
uv --version    # Should show uv installed
uvx --version   # Should show uvx installed

Configure MCP Server

  1. Locate your settings file:

    • VSCode: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows VSCode: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Windows Claude: %APPDATA%/Claude/claude_desktop_config.json
  2. Add the following configuration:

    {
      "mcpServers": {
        "aindreyway-mcp-neurolora": {
          "command": "npx",
          "args": ["-y", "@aindreyway/mcp-neurolora@latest"],
          "env": {
            "NODE_OPTIONS": "--max-old-space-size=256",
            "OPENAI_API_KEY": "your_api_key_here"
          }
        }
      }
    }
    

Install Base Servers

Ask your Claude assistant: "Please install the base MCP servers for my environment"

Your assistant will:

  1. Find your settings file
  2. Run the install_base_servers tool
  3. Configure all necessary servers automatically

After installation:

  1. Close VSCode completely (Cmd+Q on macOS, Alt+F4 on Windows)
  2. Reopen VSCode
  3. The new servers will be ready to use

Important: A complete restart of VSCode is required for the base servers to be properly initialized.

Using MCP Neurolora

Available Tools

Code Analysis

Analyze your code with OpenAI API integration:

{
  "codePath": "/path/to/your/code.ts"
}

This will:

  • Analyze your code using OpenAI API
  • Generate detailed feedback with issues and recommendations
  • Create output files:
    • LAST_RESPONSE_OPENAI.txt - Human-readable analysis
    • LAST_RESPONSE_OPENAI_GITHUB_FORMAT.json - Structured data

Note: Requires an OpenAI API key in your environment configuration.

Code Collection

Collect all code from a directory into a single markdown file:

{
  "directory": "/path/to/project/src",
  "outputPath": "/path/to/project/src/FULL_CODE_SRC_2024-12-20.md",
  "ignorePatterns": ["*.log", "temp/", "__pycache__", "*.pyc", ".git"]
}

Base Server Installation

Install base MCP servers to your configuration file:

{
  "configPath": "/path/to/cline_mcp_settings.json"
}

Common Commands for Your Assistant

You can ask your Claude assistant to:

  • "Analyze my code and suggest improvements"
  • "Install base MCP servers for my environment"
  • "Collect code from my project directory"
  • "Create documentation for my codebase"
  • "Generate a markdown file with all my code"

Included Base Servers

The following servers are automatically installed:

  • fetch: HTTP request functionality
  • puppeteer: Browser automation capabilities
  • sequential-thinking: Advanced problem-solving tools
  • github: GitHub integration features
  • git: Git operations support
  • shell: Basic shell command execution with common commands (ls, cat, pwd, grep, etc.)

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "aindreyway-mcp-neurolora" '{"command":"npx","args":["-y","@aindreyway/mcp-neurolora@latest"],"env":{"NODE_OPTIONS":"--max-old-space-size=256","OPENAI_API_KEY":"your_api_key_here"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "aindreyway-mcp-neurolora": {
            "command": "npx",
            "args": [
                "-y",
                "@aindreyway/mcp-neurolora@latest"
            ],
            "env": {
                "NODE_OPTIONS": "--max-old-space-size=256",
                "OPENAI_API_KEY": "your_api_key_here"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "aindreyway-mcp-neurolora": {
            "command": "npx",
            "args": [
                "-y",
                "@aindreyway/mcp-neurolora@latest"
            ],
            "env": {
                "NODE_OPTIONS": "--max-old-space-size=256",
                "OPENAI_API_KEY": "your_api_key_here"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later