CodeQL MCP Server
Features
- Register CodeQL databases
- Run full queries or quick-evaluate a symbol
- Decode
.bqrsfiles into JSON
- Locate predicate/class symbol positions
File Structure
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Requirements
pip:Running the MCP Server
- Starts the server at http://localhost:8000/sse
- Required for Cursor or AI agent use
Cursor Config
.cusor/config.json contains:Notes
- Tools like Cursor will invoke these commands directly via natural language.
- You must have a codeql binary in your $PATH, or hardcode its path in codeqlclient.py.
- You should probably specify query locations, query write locations and database paths in your prompts.
CodeQL MCP Server
Features
- Register CodeQL databases
- Run full queries or quick-evaluate a symbol
- Decode
.bqrsfiles into JSON
- Locate predicate/class symbol positions
File Structure
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Requirements
pip:Running the MCP Server
- Starts the server at http://localhost:8000/sse
- Required for Cursor or AI agent use
Cursor Config
.cusor/config.json contains:Notes
- Tools like Cursor will invoke these commands directly via natural language.
- You must have a codeql binary in your $PATH, or hardcode its path in codeqlclient.py.
- You should probably specify query locations, query write locations and database paths in your prompts.