CodeAudit Agent
MCP server for AI-powered code security, quality, and performance review. Enables auditing code directly from VS Code via right-click or MCP tools.
README
<div align="center">
๐ CodeAudit Agent
AI-Powered Code Security, Quality & Performance Review
Paste any code โ Get security vulnerabilities, quality issues, performance bottlenecks, auto-fix, and a graded report.
Works as a Streamlit web app AND as an MCP server for VS Code.
</div>
What it detects
| Category | Checks |
|---|---|
| ๐ Security | OWASP Top 10 ยท SQL injection ยท XSS ยท hardcoded secrets ยท eval() ยท weak crypto ยท debug mode |
| โจ Quality | SOLID violations ยท cyclomatic complexity ยท naming ยท DRY ยท magic numbers ยท error handling |
| โก Performance | O(nยฒ) loops ยท N+1 queries ยท memory leaks ยท blocking I/O ยท string concat in loops |
Languages supported
Python ยท JavaScript ยท TypeScript ยท Java ยท C++ ยท C ยท C# ยท Go ยท Rust ยท PHP ยท Ruby ยท Swift ยท Kotlin ยท SQL ยท Bash
Architecture
Code input (Streamlit UI or VS Code via MCP)
โ
LangGraph orchestrator
โ (parallel)
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ Security โ Quality โ Performance โ
โ Agent โ Agent โ Agent โ
โ OWASP Top 10 โ SOLID/Clean โ Big-O/leaks โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โ
Fix Agent (auto-generates fixed code)
โ
Scorer (computes grade A+ โ F)
โ
Report (.md + .json export)
Quick Start
git clone https://github.com/nimra-pixel/codeaudit.git
cd codeaudit
pip install -r requirements.txt
cp .env.example .env # add GROQ_API_KEY
streamlit run app.py
MCP Server (for VS Code)
python mcp/server.py
Then install the VS Code extension from vscode/ folder.
Right-click any code โ CodeAudit: Audit This File
MCP Tools exposed
| Tool | Description |
|---|---|
audit_code |
Full security + quality + performance audit |
quick_security_scan |
Security only (faster) |
detect_code_language |
Detect programming language |
Works with LangGraph, CrewAI, Claude Desktop, and any MCP client.
Built by
Nimra Tariq โ AI Engineer & Assistant Professor, Superior University Lahore, Pakistan
Also built: MedAgent ยท DeepResearch ยท VEMA
MIT License
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
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.