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
Context7 MCP enhances LLM prompts by injecting up-to-date, version-specific documentation and code examples directly from source code, enabling more accurate and relevant code generation.
octocode-mcp
Enables AI assistants to conduct deep, secure, and token-efficient code research across GitHub repositories by providing structured access and analysis tools.
code-assistant
An AI coding assistant that integrates with code editors to provide autonomous code analysis and modification, supporting multiple UI modes and the Agent Client Protocol (ACP).
ipybox
A lightweight and secure Python code execution sandbox for AI agents to perform data analysis or execute code actions within Docker containers.