codeql-mcp-server

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

  1. Install dependencies:
pip install -r requirements.txt
  1. Install CodeQL CLI

  2. 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.