Local Atomic SAST MCP servers for C, Rust, and Go projects.
This project provides language-specific FastMCP servers that help LLM agents inspect source code with local static-analysis tools such as semgrep, ast-grep, weggli, ripgrep, and magika.
- C server: function, variable, macro, structure, call relationship, and grep helpers.
- Rust server: function, struct, enum, trait, impl block, call site, and grep helpers.
- Go server: function, method, struct, interface, type, call site, and grep helpers.
- Startup dependency check with automatic installation attempts for missing required CLI tools.
uvx --from git+https://github.com/Cossack9989/atomic-sast-mcp-server atomic-sast4c-mcp-server
uvx --from git+https://github.com/Cossack9989/atomic-sast-mcp-server atomic-sast4rust-mcp-server
uvx --from git+https://github.com/Cossack9989/atomic-sast-mcp-server atomic-sast4go-mcp-serverThe default command currently points to the C server:
uvx --from git+https://github.com/Cossack9989/atomic-sast-mcp-server atomic-sast-mcp-serverpython sast_c.py
python sast_rust.py
python sast_go.pyOr use the dispatcher:
python sast.py c
python sast.py rust
python sast.py goPython dependencies are installed from pyproject.toml:
fastmcpmagika
External CLI tools should be available in PATH:
- Common:
semgrep,ast-grep,rg - C only:
weggli - Optional:
cargofor Rust projects,gofor Go projects. These language toolchains are checked only and are not installed by this MCP server.
At startup, each MCP server installs missing required CLI tools automatically. It prefers user/tool-level installers first, and only uses platform-specific installers when applicable.
semgrep:pip,pip --break-system-packages,uv tool, thenpipxast-grep:pip,pip --break-system-packages,npm,cargo, thenbrewon macOSrg:apt,cargo,brewon macOS, or Windows package managersweggli:cargo, thenbrewon macOScargo/go: checked only, never auto-installed
python3 -m pip wheel --no-deps . -w buildThe wheel will be generated under build/.
src/
├── atomic_sast_mcp_common/
├── atomic_sast4c_mcp_server/
├── atomic_sast4rust_mcp_server/
└── atomic_sast4go_mcp_server/