Skip to main content

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.

Metadata

Release files for pylint-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylint-mcp 0.1.2
File Size Uploaded
pylint_mcp-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylint-mcp 0.1.2
File Interpreter ABI Platform
pylint_mcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / pylint_mcp-0.1.2.tar.gz

Download URL pylint_mcp-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ab6030d323a20a710928200f65bf8196b35e60f6975b3ef3f7dc12901a41309
BLAKE2b-256 checksum
How to use checksums
4f48de3a7ec46151fca23dff1db2fdc3a79c78cf0eb41dbd134cda694509fe74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

Release files / pylint_mcp-0.1.2-py3-none-any.whl

Download URL pylint_mcp-0.1.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d2dfeef0669f821dae1d2b2e907dab2c2696818680e5adc36349821d6430dc9
BLAKE2b-256 checksum
How to use checksums
a77838a60cc2c064345354e28b12697101584039ffb194678e2a04e124c6faad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page