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.

Installation

Run Command
python main.py &

Environment Variables

  • MCP_HOST
  • MCP_PORT
  • MCP_LOG_LEVEL
  • JOERN_BINARY_PATH
  • JOERN_MEMORY_LIMIT
  • JOERN_JAVA_OPTS
  • 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 itself does not use 'eval' or contain obvious malicious patterns. Input validation is applied to various parameters, including CPGQL queries, to prevent common injection attacks. However, the spawned Joern server instances run within a Docker container, and their ports (2000-2999) are mapped directly to the host's localhost interface by default (`docker-compose.yml`). These Joern instances currently lack explicit authentication (`joern.server_auth_username/password` from config are not passed to `JoernServerClient`), meaning any other process on the host machine could potentially interact with them directly, bypassing the MCP server's tool interface. While this is a local access risk rather than external network exposure, it's a notable design choice.

Similar Servers

Stats

Interest Score26
Security Score6
Cost ClassHigh
Stars36
Forks3
Last Update2025-12-15

Tags

static analysisCPGJoernsecuritydeveloper toolsMCP