coding-standards-mcp

MCP.Pizza Chef: ggerve

The Coding Standards MCP Server provides structured access to standardized coding guidelines and best practices across multiple programming languages including Java, Python, and React. It offers detailed style guides and best practice recommendations to help developers maintain clean, consistent, and secure codebases. This server supports integration with MCP clients to enable real-time code quality enforcement and developer education.

Use This MCP server To

Retrieve Java coding style guidelines for clean code enforcement Access Python PEP 8 style guides for consistent formatting Fetch React component structure and hooks usage best practices Provide language-specific project architecture and testing standards Integrate coding standards into CI/CD pipelines for automated checks Support developer onboarding with accessible coding guidelines Enable real-time code review suggestions based on best practices

README

Coding Standards MCP Server

This MCP server provides tools for accessing coding style guidelines and best practices for various technologies (Java, Python, React).

Prerequisites

  • Python 3.8 or higher
  • MCP package (pip install mcp)
  • UV package manager (recommended)

Quick Start

  1. Install the server in Claude:
mcp install server.py
  1. Run in development mode:
mcp dev server.py

The MCP inspector will start on port 3000.

Available Tools

Style Guides

Access language-specific coding style guidelines:

  • Java: Clean code practices, naming conventions, code organization
  • Python: PEP 8 based guidelines, Pythonic code practices
  • React: Component structure, hooks usage, TypeScript integration

Best Practices

Access language-specific application best practices:

  • Java: Project structure, architecture, testing, security
  • Python: Project layout, dependency management, testing practices
  • React: Component patterns, state management, performance optimization

API Reference

  1. java_style_guide: Get Java coding style guidelines

    • Returns: Markdown formatted style guide
    • Example: nortal_coding_standards_java_style_guide()
  2. java_best_practices: Get Java application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_java_best_practices()
  3. python_style_guide: Get Python coding style guidelines

    • Returns: Markdown formatted style guide
    • Example: nortal_coding_standards_python_style_guide()
  4. python_best_practices: Get Python application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_python_best_practices()
  5. react_best_practices: Get React application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_react_best_practices()

Configuration

MCP Client Configuration

Add this to your MCP client configuration file (e.g., ~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "nortal_coding_standards": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/absolute/path/to/coding-standards-mcp/server.py"
      ]
    }
  }
}

Replace /absolute/path/to/coding-standards-mcp/server.py with your actual server path.

coding-standards-mcp FAQ

How do I install the Coding Standards MCP Server?
Install Python 3.8+, then use 'pip install mcp' and run 'mcp install server.py' to install the server.
Which programming languages does this MCP server support?
It supports Java, Python, and React coding standards and best practices.
Can I use this server to enforce coding standards in CI/CD workflows?
Yes, it can be integrated into CI/CD pipelines to automate coding standard checks.
Does the server provide both style guides and best practices?
Yes, it offers detailed style guides and application best practices for supported languages.
What prerequisites are needed to run this MCP server?
Python 3.8 or higher, MCP package installed via pip, and optionally the UV package manager.
How can I access the coding standards once the server is running?
Use MCP clients to query the server for language-specific guidelines and best practices.
Is the server limited to only coding style guidelines?
No, it also provides best practices related to project structure, testing, security, and performance.
Can this MCP server help with React TypeScript integration guidelines?
Yes, it includes best practices for React component patterns and TypeScript usage.