codeql-mcp-server
2.5
The CodeQL MCP Server is designed for integrating CodeQL with AI agents by providing a model context protocol. Key features include code security analysis, query execution, and health monitoring.
CodeQL MCP Server
A Model Context Protocol (MCP) server that provides CodeQL integration for AI agents.
Features
- Code security analysis
- Query execution
- JSON results format
- Health monitoring
Setup
- Install dependencies:
pip install -r requirements.txt
-
Install CodeQL CLI
-
Run server:
uvicorn src.mcp_server:app --reload
API Endpoints
- POST /analyze - Run CodeQL analysis
- GET /health - Check server health
MCP Integration
This server follows the MCP specification for tool integration with AI agents.