{"id":29114776,"url":"https://github.com/jordyzomer/codeql-mcp","last_synced_at":"2025-07-03T16:37:58.862Z","repository":{"id":301874279,"uuid":"957631465","full_name":"JordyZomer/codeql-mcp","owner":"JordyZomer","description":"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.","archived":false,"fork":false,"pushed_at":"2025-03-30T20:35:17.000Z","size":4,"stargazers_count":92,"open_issues_count":3,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T11:11:34.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JordyZomer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-30T20:32:15.000Z","updated_at":"2025-06-23T21:55:32.000Z","dependencies_parsed_at":"2025-06-29T11:21:52.602Z","dependency_job_id":null,"html_url":"https://github.com/JordyZomer/codeql-mcp","commit_stats":null,"previous_names":["jordyzomer/codeql-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JordyZomer/codeql-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordyZomer%2Fcodeql-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordyZomer%2Fcodeql-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordyZomer%2Fcodeql-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordyZomer%2Fcodeql-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JordyZomer","download_url":"https://codeload.github.com/JordyZomer/codeql-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordyZomer%2Fcodeql-mcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263361340,"owners_count":23454909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-29T11:06:39.173Z","updated_at":"2025-07-03T16:37:58.855Z","avatar_url":"https://github.com/JordyZomer.png","language":"Python","readme":"# CodeQL MCP Server\n\nThis 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 and doc search.\n\n---\n\n##  Features\n\n- ✅ Register CodeQL databases  \n- ✅ Run full queries or quick-evaluate a symbol  \n- ✅ Decode `.bqrs` files into JSON  \n- ✅ Locate predicate/class symbol positions  \n\n---\n\n##  File Structure\n\n| File              | Purpose                                             |\n|-------------------|-----------------------------------------------------|\n| `server.py`       | Main FastMCP server exposing CodeQL tools           |\n| `codeqlclient.py` | CodeQLQueryServer implementation (JSON-RPC handler) |\n\n---\n\n##  Requirements\n\nInstall with [`uv`](https://github.com/astral-sh/uv):\n\n```bash\nuv pip install -r requirements.txt\n```\n\nor with `pip`:\n```bash\npip install fastmcp httpx\n```\n\n## Running the MCP Server\n```bash\nuv run mcp run server.py -t sse\n```\n- Starts the server at http://localhost:8000/sse\n- Required for Cursor or AI agent use\n\n## Cursor Config\nMake sure your `.cusor/config.json` contains:\n```\n{\n  \"mcpServers\": {\n    \"CodeQL\": {\n      \"url\": \"http://localhost:8000/sse\"\n    }\n  }\n}\n```\n\n## Notes\n- Tools like Cursor will invoke these commands directly via natural language.\n- You must have a codeql binary in your $PATH, or hardcode its path in codeqlclient.py.\n- You should probably specify query locations, query write locations and database paths in your prompts.\n\n","funding_links":[],"categories":["Repository \u0026 Code Analysis MCP Servers","Security"],"sub_categories":["How to Submit"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordyzomer%2Fcodeql-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordyzomer%2Fcodeql-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordyzomer%2Fcodeql-mcp/lists"}