Back to Home
gurkanfikretgunak icon

mcp_server

Verified Safe

by gurkanfikretgunak

Overview

Manages Python packages and indexes project codebases for AI-assisted development using the Model Context Protocol (MCP).

Installation

Run Command
./scripts/run_http.sh --host localhost --port 8000

Environment Variables

  • MCP_TRANSPORT
  • MCP_HOST
  • MCP_PORT
  • MCP_API_KEY
  • MCP_ENABLE_AUTH
  • MCP_ALLOWED_PACKAGES
  • MCP_BLOCKED_PACKAGES
  • MCP_LOG_LEVEL
  • MCP_LOG_FORMAT
  • MCP_PROJECT_ROOT
  • MCP_WORKSPACE_ROOT

Security Notes

The server implements API key-based authentication, a policy engine for package allow/block lists, and audit logging for tool invocations and resource access. It uses `subprocess.run` with lists for arguments, mitigating shell injection risks. Path operations within `ProjectScanner` and resource handlers correctly use `Path.resolve()` and `project_root / file_path` to prevent path traversal. A note in `src/python_package_mcp_server/transports/http.py` indicates that full SSE integration requires additional setup with the MCP SDK, which could be an area for further security hardening if not properly integrated.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2026-01-19

Tags

PythonPackage ManagementLLM IntegrationMCP ServerCode Analysis