
Fortinet MCP
Audit every client FortiGate for firmware, SSL-VPN exposure, admin accounts and license…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.10
- Listing updated
- 4 days ago
About Fortinet MCP
Fortinet MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Audit every client FortiGate for firmware, SSL-VPN exposure, admin accounts and license expiry.
Install
Run in a terminal
claude mcp add fortinet-mcp --env FORTINET_BASE_URL='<FORTINET_BASE_URL>' --env FORTINET_API_TOKEN='<FORTINET_API_TOKEN>' --env FORTINET_FMG_API_KEY='<FORTINET_FMG_API_KEY>' --env FORTINET_CLOUD_API_PASSWORD='<FORTINET_CLOUD_API_PASSWORD>' --env FORTINET_MCP_HTTP_TOKEN='<FORTINET_MCP_HTTP_TOKEN>' --env PRINTING_PRESS_CLIENT_PROFILE='<PRINTING_PRESS_CLIENT_PROFILE>' -- npx -y https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpbAdd to claude_desktop_config.json
{
"mcpServers": {
"fortinet-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb"
],
"env": {
"FORTINET_BASE_URL": "<FORTINET_BASE_URL>",
"FORTINET_API_TOKEN": "<FORTINET_API_TOKEN>",
"FORTINET_FMG_API_KEY": "<FORTINET_FMG_API_KEY>",
"FORTINET_CLOUD_API_PASSWORD": "<FORTINET_CLOUD_API_PASSWORD>",
"FORTINET_MCP_HTTP_TOKEN": "<FORTINET_MCP_HTTP_TOKEN>",
"PRINTING_PRESS_CLIENT_PROFILE": "<PRINTING_PRESS_CLIENT_PROFILE>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"fortinet-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb"
],
"env": {
"FORTINET_BASE_URL": "<FORTINET_BASE_URL>",
"FORTINET_API_TOKEN": "<FORTINET_API_TOKEN>",
"FORTINET_FMG_API_KEY": "<FORTINET_FMG_API_KEY>",
"FORTINET_CLOUD_API_PASSWORD": "<FORTINET_CLOUD_API_PASSWORD>",
"FORTINET_MCP_HTTP_TOKEN": "<FORTINET_MCP_HTTP_TOKEN>",
"PRINTING_PRESS_CLIENT_PROFILE": "<PRINTING_PRESS_CLIENT_PROFILE>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"fortinet-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb"
],
"env": {
"FORTINET_BASE_URL": "<FORTINET_BASE_URL>",
"FORTINET_API_TOKEN": "<FORTINET_API_TOKEN>",
"FORTINET_FMG_API_KEY": "<FORTINET_FMG_API_KEY>",
"FORTINET_CLOUD_API_PASSWORD": "<FORTINET_CLOUD_API_PASSWORD>",
"FORTINET_MCP_HTTP_TOKEN": "<FORTINET_MCP_HTTP_TOKEN>",
"PRINTING_PRESS_CLIENT_PROFILE": "<PRINTING_PRESS_CLIENT_PROFILE>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"fortinet-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb"
],
"env": {
"FORTINET_BASE_URL": "<FORTINET_BASE_URL>",
"FORTINET_API_TOKEN": "<FORTINET_API_TOKEN>",
"FORTINET_FMG_API_KEY": "<FORTINET_FMG_API_KEY>",
"FORTINET_CLOUD_API_PASSWORD": "<FORTINET_CLOUD_API_PASSWORD>",
"FORTINET_MCP_HTTP_TOKEN": "<FORTINET_MCP_HTTP_TOKEN>",
"PRINTING_PRESS_CLIENT_PROFILE": "<PRINTING_PRESS_CLIENT_PROFILE>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"fortinet-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb"
],
"env": {
"FORTINET_BASE_URL": "<FORTINET_BASE_URL>",
"FORTINET_API_TOKEN": "<FORTINET_API_TOKEN>",
"FORTINET_FMG_API_KEY": "<FORTINET_FMG_API_KEY>",
"FORTINET_CLOUD_API_PASSWORD": "<FORTINET_CLOUD_API_PASSWORD>",
"FORTINET_MCP_HTTP_TOKEN": "<FORTINET_MCP_HTTP_TOKEN>",
"PRINTING_PRESS_CLIENT_PROFILE": "<PRINTING_PRESS_CLIENT_PROFILE>"
}
}
}
}Configuration
FORTINET_BASE_URLYour FortiGate's REST API root, e.g. https://203.0.113.10:8443/api/v2.RequiredFORTINET_API_TOKENThe FortiGate REST API admin token (System > Administrators > Create New > REST API Admin). Use a read-only admin profile.RequiredFORTINET_DEVICESOptional. Path to a devices.toml listing every FortiGate the fleet, audit and policies hygiene commands check, each with a token_file. Leave blank to check only the FortiGate above.FORTINET_FMG_URLOptional. https://<fortimanager> for the read-only fmg commands. Leave blank if you do not use FortiManager.FORTINET_FMG_API_KEYOptional. API key of a FortiManager REST API admin (FortiManager 7.2.2 or later) for the fmg commands.FORTINET_CLOUD_API_USEROptional. FortiCloud IAM API user (with FortiGate Cloud portal permission) for the read-only cloud commands.FORTINET_CLOUD_API_PASSWORDOptional. Password of the FortiCloud IAM API user. Repeated failed logins lock the FortiCloud account for 15-30 minutes.FORTINET_CLOUD_REGIONOptional. global (default), us, eu or jp: the region your FortiGates were provisioned in.FORTINET_CLOUD_ACCOUNT_IDOptional. Required only when FortiCloud Organizations are enabled.FORTINET_MCP_READ_ONLYOptional. Set to 1 to expose only read-only mirrored tools and refuse any non-GET execute call.FORTINET_MCP_HTTP_TOKENRequired only when running the MCP server with --transport http (a remote/hosted deployment); callers must send a matching Authorization: Bearer header. Not needed for the default local stdio transport Claude Desktop uses.FORTINET_NO_LOCAL_DATAOptional. Set to 1 to keep no local copy of API responses: reads go to the API and the response cache is off.FORTINET_USER_AGENTOptional. Overrides the User-Agent the CLI sends to your FortiGates. Leave blank to use the built-in one.PRINTING_PRESS_CLIENT_PROFILEOnly used when the MCP server is bound to a tenant-gated client profile. This connector registers no tenant-gated source, so leave it blank.
Pricing
Open source
Fortinet MCP FAQ
Is Fortinet MCP free?
Yes. Fortinet MCP is open source, so you can use and self-host it for free.
How do I add Fortinet MCP to Claude Code?
Run this command in your terminal: claude mcp add fortinet-mcp --env FORTINET_BASE_URL='<FORTINET_BASE_URL>' --env FORTINET_API_TOKEN='<FORTINET_API_TOKEN>' --env FORTINET_FMG_API_KEY='<FORTINET_FMG_API_KEY>' --env FORTINET_CLOUD_API_PASSWORD='<FORTINET_CLOUD_API_PASSWORD>' --env FORTINET_MCP_HTTP_TOKEN='<FORTINET_MCP_HTTP_TOKEN>' --env PRINTING_PRESS_CLIENT_PROFILE='<PRINTING_PRESS_CLIENT_PROFILE>' -- npx -y https://github.com/Servosity/msp-skills/releases/download/fortinet-v0.1.10/fortinet-mcp.mcpb