Submit

CodeQL MCP Server

@JordyZomer

This project runs a Model Context Protocol (MCP) server that wraps the CodeQL query server. It enables tools like [Cursor](
Overview

what is CodeQL MCP Server?

CodeQL MCP Server is a project that runs a Model Context Protocol (MCP) server, which wraps the CodeQL query server, allowing tools like Cursor or AI agents to interact with CodeQL through structured commands and document search.

how to use CodeQL MCP Server?

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

key features of CodeQL MCP Server?

  • Register CodeQL databases
  • Run full queries or quickly evaluate a symbol
  • Decode .bqrs files into JSON
  • Locate predicate/class symbol positions

use cases of CodeQL MCP Server?

  1. Integrating CodeQL with AI tools for enhanced query capabilities.
  2. Facilitating natural language commands to interact with CodeQL databases.
  3. Enabling developers to quickly evaluate symbols in their codebase.

FAQ from CodeQL MCP Server?

  • What is the purpose of the CodeQL MCP Server?

It allows tools and AI agents to interact with CodeQL through structured commands, enhancing the usability of CodeQL queries.

  • How do I install the CodeQL MCP Server?

You can install it using uv pip install -r requirements.txt or pip install fastmcp httpx.

  • How do I run the server?

Use the command uv run mcp run server.py -t sse to start the server.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.