MCP server for HackiAI security code analysis
Project description
hacki-mcp
Security code analysis for your IDE, powered by the HackiAI API.
hacki-mcp is a Model Context Protocol (MCP) server that brings HackiAI's security analysis directly into Claude Desktop, Cursor, VS Code, Claude Code, and any other MCP-compatible client.
Tools
| Tool | Description |
|---|---|
hacki_review_file |
Analyze a single file for security vulnerabilities |
hacki_review_files |
Analyze a list of files together |
hacki_review_directory |
Analyze a directory recursively |
hacki_commit |
Analyze staged files and generate a suggested commit message |
hacki_get_history |
List past reviews with filters and pagination |
hacki_get_findings |
Get the findings for a specific review |
hacki_update_finding_status |
Mark a finding as resolved, ignored, or pending |
Requirements
A HackiAI API key. Get one at hacki.ai.
Installation
uvx — recommended, no install needed
uvx runs the server on demand without polluting your Python environment:
{
"mcpServers": {
"hacki": {
"command": "uvx",
"args": ["hacki-mcp"],
"env": { "HACKI_API_KEY": "hacki_xxxx" }
}
}
}
pip
pip install hacki-mcp
Docker
docker pull hackiai/hacki-mcp
Configuration
Claude Desktop
Edit your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"hacki": {
"command": "uvx",
"args": ["hacki-mcp"],
"env": {
"HACKI_API_KEY": "hacki_xxxx"
}
}
}
}
Claude Code
claude mcp add hacki -- uvx hacki-mcp
Then add your API key in .claude/settings.json:
{
"mcpServers": {
"hacki": {
"command": "uvx",
"args": ["hacki-mcp"],
"env": {
"HACKI_API_KEY": "hacki_xxxx"
}
}
}
}
Cursor / VS Code
Add to your MCP settings:
{
"mcpServers": {
"hacki": {
"command": "uvx",
"args": ["hacki-mcp"],
"env": {
"HACKI_API_KEY": "hacki_xxxx"
}
}
}
}
Docker (any IDE)
Use this variant if you prefer not to install Python:
{
"mcpServers": {
"hacki": {
"command": "docker",
"args": ["run", "--rm", "-i", "-e", "HACKI_API_KEY", "hackiai/hacki-mcp"],
"env": {
"HACKI_API_KEY": "hacki_xxxx"
}
}
}
}
Already using the HackiAI CLI?
If you have run hacki login, your credentials are already stored at ~/.hacki_cli/config.json. The MCP reads them automatically — no HACKI_API_KEY needed in the config.
Code Graph
hacki-mcp automatically generates AST, IR, CFG, and DFG graphs (via hacki-graph) when analyzing multiple files. This significantly improves cross-file vulnerability detection.
Supported languages: Python, JavaScript, TypeScript, Java, C#, Go, PHP.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hacki_mcp-0.1.0.tar.gz.
File metadata
- Download URL: hacki_mcp-0.1.0.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b178fd01d0c88c9dda948a44bc70d688781a6563e1cde49a7c27dafedc304d
|
|
| MD5 |
54bca033ec4c8f89d92ec4b151121f18
|
|
| BLAKE2b-256 |
6edb6cf59fc1d610e5d8c50d2d208a489edf5b9d46e2fa3c1e8a78f1f3097b83
|
File details
Details for the file hacki_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hacki_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5612ee500b3069ee1cdd84a8bbaaa6e8b6312fde4f67634a9fd2b3bc7a97f4cc
|
|
| MD5 |
d5560f24212c210ecb206ae5806ef939
|
|
| BLAKE2b-256 |
42fc049ba70852f7a0f1413ea4bf6dd8ff644a6738b0d6d41fcf3c1b7c99574e
|