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
- 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.pyfor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylint_mcp-0.1.0.tar.gz.
File metadata
- Download URL: pylint_mcp-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd8c40befec0cd45142bae2eddae47c88b03e64a0ac84318bee049f32d0c36b9
|
|
| MD5 |
de10bbb515df347ad44ddb7b393b00b7
|
|
| BLAKE2b-256 |
68b2e50e2a4f209cd71b25808e8007ce6256188574bf007086d6514b0f8dc4b2
|
File details
Details for the file pylint_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylint_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d54d20eb0b6355257f467ecd32a4975e95f5dad2296aa1209ba0e9d63df54bb
|
|
| MD5 |
85a7a9d97361e97c60313859365d03c5
|
|
| BLAKE2b-256 |
4f86307936babe736a5dbb755b93dc4aee067aeecc4d471b76f576696dc5d7e9
|