{"id":30866623,"url":"https://github.com/JordyZomer/codeql-mcp","last_synced_at":"2025-09-07T22:06:12.020Z","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","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274101771,"owners_count":25222447,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-07T22:03:13.906Z","updated_at":"2025-09-07T22:06:11.979Z","avatar_url":"https://github.com/JordyZomer.png","language":"Python","funding_links":[],"categories":["Tooling \u0026 Environment","📚 Projects (1974 total)","🤖 AI/ML","🔬 Vulnerability Research \u0026 Analysis"],"sub_categories":["CodeQL AI \u0026 LLM Tooling","MCP Servers"],"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","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"}