codebadger
by Lekssays·★ 102·Score 47
Containerized MCP server for static code analysis using Joern's CPG with multi-language support.
Overview
CodeBadger is a professional-grade MCP server that implements static code analysis using Joern's Code Property Graph technology. It supports analysis across 12+ programming languages including Java, C/C++, JavaScript, Python, Go, and others. The server provides both core CPG operations and specialized vulnerability detection tools, making it valuable for security researchers and developers. Its containerized architecture ensures consistent deployment across environments.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose CodeBadger when you need deep program analysis capabilities for security auditing, vulnerability hunting, or understanding complex codebases across multiple programming languages.
When NOT to choose this
Avoid CodeBadger if you need real-time analysis, don't want to manage Docker containers, or require support for languages not in its 12-language list.
Tools this server exposes
12 tools extracted from the READMEgenerate_cpgGenerate a Code Property Graph (CPG) for a codebase.
get_cpg_statusCheck whether a CPG exists and retrieve status metadata.
run_cpgql_queryExecute a raw CPGQL query against a CPG and return structured results.
list_methodsList methods/functions with optional regex/file filters.
get_method_sourceRetrieve the source code for a named method.
find_taint_sourcesFind likely external input points (taint sources).
find_taint_sinksLocate dangerous sinks where tainted data can flow.
find_taint_flowsDetect dataflows from sources to sinks (taint analysis).
find_null_pointer_derefFind likely null pointer dereferences.
find_integer_overflowDetect integer overflow patterns.
find_format_string_vulnsDetect format string vulnerabilities.
get_codebase_summaryGet high-level metrics about the codebase (files, methods, calls, language).
Comparable tools
Installation
Installation
- Install prerequisites:
```bash # Docker and Docker Compose docker --version docker-compose --version
# Python 3.10+ python --version ```
- Install Python dependencies:
``bash python -m venv venv pip install -r requirements.txt ``
- Start Joern Docker services:
``bash docker compose up -d ``
- Start the MCP server:
``bash python main.py ``
Claude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"codebadger": {
"url": "http://localhost:4242/mcp",
"type": "http"
}
}
}FAQ
- What languages are supported by CodeBadger?
- CodeBadger supports Java, C/C++, JavaScript, Python, Go, Kotlin, C#, Ghidra, Jimple, PHP, Ruby, and Swift.
- How do I customize vulnerability detection?
- You can add custom detectors by creating Scala query templates in `src/tools/queries/your_query.scala` and registering Python tool functions in `src/tools/custom_tools.py`.
On Hacker News
Recent discussion from the developer community.
- Story by codebadger · 2026-05-10
Compare codebadger with
Last updated · Auto-generated from public README + GitHub signals.