{"id":30351201,"url":"https://github.com/anselmoo/mcp-server-analyzer","last_synced_at":"2026-05-24T08:02:28.905Z","repository":{"id":307226823,"uuid":"1028653578","full_name":"Anselmoo/mcp-server-analyzer","owner":"Anselmoo","description":"MCP server for Python code analysis with RUFF linting and VULTURE dead code detection","archived":false,"fork":false,"pushed_at":"2026-05-23T12:03:36.000Z","size":291,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T12:14:08.134Z","etag":null,"topics":["code-quality","copilot","linting","llm","mcp","mcp-server","python","ruff","vibe-coding","vscode-extension","vulture"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anselmoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-29T21:22:32.000Z","updated_at":"2026-05-23T12:02:46.000Z","dependencies_parsed_at":"2025-07-30T06:02:02.547Z","dependency_job_id":null,"html_url":"https://github.com/Anselmoo/mcp-server-analyzer","commit_stats":null,"previous_names":["anselmoo/mcp-server-analyzer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Anselmoo/mcp-server-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fmcp-server-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fmcp-server-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fmcp-server-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fmcp-server-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anselmoo","download_url":"https://codeload.github.com/Anselmoo/mcp-server-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fmcp-server-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33426013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-quality","copilot","linting","llm","mcp","mcp-server","python","ruff","vibe-coding","vscode-extension","vulture"],"created_at":"2025-08-18T23:01:32.698Z","updated_at":"2026-05-24T08:02:28.899Z","avatar_url":"https://github.com/Anselmoo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Server Analyzer for Python 🐍🔍\n\n[![SafeSkill 92/100](https://img.shields.io/badge/SafeSkill-92%2F100_Verified%20Safe-brightgreen)](https://safeskill.dev/scan/anselmoo-mcp-server-analyzer)\n\n[![CI/CD Pipeline](https://github.com/anselmoo/mcp-server-analyzer/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/anselmoo/mcp-server-analyzer/actions/workflows/ci-cd.yml)\n[![PyPI version](https://badge.fury.io/py/mcp-server-analyzer.svg)](https://badge.fury.io/py/mcp-server-analyzer)\n[![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/)\n[![Docker](https://img.shields.io/badge/docker-available-blue.svg)](https://github.com/anselmoo/mcp-server-analyzer/pkgs/container/mcp-server-analyzer)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Code Coverage](https://codecov.io/gh/anselmoo/mcp-server-analyzer/branch/main/graph/badge.svg)](https://codecov.io/gh/anselmoo/mcp-server-analyzer)\n[![AgentSeal MCP](https://agentseal.org/api/v1/mcp/mcp-server-analyzer/badge)](https://agentseal.org/mcp/mcp-server-analyzer)\n[![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://anselmoo.github.io/mcp-server-analyzer/)\n\n\nA powerful [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that provides comprehensive Python code analysis using [**Ruff**](https://docs.astral.sh/ruff/) for linting, [**ty**](https://docs.astral.sh/ty/) for type checking, and [**Vulture**](https://github.com/jendrikseipp/vulture) for dead code detection. Perfect for AI assistants, IDEs, and automated code review workflows.\n\n## 🚀 Quick Start\n\n### VS Code Integration (One-Click Install)\n\nFor quick installation, use one of the one-click install buttons below...\n\n[![Install with UV in VS Code](https://img.shields.io/badge/VS_Code-UV-0098FF?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=analyzer\u0026config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-analyzer%22%5D%7D) [![Install with UV in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-UV-24bfa5?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=analyzer\u0026config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-analyzer%22%5D%7D\u0026quality=insiders)\n\n[![Install with Docker in VS Code](https://img.shields.io/badge/VS_Code-Docker-0098FF?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=analyzer\u0026config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fanselmoo%2Fmcp-server-analyzer%22%5D%7D) [![Install with Docker in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Docker-24bfa5?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=analyzer\u0026config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fanselmoo%2Fmcp-server-analyzer%22%5D%7D\u0026quality=insiders)\n\nFor manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`.\n\nOptionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.\n\n\u003e Note that the `mcp` key is needed when using the `mcp.json` file.\n\n**Using uvx (recommended):**\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"analyzer\": {\n        \"command\": \"uvx\",\n        \"args\": [\"mcp-server-analyzer\"]\n      }\n    }\n  }\n}\n```\n\n**Using Docker:**\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"analyzer\": {\n        \"command\": \"docker\",\n        \"args\": [\"run\", \"-i\", \"--rm\", \"ghcr.io/anselmoo/mcp-server-analyzer\"]\n      }\n    }\n  }\n}\n```\n\n### Universal Installation\n\n```bash\n# Install with uvx (recommended)\nuvx install mcp-server-analyzer\n\n# Install with pip\npip install mcp-server-analyzer\n\n# Run with Docker\ndocker run ghcr.io/anselmoo/mcp-server-analyzer:latest\n\n# Install from source\ngit clone https://github.com/anselmoo/mcp-server-analyzer.git\ncd mcp-server-analyzer\nuv sync --dev\nuv run mcp-server-analyzer\n```\n\n## 📋 Features\n\n- **🔍 RUFF Analysis**: Comprehensive Python linting with auto-fixes\n- **🧠 ty Type Checking**: Fast Python type analysis with rule-based diagnostics\n- **🧹 Dead Code Detection**: Find unused imports, functions, and variables with VULTURE\n- **📊 Quality Scoring**: Combined analysis with quality metrics\n- **🚀 FastMCP Framework**: High-performance MCP server implementation\n- **🐳 Docker Ready**: Multi-architecture containers with security signing\n- **🔒 Secure**: All releases signed with Sigstore for supply chain security\n\n## 📈 Analysis Examples\n\n### RUFF Linting Preview\n\nSee comprehensive linting analysis examples: **[📋 RUFF Analysis Preview](examples/preview-ruff.md)**\n\n### VULTURE Dead Code Detection Preview\n\nExplore dead code detection capabilities: **[🧹 VULTURE Analysis Preview](examples/preview-vulture.md)**\n\n## 🛠️ Available Tools\n\n| Tool            | Description                      | Use Case                             |\n| --------------- | -------------------------------- | ------------------------------------ |\n| `ruff-check`    | Lint Python code with RUFF       | Style violations, potential errors   |\n| `ruff-format`   | Format Python code with RUFF     | Code formatting and consistency      |\n| `ruff-check-ci` | CI/CD optimized RUFF output      | GitHub Actions, GitLab CI            |\n| `ty-check`      | Type-check Python code with ty   | Type safety, incorrect return values |\n| `vulture-scan`  | Dead code detection              | Unused imports, functions, variables |\n| `analyze-code`  | Combined Ruff + ty + Vulture analysis | Complete code quality assessment |\n\n## 🔧 Configuration\n\n### Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"analyzer\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mcp-server-analyzer\"]\n    }\n  }\n}\n```\n\n### Zed\n\nAdd to your Zed settings.json:\n\n```json\n\"context_servers\": {\n  \"analyzer\": {\n    \"command\": \"uvx\",\n    \"args\": [\"mcp-server-analyzer\"]\n  }\n}\n```\n\n### Claude Code (project-level)\n\nPlace `.mcp.json` at your project root:\n\n```json\n{\n  \"mcpServers\": {\n    \"analyzer\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mcp-server-analyzer\"]\n    }\n  }\n}\n```\n\n## 🧪 Development\n\n### Prerequisites\n\n- Python 3.10+\n- [uv](https://docs.astral.sh/uv/) (recommended) or pip\n- [Docker](https://docker.com) (optional)\n\n### Setup\n\n```bash\n# Clone repository\ngit clone https://github.com/anselmoo/mcp-server-analyzer.git\ncd mcp-server-analyzer\n\n# Install dependencies\nuv sync --dev\n\n# Run tests\nuv run pytest\n\n# Run type checks\nuv run ty check src tests\n\n# Run pre-commit hooks\nuv tool run pre-commit run --all-files\n\n# Build Docker image\ndocker build -t mcp-server-analyzer .\n```\n\n### Testing\n\n```bash\n# Run all tests\nuv run pytest tests/ -v\n\n# Run with coverage\nuv run pytest --cov=src/mcp_server_analyzer --cov-report=html\n\n# Test specific functionality\nuv run pytest tests/test_server.py::TestAnalyzers::test_ruff_with_sample_code\n```\n\n## 📊 Quality Metrics\n\nThe server provides quality scoring based on:\n\n- **Ruff Issues**: Style violations, potential bugs, complexity metrics\n- **ty Diagnostics**: Static typing errors and warnings\n- **Dead Code Detection**: Unused imports, functions, variables\n- **Combined Score**: Weighted quality assessment (0-100)\n\n## 🔒 Security\n\n- **Signed Releases**: All releases signed with [Sigstore](https://sigstore.dev/)\n- **Container Signing**: Docker images signed with [Cosign](https://docs.sigstore.dev/cosign/overview/)\n- **Trusted Publishing**: PyPI releases use GitHub OIDC trusted publishing\n- **Vulnerability Scanning**: Automated security scanning in CI/CD\n- **Supply Chain Security**: SLSA Build Level 3 compliance\n- **Security Policy**: See [SECURITY.md](SECURITY.md) for vulnerability reporting\n\n## 🔍 Data Handling \u0026 Transparency\n\n- **In-memory only**: Code passed to tools is written to a temporary file, analyzed, and the file is deleted immediately — nothing is persisted between calls.\n- **No network calls**: The server makes no outbound network connections during analysis.\n- **No telemetry**: No usage data, analytics, or crash reports are collected.\n- **Subprocess isolation**: ruff, ty, and vulture are invoked with fixed argument lists — no shell expansion or arbitrary command execution.\n\n## 📚 Documentation\n\n- **[Full Documentation](https://anselmoo.github.io/mcp-server-analyzer/)** - GitHub Pages docs\n- **[Tools Reference](https://anselmoo.github.io/mcp-server-analyzer/tools/)** - Detailed tool parameters and return types\n- **[MCP Specification](https://modelcontextprotocol.io/)** - Learn about Model Context Protocol\n- **[FastMCP Framework](https://gofastmcp.com/)** - High-performance MCP implementation\n- **[Ruff Documentation](https://docs.astral.sh/ruff/)** - Python linter and formatter\n- **[ty Documentation](https://docs.astral.sh/ty/)** - Python type checker and language server\n- **[Vulture Documentation](https://github.com/jendrikseipp/vulture)** - Dead code finder\n\n## 🤝 Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes using [Conventional Commits](https://www.conventionalcommits.org/)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- [Astral](https://astral.sh/) for RUFF and uv\n- [Jendrik Seipp](https://github.com/jendrikseipp) for VULTURE\n- [Model Context Protocol](https://modelcontextprotocol.io/) team\n- [FastMCP](https://gofastmcp.com/) framework\n\n---\n\n**Made with ❤️ for better Python code quality**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanselmoo%2Fmcp-server-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanselmoo%2Fmcp-server-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanselmoo%2Fmcp-server-analyzer/lists"}