PF

paoloamato2/fortinet-mcp-server

API development

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 5 forks 품질 72 트렌드 18MIT

A complete Model Context Protocol (MCP) server for Fortinet FortiOS 7.6.6

개요

A complete Model Context Protocol (MCP) server for Fortinet FortiOS 7.6.x — exposing the entire REST API (1536 endpoints) as typed MCP tools usable from Claude Desktop, Cursor, or any MCP-compatible client. - organized by functional area (system, firewall, VPN, router, user, monitor, log, security, wireless) - that cover all 1,536 FortiOS API endpoints - Async HTTP client with Bearer-token authentication via httpx - Full support for API sections - Configurable SSL verification (self-signed certificates supported) - Compatible with environments - Runs as (Claude Desktop) or server (remote/cloud use) 1. Log into your FortiGate Web UI 2. Navigate to 3. Click 4. Assign an admin profile (super_admin for full access, or a restricted profile following least-privilege) 5. Copy the generated — it is shown only once Or manually add to claude_desktop_config.json: On , claude_desktop_config.json is at ~/Library/Application Support/Claude/claude_desktop_config.json.

README

원문 README의 일부입니다. 원문 보기.

FortiOS 7.6.x MCP Server

A complete Model Context Protocol (MCP) server for Fortinet FortiOS 7.6.x — exposing the entire REST API (1536 endpoints) as typed MCP tools usable from Claude Desktop, Cursor, or any MCP-compatible client.


Table of Contents


Features

  • 204+ typed MCP tools organized by functional area (system, firewall, VPN, router, user, monitor, log, security, wireless)
  • 5 generic pass-through tools that cover all 1,536 FortiOS API endpoints
  • Async HTTP client with Bearer-token authentication via httpx
  • Full support for CMDB, Monitor, Log, and Service API sections
  • Configurable SSL verification (self-signed certificates supported)
  • Compatible with multi-VDOM environments
  • Runs as stdio (Claude Desktop) or HTTP server (remote/cloud use)

Tool Categories

Module # Tools Description
Generic 5 cmdb_list/get/create/update/delete, monitor_get/action, log_get, service_call — cover ALL endpoints
System 27 Interfaces, DNS, NTP, admins, DHCP, SNMP, certificates, VDOMs, syslog
Firewall 32 Policies (IPv4/IPv6), addresses, address groups, services, VIPs, IP pools, schedules, sessions
VPN 22 IPsec Phase 1/2, SSL VPN portals/settings, tunnel up/down, VPN certificates
Router 17 Static routes, OSPF, BGP, RIP, prefix lists, route maps, SD-WAN health
User 18 Local users, groups, RADIUS, LDAP, TACACS+, SAML, authenticated sessions
Monitor 18 ARP, FortiView top talkers, endpoint control, IPS stats, switch controller, config backup
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "fortios": { "command": "uv", "args": [ "run", "--directory", "/absolute/path/to/fortinet-mcp-server", "python", "server.py" ], "env": { "FORTIOS_HOST": "https://192.168.1.1", "FORTIOS_API_TOKEN": "your-api-token", "FORTIOS_VDOM": "root", "FORTIOS_VERIFY_SSL": "false" } } } }