MCP.so
登录

CodeQL MCP Server

@JordyZomer

基本信息

分类

其他

传输方式

stdio

作者

JordyZomer

关于 CodeQL MCP Server

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.

#codeql#mcp#query-server

CodeQL MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "codeql-mcp": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "-r",
        "requirements.txt"
      ]
    }
  }
}

CodeQL MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is CodeQL MCP Server?

It wraps the CodeQL query server and exposes its capabilities via the Model Context Protocol (MCP), enabling tools like Cursor or AI agents to interact with CodeQL through structured commands and doc search.

How to use CodeQL MCP Server?

Install the Python dependencies with uv pip install -r requirements.txt or pip install fastmcp httpx. Start the MCP server using uv run mcp run server.py -t sse, which listens at http://localhost:8000/sse. Configure a client like Cursor by adding the server URL to its .cursor/config.json.

Key features of CodeQL MCP Server

  • Register a CodeQL database for querying
  • Run full CodeQL queries and retrieve results
  • Quick-evaluate a symbol (e.g., a function or class)
  • Decode .bqrs result files into JSON
  • Locate predicate or class symbol positions in source code

Use cases of CodeQL MCP Server

  • Querying a codebase using CodeQL from a Cursor IDE session
  • Decoding .bqrs query results into JSON for downstream analysis
  • Locating definitions of predicates and classes in code via natural language
  • Running CodeQL queries programmatically from an AI agent

常见问题

1

What are the requirements to run the CodeQL MCP Server?

Python packages `fastmcp` and `httpx` are required, and a `codeql` binary must be available in your `$PATH` (or its path can be hardcoded in `codeqlclient.py`).

2

How do I start the CodeQL MCP Server?

Run `uv run mcp run server.py -t sse` from the project directory. The server will listen on `http://localhost:8000/sse` by default.

3

How do I configure Cursor to use the CodeQL MCP Server?

Add a `"CodeQL"` entry under `"mcpServers"` in your `.cursor/config.json`, pointing the `"url"` to `"http://localhost:8000/sse"`.

4

What transport does the CodeQL MCP Server use?

The server uses Server-Sent Events (SS

评论

其他 分类下的更多 MCP 服务器