MAS GitHub Analyzer
Provides code auditing tools including repository cloning, AST analysis, security scanning with Semgrep, and LLM-powered code explanations via the Model Context Protocol.
README
Analyseur de Dépôts GitHub (MCP + AST + SecOps)
Formats d'intégration : Protocole MCP natif (stdio), API REST (FastAPI bridge), Dashboard React temps réel.
Un outil d'audit "Code-First" intégrant le Model Context Protocol (MCP), l'analyse syntaxique (AST), le scan de sécurité et l'observabilité. Cet outil clone un dépôt, expose des outils d'analyse via un serveur MCP, et les rend accessibles via un bridge FastAPI et un dashboard React.
Le Problème
Les audits de code "boîte noire" prennent un temps infini, reposent souvent sur des documentations obsolètes et ignorent les vulnérabilités cachées. Les LLMs manquent de structure pour analyser une base de code entière sans contexte, et l'intégration de multiples outils d'analyse statique dans un flux automatisé est complexe et fragmentée.
La Solution
Un outil d'audit "Code-First" qui combine l'analyse déterministe (AST via Tree-Sitter, Sécurité via Semgrep) et l'explication IA (LLM). L'ensemble des capacités est exposé nativement via le standard industriel Model Context Protocol (MCP) permettant à n'importe quel client MCP de l'exploiter. Un bridge FastAPI et un dashboard React sont ajoutés pour rendre le système testable et visuel instantanément. L'observabilité est garantie par OpenTelemetry.
Ce que ça prouve
| Compétence | Comment |
|---|---|
| Model Context Protocol (MCP) | Création d'un serveur natif exposant 4 outils standards utilisables par n'importe quel client MCP. |
| Analyse Syntaxique (AST) | Parsing déterministe au lieu d'expressions régulières fragiles via tree-sitter. |
| Security / DevSecOps | Intégration programmatique d'un scanner statique (Semgrep) dans une boucle d'analyse. |
| Observabilité (OpenTelemetry) | Instrumentation du code, tracing distribué, calcul de métriques (durée, compteurs) avec un FileSpanExporter custom. |
| Architecture Découplée | Le cœur MCP fonctionne en isolation, le bridge FastAPI le rend accessible au web, le Dashboard React le rend visuel. |
Stack
- Protocole : FastMCP
- Backend : Python 3.14 + FastAPI
- Analyse AST : Tree-Sitter
- Sécurité : Semgrep
- Observabilité : OpenTelemetry
- LLM : OpenAI (GPT-4o-mini)
- Frontend : React 19 + Vite + TypeScript
Architecture
flowchart TD
subgraph "Frontend"
UI[Dashboard React]
end
subgraph "API Bridge"
API[FastAPI Server]
end
subgraph "MCP Core & Tools"
MCP[Serveur FastMCP]
CLONE[Cloner Git]
AST[Tree-Sitter AST]
SEC[Semgrep Scanner]
LLM[Explainer LLM]
end
subgraph "Observability"
OTEL[OpenTelemetry Tracer]
LOG[(traces.jsonl)]
end
UI -->|HTTP REST| API
API --> CLONE
API --> AST
API --> SEC
API --> LLM
AST -.-> OTEL
SEC -.-> OTEL
CLONE -.-> OTEL
LLM -.-> OTEL
OTEL --> LOG
API -->|GET /traces| LOG
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.