Back to Home
Lekssays icon

codebadger-toolkit

Verified Safe

by Lekssays

Overview

A containerized Model Context Protocol (MCP) server providing static code analysis using Joern's Code Property Graph (CPG) technology for integration with AI/LLM agents.

Installation

Run Command
python main.py &

Environment Variables

  • MCP_HOST
  • MCP_PORT
  • MCP_LOG_LEVEL
  • JOERN_BINARY_PATH
  • JOERN_MEMORY_LIMIT
  • JOERN_JAVA_OPTS
  • JOERN_SERVER_AUTH_USERNAME
  • JOERN_SERVER_AUTH_PASSWORD
  • CPG_GENERATION_TIMEOUT
  • MAX_REPO_SIZE_MB
  • QUERY_TIMEOUT
  • QUERY_CACHE_ENABLED
  • QUERY_CACHE_TTL
  • WORKSPACE_ROOT
  • CLEANUP_ON_SHUTDOWN
  • JOERN_CONTAINER_NAME

Security Notes

The server processes arbitrary source code for analysis, which is an inherent risk. It utilizes Docker containerization for the Joern analysis engine, providing a layer of isolation. Input validation is present for CPGQL queries (blocking dangerous commands like `System.exit`) and source code paths (preventing traversal). Extensive use of `docker exec` for CPG generation and Joern server management inside the container is a critical component; while paths are constrained to the `/playground` mount, any vulnerability in command construction could be severe. No hardcoded secrets were identified. Overall, the system demonstrates awareness of security implications, but running arbitrary static analysis inherently carries risks.

Similar Servers

Stats

Interest Score49
Security Score7
Cost ClassHigh
Avg Tokens1000
Stars29
Forks3
Last Update2025-12-14

Tags

Static AnalysisCode Property GraphAI Agent ToolSecurity AnalysisSoftware Development