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
.bqrsfiles into JSON - Locate predicate/class symbol positions
use cases of CodeQL MCP Server?
- Integrating CodeQL with AI tools for enhanced query capabilities.
- Facilitating natural language commands to interact with CodeQL databases.
- 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.txtorpip install fastmcp httpx.
- How do I run the server?
Use the command
uv run mcp run server.py -t sseto start the server.