CodeQL CLI를 사용하여 보안 분석 및 코드 품질을 위한 CodeQL 쿼리 작성, 검증 및 최적화를 AI 어시스턴트가 수행할 수 있도록 지원합니다.
다른 이름 advanced-security/codeql-development-mcp-server
- 스타
- 39
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- —
CodeQL Development MCP란?
CodeQL Development은(는) MCP server입니다. CodeQL CLI를 사용하여 보안 분석 및 코드 품질을 위한 CodeQL 쿼리 작성, 검증 및 최적화를 AI 어시스턴트가 수행할 수 있도록 지원합니다.
프로젝트 README에서 생성된 요약
CodeQL Development MCP server 정보
이 서버는 AI 어시스턴트를 사용하는 개발자가 다양한 프로그래밍 언어에 대한 보안 쿼리를 작성하고 최적화할 수 있도록 지원합니다. 대규모 언어 모델과 CodeQL CLI 사이의 전문적인 브릿지 역할을 수행하며, 에이전트가 쿼리 컴파일, 실행 및 데이터베이스 작업을 처리할 수 있게 합니다. Python, JavaScript, Java, C/C++, Rust, Swift를 포함한 10가지 언어를 지원하므로 보안 분석 및 코드 품질 관리 작업에 다용도로 활용할 수 있습니다.
이 서버를 사용하려면 CodeQL CLI가 설치되어 있고 시스템 PATH에서 접근 가능해야 합니다. VS Code 또는 Cursor와 같은 IDE에 VSIX 확장을 통해 통합하거나, stdio 또는 HTTP 전송 모드를 통해 다른 에이전트 도구와 함께 사용할 수 있습니다. 내장된 프롬프트와 리소스를 통해 고급 개발 관행을 코드화하지만, 성능은 분석 대상인 CodeQL 데이터베이스의 크기에 따라 달라집니다. 설정에는 Node.js v25.6.0 이상 버전과 사용자가 선택한 LLM이 필요합니다.
활용 사례
- 1쿼리 개발 자동화AI 어시스턴트가 특정 보안 취약점을 식별하기 위한 새로운 CodeQL 쿼리를 작성하고 컴파일할 수 있습니다.
- 2쿼리 정확도 검증개발자는 통합된 테스트 도구를 사용하여 보안 쿼리가 예상된 결과를 생성하는지 확인할 수 있습니다.
- 3다국어 보안 분석이 서버를 통해 AI 에이전트가 광범위한 프로그래밍 언어에 대해 보안 분석을 수행할 수 있습니다.
- 4CodeQL 데이터베이스 관리AI 에이전트가 보안 스캔 실행에 필요한 데이터베이스 작업을 수행할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
CodeQL Development MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 CodeQL Development MCP 설치
$ claude mcp add codeql-development-mcp-server -- npx -y codeql-development-mcp-serverCursor에 CodeQL Development MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"codeql-development-mcp-server": {
"command": "npx",
"args": [
"-y",
"codeql-development-mcp-server"
]
}
}
}VS Code에 CodeQL Development MCP 설치
.vscode/mcp.json
{
"servers": {
"codeql-development-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codeql-development-mcp-server"
]
}
}
}VS Code CLI에 CodeQL Development MCP 설치
$ code --add-mcp '{"name":"codeql-development-mcp-server","type":"stdio","command":"npx","args":["-y","codeql-development-mcp-server"]}'Claude Desktop에 CodeQL Development MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"codeql-development-mcp-server": {
"command": "npx",
"args": [
"-y",
"codeql-development-mcp-server"
]
}
}
}Codex에 CodeQL Development MCP 설치
$ codex mcp add codeql-development-mcp-server -- npx -y codeql-development-mcp-serverCodex config.toml에 CodeQL Development MCP 설치
~/.codex/config.toml
[mcp_servers.codeql-development-mcp-server] command = "npx" args = ["-y", "codeql-development-mcp-server"]
Gemini CLI에 CodeQL Development MCP 설치
$ gemini mcp add -s user codeql-development-mcp-server npx -- -y codeql-development-mcp-serverGemini settings.json에 CodeQL Development MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"codeql-development-mcp-server": {
"command": "npx",
"args": [
"-y",
"codeql-development-mcp-server"
]
}
}
}자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능advanced-security/codeql-development-mcp-server is public and reachablegithub.com/advanced-security/codeql-development-mcp-server ↗통과
- 패키지가 이 저장소를 소스로 명시codeql-development-mcp-server names advanced-security/codeql-development-mcp-server as sourcenpmjs.com/package/codeql-development-mcp-server ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for codeql-development-mcp-servernpmjs.com/package/codeql-development-mcp-server/v/2.27.4#pro ↗통과
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-06github.com/advanced-security/codeql-development-mcp-server ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from codeql-development-mcp-server통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기CodeQL Development MCP Server
Enabling AI-assisted CodeQL query development through the Model Context Protocol
A comprehensive Model Context Protocol (MCP) server designed specifically for agentic AI development of CodeQL (QL) code. This server provides tools, prompts, and resources to help AI assistants write, validate, and optimize CodeQL queries for security analysis and code quality.
Features
- Comprehensive Tool Suite - Wraps CodeQL CLI commands for query compilation, execution, testing, and database operations
- Multi-Language Support - Supports CodeQL query development for 10 languages including Python, JavaScript, Java, C/C++, Rust, Swift, and more
- AI-Optimized Prompts - Built-in prompts and resources that guide AI assistants through CodeQL development workflows
- Test-Driven Development - Integrated testing tools for validating query accuracy with expected results
- Flexible Transport - Supports both stdio and HTTP transport modes for different integration scenarios
Limitations
- Requires CodeQL CLI to be installed separately
- Performance depends on the size of CodeQL databases being analyzed
- Some advanced CodeQL CLI features may not yet be exposed as tools
Project Status
Active Development - This project is actively maintained and used in production environments for AI-assisted CodeQL development.
Background
The codeql-development-mcp-server project is maintained by GitHub's CodeQL Expert Services team and builds (and hopefully improves) on the concepts from the advanced-security/codeql-development-template repository template.
The main advantages of using the codeql-development-mcp-server are:
- Agnostic of development environment
- Agnostic of calling Large Language Model (LLM)
- MCP server tools codify advanced CodeQL development practices
Roadmap
Development priorities and open issues are tracked in GitHub Issues.
Contributing
We welcome contributions! Whether it's bug fixes, new features, documentation improvements, or additional language support, please see CONTRIBUTING.md for guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Requirements
Environment
- Node.js v25.6.0 or later (nodejs.org)
- Some calling LLM Bring your own LLM, but some LLMs are (much) better than others.
External Dependencies
- CodeQL CLI - Must be installed and available in PATH (github.com/github/codeql-cli-binaries)
Quick Start
VS Code extension via VSIX (recommended for IDEs)
If you run ql-mcp inside VS Code or a compatible fork such as Cursor, install the vscode-codeql-development-mcp-server extension from a VSIX archive — it bundles the server, auto-registers ql-mcp, and discovers the CodeQL CLI. Download the .vsix from GitHub Releases and install it via Extensions: Install from VSIX… in the Command Palette, or build it from source with npm run package:vsix. See the VS Code Extension guide for details.
For Copilot CLI or other non-IDE agentic tools, use one of the methods below.
Install via npm
No repository clone needed — install from npmjs.org:
# Install globally
npm install -g codeql-development-mcp-server
Or run on-demand without installing globally:
npx -y codeql-development-mcp-server
VS Code Configuration
Add to your mcp.json file:
| OS | Location |
|---|---|
| Linux | ~/.config/Code/User/mcp.json |
| macOS | ~/Library/Application Support/Code/User/mcp.json |
| Windows | %APPDATA%\Code\User\mcp.json |
{
"servers": {
"ql-mcp": {
"command": "npx",
"args": ["-y", "codeql-development-mcp-server"],
"type": "stdio"
}
}
}
Install from GitHub Release archive
- Download the latest release from GitHub Releases
- Extract the archive:
tar -xzf codeql-development-mcp-server-vX.X.X.tar.gz -C /path/to/destination
Installing from Source
git clone https://github.com/advanced-security/codeql-development-mcp-server.git
cd codeql-development-mcp-server
npm install && npm run build
Server + extension only (no Go client):
npm run buildalso builds the Goclient/CLI (requires a Go toolchain). To build or package only the server and VS Code extension, usenpm run build:server-and-extensionornpm run package:vsix— neither touchesclient/.
Verification
- Restart VS Code
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run "GitHub Copilot: List MCP Servers"
- Confirm
ql-mcpappears
Supported Languages
| Language | CodeQL Identifier |
|---|---|
| GitHub Actions | actions |
| C/C++ | cpp |
| C# | csharp |
| Go | go |
| Java/Kotlin | java |
| JavaScript/TypeScript | javascript |
| Python | python |
| Ruby | ruby |
| Swift | swift |
Documentation
- Public Installation Guide - Install and run without cloning the repository
- Getting Started Guide - Detailed installation and setup instructions
- Tools Reference - Complete list of available MCP tools
- Prompts Reference - MCP prompts for CodeQL development workflows
- Resources Reference - MCP resources for CodeQL learning and reference
- Testing Strategy - Multi-layer testing approach
License
This project is licensed under the terms of the GitHub CodeQL Terms and Conditions. Please refer to LICENSE for the full terms.
Maintainers
This repository is maintained by the team specified in CODEOWNERS.
Support
This project uses GitHub issues to track bugs and feature requests. Please search existing issues before filing new ones to avoid duplicates.
This project comes with no expectation or guarantee of support, with more details in the SUPPORT.md document.
Acknowledgement
This project builds upon the CodeQL CLI and the broader CodeQL ecosystem developed by GitHub. Special thanks to the GitHub Advanced Security team and the open-source community for their contributions.
CodeQL Development MCP 질문
CodeQL Development MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add codeql-development-mcp-server -- npx -y codeql-development-mcp-server를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
CodeQL Development MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
이 서버를 사용하려면 CodeQL CLI가 필요한가요?
네, CodeQL CLI를 별도로 설치하고 PATH에 등록해야 합니다.
CodeQL 개발 시 어떤 프로그래밍 언어를 지원하나요?
Python, JavaScript, Java, C/C++, Rust, Swift, Go, C#, Ruby, GitHub Actions를 포함한 10개 언어를 지원합니다.
npm으로 이 서버를 어떻게 설치하나요?
'npm install -g codeql-development-mcp-server' 명령어로 전역 설치하거나, 'npx -y codeql-development-mcp-server'를 사용하여 즉시 실행할 수 있습니다.