Back to Home
honey-guard icon

anchor-mcp

by honey-guard

Overview

Provides a Model Context Protocol (MCP) server for LLM applications to perform security analysis on Anchor Solana programs and files using solana-fender.

Installation

Run Command
anchor-mcp --mcp

Security Notes

The server directly uses user-provided 'program_path' and 'file_path' arguments from MCP client requests (e.g., 'security_check_program', 'security_check_file') without any validation or sanitization. These paths are then passed to the 'solana_fender' library for file system operations. This is a critical security risk as it could allow for path traversal attacks, arbitrary file reads (if solana_fender allows reading outside intended directories), or denial-of-service by pointing to large/malformed files or devices.

Similar Servers

Stats

Interest Score33
Security Score4
Cost ClassMedium
Avg Tokens2000
Stars3
Forks1
Last Update2025-12-14

Tags

MCPSolanaAnchorSecurity AnalysisRustLLM Integration