Files
pentestagent/mcp_examples/kali
2026-02-12 19:19:42 +01:00
..
2026-02-12 19:13:20 +01:00
2026-02-12 19:13:20 +01:00
2026-02-12 19:13:20 +01:00
2026-02-12 19:19:42 +01:00

KALI MCP integration

Steps

  1. Compile base Docker image.
docker build ../../ -t pentestagent:latest 
  1. Configure .env file with API tokens and models for AI.
OPENAI_API_KEY=sk-...
PENTESTAGENT_MODEL=gpt-5
  1. Configure the IP address or hostname in the mcp_servers.json file:
{
  "mcpServers": {
    "kali": {
      "command": "python",
      "args": ["MCP-Kali-Server/mcp_server.py", "--server", "http://<hostname>:5000"]
    }
  }
}
  1. Launch docker-compose
# Build
docker-compose build

# Run
docker-compose run --rm pentestagent

At this point, you will be able to check the MCP servers with the /mcp list command

alt text

On server side, there should be a connection incoming:

alt text