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": {
       "Crypto RSS Reader": {
           "command": "uv",
           "args": [ "--directory", "/path/to/pylint-mcp", "run", "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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_mcp-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e46ad8f2c86c3d3c46b52f3b90dc916f806077c29b8f988266e3a8620993eda5
MD5 74c9c89878881c0538ed81fd2a13e1c9
BLAKE2b-256 fc42c0d6af183a9176683a91138b098f14e55be09c8ef875bf24cba82457011e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylint_mcp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3a2fb7e4364add6862cb8754626818030984cb4add822491cc366603225d74c
MD5 3210788c09784ac2dab55317154e1a4f
BLAKE2b-256 adbeebd5a6e971de7cc0c62e7d660c6d2d3b307f81c96da810e0429da257f36c

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