mcp_python
Verified Safeby davecthomas
Overview
Provides AI assistants with curated Python coding best practices and guidelines for code review, improvement suggestions, and detailed explanations.
Installation
uvx bestpractices-mcp-serverEnvironment Variables
- BEST_PRACTICES_JSON_PATH
- MAX_SEARCH_RESULTS
- LOG_LEVEL
- ENABLE_CACHING
Security Notes
The server does not use `eval` or similar dangerous functions. File paths for the knowledge base are loaded from environment variables, which should be configured securely. The `ErrorResponse` model actively prevents leakage of internal file paths or tracebacks in error messages. Input JSON data is schema-validated. The primary risk would stem from providing a maliciously crafted `python_best_practices.json` file, but the server only parses and serves its content, it does not execute it.
Similar Servers
context7
Provides up-to-date, version-specific documentation and code examples to Large Language Models (LLMs) and AI coding assistants to improve code generation accuracy and relevance, preventing outdated or hallucinated information.
code-assistant
Standardizes communication between code editors and AI coding agents, enabling autonomous code analysis and modification via command-line, GUI, or server modes.
python-dependency-manager-companion-mcp-server
Provides up-to-date information and commands for various Python package managers (pip, conda, poetry, uv, pixi, pdm) by cross-referencing official documentation.
CodeMCP
Provides deep code intelligence (symbol navigation, impact analysis, architecture maps, ownership, risk assessment) to AI assistants, CLI, and HTTP API.