Skip to main content

MCP server providing pylint functionality

Project description

Pylint MCP

An MCP server that runs pylint on a given file

Features

  • lint: Check a python file for syntactic errors using pylint.

Prerequisites

  • Python: Version 3.10 or greater
  • uv: Package and dependency manager for Python projects.

Installation

  1. Install Dependencies: Add the required dependencies using uv:
    uv sync
    

Usage

Running the Server

Start the FastMCP server in development mode:

uv run mcp dev cli.py

Installing to Claude Desktop

Install the server as a Claude Desktop application:

uv run mcp install cli.py --name "pylint"

Configuration file as a reference:

{
   "mcpServers": {
       "pylint": {
           "command": "uvx",
           "args": [ "pylint-mcp" ]
       }
   }
}

Available Tools

lint

Check a python file for syntactic errors using pylint.

Parameters:

  • filename (str): The python source file to check for syntactic errors.

Example:

Check example.py for syntactic errors

Output:

[
    {
        "type": "convention",
        "module": "example.cli",
        "obj": "",
        "line": 31,
        "column": 0,
        "endLine": null,
        "endColumn": null,
        "path": "example.py",
        "symbol": "line-too-long",
        "message": "Line too long (204/100)",
        "message-id": "C0301"
    },
    {
        "type": "error",
        "module": "example.cli",
        "obj": "",
        "line": 1,
        "column": 0,
        "endLine": 1,
        "endColumn": 17,
        "path": "example.py",
        "symbol": "import-error",
        "message": "Unable to import 'mcp'",
        "message-id": "E0401"
    }
]

License

This project is licensed under the MIT License. See the COPYING file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_mcp-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_mcp-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pylint_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: pylint_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for pylint_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9ab6030d323a20a710928200f65bf8196b35e60f6975b3ef3f7dc12901a41309
MD5 7eeac15afda46a1ca9340555db53c581
BLAKE2b-256 4f48de3a7ec46151fca23dff1db2fdc3a79c78cf0eb41dbd134cda694509fe74

See more details on using hashes here.

File details

Details for the file pylint_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pylint_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for pylint_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2dfeef0669f821dae1d2b2e907dab2c2696818680e5adc36349821d6430dc9
MD5 2960bbe9ba109a39c842acde254d7e24
BLAKE2b-256 a77838a60cc2c064345354e28b12697101584039ffb194678e2a04e124c6faad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page