An MCP (Model Context Protocol) server that exposes FortiManager operations as tools for Claude. Built with Python using the FastMCP SDK and pyFMG library.
- list_adoms — List all ADOMs (Administrative Domains) on FortiManager
- list_devices — List all devices in a given ADOM (name, serial, platform, connection status)
Native install (recommended, no Node.js required):
curl -fsSL https://claude.ai/install.sh | bashThis auto-updates in the background. See https://code.claude.com/docs/en/setup for details.
python3 -m venv venv
source venv/bin/activate
pip install pyFMG "mcp[cli]" python-dotenvCreate a .env file in the project root:
FMG_HOST=your-fortimanager-hostname
FMG_API_KEY=your-api-key
source venv/bin/activate
python server.pyThe server listens on http://0.0.0.0:8000 with the MCP endpoint at /mcp.
Register the MCP server with Claude Code:
claude mcp add fortinet-fmg --transport http http://localhost:8000/mcpThen launch Claude Code:
cd /path/to/fortinet-mcp
claudeClaude can now call the FortiManager tools directly, e.g. "list the ADOMs on FortiManager".