codeql-mcp

JordyZomer
93
This project runs a Model Context Protocol (MCP) server that wraps the CodeQL query server. It enables tools like [Cursor](https://cursor.sh/) or AI agents to interact with CodeQL through structured commands.

Overview

codeql-mcp Introduction

codeql-mcp is a Model Context Protocol (MCP) server that acts as a wrapper for the CodeQL query server, allowing tools like Cursor or AI agents to interact with CodeQL using structured commands.

How to Use

To use codeql-mcp, install the required packages using 'uv' or 'pip', then run the server with 'uv run mcp run server.py -t sse'. Ensure that your Cursor configuration points to the correct MCP server URL.

Key Features

Key features include the ability to register CodeQL databases, run full queries or quickly evaluate symbols, decode .bqrs files into JSON, and locate predicate/class symbol positions.

Where to Use

codeql-mcp can be used in software development environments, particularly for code analysis, security auditing, and automated code review processes.

Use Cases

Use cases for codeql-mcp include integrating CodeQL with development tools, enabling AI agents to perform code queries, and facilitating document searches related to code analysis.

Content