Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Codescene Mcp Server

    The CodeScene MCP Server exposes CodeScene’s Code Health analysis as local AI-friendly tools.

    2 stars
    Python
    Updated Nov 4, 2025

    Table of Contents

    • Getting Started with CodeScene MCP
    • Installation
    • Use Cases
    • Safeguard AI-Generated Code
    • Uplifting Unhealthy Code for AI Readiness: Refactoring With ACE + AI
    • Make Targeted Refactoring
    • Understand Existing Code Before Acting
    • Frequently Asked Questions
    • Building Locally

    Table of Contents

    • Getting Started with CodeScene MCP
    • Installation
    • Use Cases
    • Safeguard AI-Generated Code
    • Uplifting Unhealthy Code for AI Readiness: Refactoring With ACE + AI
    • Make Targeted Refactoring
    • Understand Existing Code Before Acting
    • Frequently Asked Questions
    • Building Locally

    Documentation

    CodeScene MCP Server

    CodeScene Hotspot Code Health

    CodeScene Average Code Health

    CodeScene System Mastery

    The CodeScene MCP Server exposes CodeScene's Code Health analysis as local AI-friendly tools.

    This server is designed to run in your local environment and lets AI assistants (like GitHub Copilot, Cursor, Claude code, etc.) request meaningful Code Health insights directly from your codebase.

    The Code Health insights augment the AI prompts with rich content around code quality issues, maintainability problems, and technical debt in general.

    Getting Started with CodeScene MCP

    1. Get an Access Token for the MCP Server — see Getting a Personal Access Token.

    2. Install the MCP Server using one of the installation options below.

    3. Add the MCP Server to your AI assistant. See the detailed instructions for your environment in the installation guide.

    4. Copy the file AGENTS.md to your repository. This file guides AI agents on how to use the MCP, e.g. rules to safeguard AI coding.

    • If you use Amazon Q, then you want to copy our .amazonq/rules to your repository instead.

    Installation

    Choose the installation method that works best for your platform.

    NPM / npx (macOS, Linux, Windows)

    Run the MCP server directly with npx (no install needed):

    bash
    npx @codescene/codehealth-mcp

    Or install globally:

    bash
    npm install -g @codescene/codehealth-mcp

    The first run automatically downloads the correct platform-specific binary for your system and caches it for future use. Requires Node.js 18 or later.

    📖 **Full installation & integration guide**

    Homebrew (macOS / Linux)

    bash
    brew tap codescene-oss/codescene-mcp-server https://github.com/codescene-oss/codescene-mcp-server
    brew install cs-mcp

    📖 **Full installation & integration guide**

    Windows

    Run this in PowerShell:

    powershell
    irm https://raw.githubusercontent.com/codescene-oss/codescene-mcp-server/main/install.ps1 | iex

    📖 **Full installation & integration guide**

    Manual Download

    Download the latest binary for your platform from the GitHub Releases page:

    • macOS: cs-mcp-macos-aarch64.zip (Apple Silicon) or cs-mcp-macos-amd64 (Intel)
    • Linux: cs-mcp-linux-aarch64.zip or cs-mcp-linux-amd64
    • Windows: cs-mcp-windows-amd64.exe

    After downloading, make it executable and optionally add it to your PATH:

    bash
    chmod +x cs-mcp-*
    mv cs-mcp-* /usr/local/bin/cs-mcp

    You can also build a static executable from source.

    Docker

    bash
    docker pull codescene/codescene-mcp

    📖 **Full installation & integration guide** | Build the Docker image locally

    ---

    Use Cases

    [!TIP]

    Watch the demo video of the CodeScene MCP.

    [!NOTE]

    CodeScene MCP comes with a set of example prompts and an AGENTS.md file to capture the key use cases and guide your AI agents. Copy the AGENTS.md file to your own repository.

    With the CodeScene MCP Server in place, your AI tools can:

    Safeguard AI-Generated Code

    Prevent AI from introducing technical debt by flagging maintainability issues like complexity, deep nesting, low cohesion, etc.

    Uplifting Unhealthy Code for AI Readiness: Refactoring With ACE + AI

    AI works best on healthy, modular code. Many legacy functions are too large or complex for reliable AI refactoring, which leads to poor suggestions and unstable changes.

    CodeScene ACE, exposed through the MCP server, helps by *first* restructuring these complex functions into smaller and more cohesive units. This modularity makes the code far easier for AI agents to understand and refactor safely.

    The result is a cooperative workflow where:

    • CodeScene ACE improves modularity and structure,
    • AI performs more precise refactorings, and
    • Code Health guides both toward maintainable outcomes.

    🎗️ ACE is a CodeScene add-on and requires an additional license. You can request access and more info here.

    To enable ACE, add the CS_ACE_ACCESS_TOKEN environment variable to your MCP configuration. See Configuration Options for setup details.

    Make Targeted Refactoring

    AI tools can refactor code, but they lack direction on *what* to fix and *how to measure* if it helped.

    The Code Health tools solve this by giving AI assistants precise insight into design problems, as well as an objective way to assess the outcome: did the Code Health improve?

    Understand Existing Code Before Acting

    Use Code Health reviews to inform AI-driven summaries, diagnostics, or code transformations based on real-world cognitive and design challenges, not just syntax.

    Frequently Asked Questions

    Do I need a CodeScene account to use the MCP?

    The full feature set — including hotspots, technical debt goals, and code ownership — requires a CodeScene subscription. Use your CodeScene instance to create the CS_ACCESS_TOKEN which activates the MCP.

    The MCP supports both CodeScene Cloud and CodeScene on-prem.

    For local Code Health analysis without a CodeScene subscription, you can use the standalone CodeScene Code Health MCP.

    How does the MCP Server keep my code private and secure?

    The CodeScene MCP Server runs fully locally. All analysis — including Code Health scoring, delta reviews, and business-case calculations — is performed on your machine, against your local repository.

    No source code or analysis data is sent to cloud providers, LLM vendors, or any external service.

    Analysis results (e.g. hotspots and technical debt goals) are fetched via REST from your own CodeScene account using a secure token.

    For complete details, please see CodeScene's full privacy and security documentation.

    Can I use any LLM as the backbone for CodeScene MCP?

    CodeScene MCP can work with any model your AI assistant supports, but we strongly recommend choosing a frontier model when your assistant offers a model selector (as in tools like GitHub Copilot).

    Frontier models -- such as Claude Sonnet -- deliver far better rule adherence and refactoring quality, while legacy models like GPT-4.1 often struggle with MCP constraints.

    For a consistent, high-quality experience, select the newest available model.

    I have multiple repos — how do I configure the MCP?

    Since you have to provide a mount path for Docker, you can either have a MCP configuration per project (in VS Code that would be a .vscode/mcp.json file per project, for example) or you can mount a root directory within which all your projects are and then just use that one configuration instead.

    Why does IntelliJ give a wrong path to the MCP server?

    In our testing we've seen that IntelliJ's AI Assistant sometimes gives a wrong path to the CodeScene MCP server.

    From what we can tell, it seems to have nothing to do with the MCP server itself, but rather with IntelliJ's AI Assistant, which

    seems to hallucinate parts of the path some of the time. We're still investigating this issue and will update this section once we have more information.

    How do I configure custom SSL certificates?

    If your organization uses an internal CA (Certificate Authority), set the REQUESTS_CA_BUNDLE environment variable to point to your CA certificate file (PEM format). The MCP server automatically configures SSL for both its Python components and the embedded Java CLI — you only need to set it once.

    The MCP also supports SSL_CERT_FILE and CURL_CA_BUNDLE as alternatives.

    For detailed configuration examples (including Docker certificate mounting), see Configuration Options — SSL/TLS.

    How do I disable the version update check?

    The MCP server periodically checks GitHub for newer releases and shows a "VERSION UPDATE AVAILABLE" banner when your version is outdated. This check runs in the background and never blocks tool responses, but in network-restricted environments you may want to disable it entirely.

    Set the CS_DISABLE_VERSION_CHECK environment variable to any non-empty value (e.g. 1). For setup details, see Configuration Options — Version Check.

    Building Locally

    • Building the Docker image locally
    • Building a static executable locally
    • Building Linux executable in Docker (glibc 2.28)

    Similar MCP

    Based on tags & features

    • CH

      Chuk Mcp Linkedin

      Python00
    • PU

      Pursuit Mcp

      Python00
    • HE

      Hello Mcp

      Python00
    • GR

      Gradle Mcp

      Python00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • CH

      Chuk Mcp Linkedin

      Python00
    • PU

      Pursuit Mcp

      Python00
    • HE

      Hello Mcp

      Python00
    • GR

      Gradle Mcp

      Python00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k