gjenkins20/unofficial-fortimonitor-mcp-server

šŸ“Š Monitoring
0 Views
0 Installs

šŸ ā˜ļø šŸŽ 🪟 🐧 - Unofficial FortiMonitor v2 API integration with 241 tools for server monitoring, outages, maintenance, metrics, notifications, and more.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "gjenkins20-unofficial-fortimonitor-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "gjenkins20-unofficial-fortimonitor-mcp-server"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Unofficial FortiMonitor MCP Server

Disclaimer: This is an unofficial community project. It is not affiliated with, endorsed by, or supported by Fortinet, Inc. or the FortiMonitor/Panopta team. "FortiMonitor" and "Fortinet" are trademarks of Fortinet, Inc. Use at your own risk.

Model Context Protocol (MCP) server for FortiMonitor/Panopta v2 API integration with Claude AI.

241 tools across 33 modules providing near-complete coverage of the FortiMonitor v2 API.

Features

  • Server Management — CRUD, tagging, attributes, DNS flush, path monitoring, logs
  • Outage Monitoring — Query, acknowledge, escalate, broadcast, delay, historical incidents
  • Metrics & Resources — Agent resources, SNMP resources, thresholds, metric graphs
  • Maintenance Windows — Create, extend, pause, resume, terminate schedules
  • Server Groups — Group CRUD, membership, compound services, child groups, monitoring policies
  • Templates — Create, apply, reapply monitoring templates to servers and groups
  • Notifications — Schedules, contacts, contact groups, rotating on-call contacts
  • Cloud Monitoring — Providers, credentials, discovery, regions, services
  • DEM — Digital Experience Monitoring applications, instances, locations
  • Compound Services — Aggregated service CRUD, thresholds, availability, response time
  • Dashboards & Status Pages — CRUD for monitoring dashboards and public status pages
  • Reporting — System health summary, outage statistics, availability reports, CSV exports
  • SNMP — Credentials, discovery, resource CRUD, metrics
  • OnSight — On-premises monitoring instances and groups
  • Fabric Connections — Integration management
  • Countermeasures — Automated remediation on network services and thresholds
  • User Management — User CRUD, roles, addons
  • Reference Data — Contact types, timezones, roles, account history, server attribute types
  • Docker Support — Easy deployment via Docker containers
  • Windows Support — Native deployment on Windows for Claude Desktop and Claude Code

Quick Start

Option A: Docker (Recommended)

# Run with Docker
docker run -d \
  --name unofficial-fortimonitor-mcp \
  -e FORTIMONITOR_API_KEY=your-api-key-here \
  gjenkins20/unofficial-fortimonitor-mcp:latest

# Or use Docker Compose
cp .env.example .env
# Edit .env and set your API key
docker-compose up -d

See DOCKER_DEPLOYMENT.md for detailed Docker instructions.

Option B: Local Installation

1. Install dependencies

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

2. Configure environment

cp .env.example .env
# Edit .env with your FortiMonitor API key

3. Test connectivity

python test_connectivity.py

4. Run the server

python -m src.server

Option C: Windows (Claude Desktop / Claude Code)

See docs/WINDOWS_DEPLOYMENT.md for step-by-step Windows instructions.

Configuration

Edit .env:

FORTIMONITOR_BASE_URL=https://api2.panopta.com/v2
FORTIMONITOR_API_KEY=your_api_key_here
LOG_LEVEL=INFO

Available Tools (241)

The server exposes 241 MCP tools organized into the following categories. For full parameter details, see the End-User Guide.

CategoryModule(s)ToolsDescription
Serversservers, server_enhanced21List, detail, CRUD, attributes, logs, DNS, path monitoring
Outagesoutages, outage_management, outage_enhanced22Query, health check, acknowledge, escalate, broadcast, delay, historical
Metricsmetrics, agent_resources6Server metrics, agent resource types, resource details
Maintenanceserver_management, maintenance_enhanced12Status management, maintenance window CRUD, extend, pause, resume
Bulk Operationsbulk_operations6Bulk acknowledge, bulk tags, advanced search, active outages
Server Groupsserver_groups, server_groups_enhanced12Group CRUD, membership, policies, compound services, child groups
Templatestemplates, templates_enhanced8Template CRUD, apply to server/group, reapply
Notificationsnotifications, notifications_enhanced14Schedules, contacts, groups, schedule CRUD, sub-resource queries
Contactscontacts_enhanced, rotating_contacts18Contact CRUD, contact info, contact groups, on-call rotations
Cloudcloud15Providers, credentials, discovery, regions, services
DEMdem10Applications, instances, locations, path monitoring
Compound Servicescompound_services11Service CRUD, thresholds, availability, network services, response time
Dashboardsdashboards5Dashboard CRUD
Status Pagesstatus_pages5Public status page CRUD
Network Servicesnetwork_services5Server network service CRUD, response time
Monitoring Nodesmonitoring_nodes2List and detail monitoring nodes
Network Service Typesnetwork_service_types2List and detail service types
Reportingreporting10Health summary, statistics, top alerting, exports, availability reports
Usersusers6User CRUD, addons
Reference Datareference_data13Account history, contact types, roles, timezones, attribute types
SNMPsnmp12Credentials CRUD, discovery, resource CRUD, metrics
OnSightonsight12OnSight CRUD, groups, countermeasures, servers
Fabricfabric4Fabric connection CRUD
Countermeasurescountermeasures20Network service & threshold countermeasures, outage metadata, thresholds

Integration with Claude Desktop

Add to Claude Desktop config (claude_desktop_config.json):

Option A: Using Docker (Recommended)

First, ensure the container is running:

docker-compose up -d

Then add to your Claude Desktop config:

{
  "mcpServers": {
    "fortimonitor": {
      "command": "docker",
      "args": ["exec", "-i", "unofficial-fortimonitor-mcp", "python", "-m", "src.server"]
    }
  }
}

Option B: Using Local Python

{
  "mcpServers": {
    "fortimonitor": {
      "command": "/path/to/unofficial-fortimonitor-mcp-server/.venv/bin/unofficial-fortimonitor-mcp",
      "args": [],
      "env": {
        "FORTIMONITOR_API_KEY": "your_key",
        "FORTIMONITOR_BASE_URL": "https://api2.panopta.com/v2",
        "PYTHONPATH": "/path/to/unofficial-fortimonitor-mcp-server",
        "ENABLE_SCHEMA_CACHE": "false"
      }
    }
  }
}

Note: Claude Desktop does not reliably set cwd, so use the full path to the installed entrypoint script and set PYTHONPATH explicitly. Set ENABLE_SCHEMA_CACHE=false to avoid [Errno 30] Read-only file system errors when the server cannot write to the default cache/ directory. Alternatively, set SCHEMA_CACHE_DIR to an absolute writable path to keep caching enabled.

API Documentation

The server automatically discovers and caches FortiMonitor API schemas for validation and documentation. Schemas are cached in cache/schemas/ by default.

Schema Endpoints

  • /schema/resources - Lists all available API resources
  • /schema/resources/{resource_name} - Get schema for specific resource

Development

Run tests

pytest tests/ -v

Run tests with coverage

pytest tests/ --cov=src --cov-report=html

Format code

black src/ tests/

Type checking

mypy src/

Lint

flake8 src/ tests/

Project Structure

unofficial-fortimonitor-mcp-server/
ā”œā”€ā”€ README.md
ā”œā”€ā”€ FORTIMONITOR_API_DOCS.md        # FortiMonitor API documentation
ā”œā”€ā”€ Dockerfile                      # Container definition
ā”œā”€ā”€ docker-compose.yml              # Docker Compose config
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ pyproject.toml
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ .dockerignore
ā”œā”€ā”€ test_connectivity.py
ā”œā”€ā”€ scripts/                        # Build and deployment scripts
│   ā”œā”€ā”€ build.sh / build.bat
│   ā”œā”€ā”€ test-container.sh / test-container.bat
│   ā”œā”€ā”€ push.sh
│   └── release.sh
ā”œā”€ā”€ .github/
│   └── workflows/
│       └── docker-build.yml        # CI/CD pipeline
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ __main__.py
│   ā”œā”€ā”€ server.py                   # MCP server entrypoint, dispatch registry
│   ā”œā”€ā”€ config.py                   # Pydantic settings from env vars / .env
│   ā”œā”€ā”€ fortimonitor/
│   │   ā”œā”€ā”€ client.py               # Synchronous HTTP client (requests lib)
│   │   ā”œā”€ā”€ schema.py               # Schema discovery & caching
│   │   ā”œā”€ā”€ models.py               # Pydantic data models (~50 models)
│   │   └── exceptions.py           # Custom exceptions
│   └── tools/                      # 33 tool module files (241 tools)
│       ā”œā”€ā”€ servers.py              # Server list/detail
│       ā”œā”€ā”€ server_enhanced.py      # Server CRUD, attributes, logs, path monitoring
│       ā”œā”€ā”€ outages.py              # Outage queries, health check
│       ā”œā”€ā”€ outage_management.py    # Acknowledge, notes, details
│       ā”œā”€ā”€ outage_enhanced.py      # Broadcast, escalate, delay, historical
│       ā”œā”€ā”€ metrics.py              # Server metrics
│       ā”œā”€ā”€ agent_resources.py      # Agent resource types & details
│       ā”œā”€ā”€ server_management.py    # Status management, maintenance
│       ā”œā”€ā”€ maintenance_enhanced.py # Maintenance CRUD, extend, pause
│       ā”œā”€ā”€ bulk_operations.py      # Bulk ops, advanced search
│       ā”œā”€ā”€ server_groups.py        # Server group CRUD
│       ā”œā”€ā”€ server_groups_enhanced.py # Group members, policies, children
│       ā”œā”€ā”€ templates.py            # Template list/detail/apply
│       ā”œā”€ā”€ templates_enhanced.py   # Template CRUD, reapply
│       ā”œā”€ā”€ notifications.py        # Notification schedules/contacts/groups
│       ā”œā”€ā”€ notifications_enhanced.py # Schedule CRUD, sub-resources
│       ā”œā”€ā”€ contacts_enhanced.py    # Contact CRUD, info, groups
│       ā”œā”€ā”€ rotating_contacts.py    # On-call rotation management
│       ā”œā”€ā”€ network_services.py     # Network service CRUD, response time
│       ā”œā”€ā”€ network_service_types.py # Service type list/detail
│       ā”œā”€ā”€ monitoring_nodes.py     # Monitoring node list/detail
│       ā”œā”€ā”€ cloud.py                # Cloud providers, credentials, discovery
│       ā”œā”€ā”€ dem.py                  # DEM applications, instances, locations
│       ā”œā”€ā”€ compound_services.py    # Compound service CRUD, thresholds
│       ā”œā”€ā”€ dashboards.py           # Dashboard CRUD
│       ā”œā”€ā”€ status_pages.py         # Status page CRUD
│       ā”œā”€ā”€ reporting.py            # Health, stats, exports, availability
│       ā”œā”€ā”€ users.py                # User CRUD, addons
│       ā”œā”€ā”€ reference_data.py       # Account history, types, roles, timezones
│       ā”œā”€ā”€ snmp.py                 # SNMP credentials, discovery, resources
│       ā”œā”€ā”€ onsight.py              # OnSight CRUD, groups
│       ā”œā”€ā”€ fabric.py               # Fabric connection CRUD
│       └── countermeasures.py      # Countermeasures, thresholds, metadata
ā”œā”€ā”€ tests/
│   ā”œā”€ā”€ conftest.py                 # Test fixtures
│   ā”œā”€ā”€ test_client.py              # API client tests
│   ā”œā”€ā”€ test_tools.py               # Original tool tests
│   ā”œā”€ā”€ test_tool_definitions.py    # Tool definition validation
│   ā”œā”€ā”€ test_dict_tool_handlers.py  # Dict-pattern handler tests
│   ā”œā”€ā”€ test_registry.py            # Registry build tests
│   └── test_server.py              # Server integration tests
ā”œā”€ā”€ cache/
│   └── schemas/                    # Cached API schemas
└── docs/
    ā”œā”€ā”€ USER_GUIDE.md               # End-user guide
    ā”œā”€ā”€ DEVELOPER_GUIDE.md          # Developer/contributor guide
    └── WINDOWS_DEPLOYMENT.md       # Windows setup for Claude Desktop/Code

Troubleshooting

Authentication Errors

  • Verify API key in .env
  • Check base URL is correct (https://api2.panopta.com/v2)
  • Test API key with curl:
    curl "https://api2.panopta.com/v2/server?api_key=YOUR_KEY&limit=1"
    

Schema Discovery Failures

  • Check network connectivity
  • Verify cache/schemas/ directory exists and is writable
  • Clear cache and retry: rm -rf cache/schemas/*

MCP Server Not Appearing in Claude

  • Check Claude Desktop config syntax
  • Verify file paths are absolute
  • Restart Claude Desktop completely
  • Check server logs for startup errors

About the Developer

Built by Gregori Jenkins — originally from Chicago, a humble student of Computer Science, and a proud cat dad.

Connect on LinkedIn

License

MIT License — see LICENSE for details.

Related MCP Servers

aayushmdesai/mcp-dotnet-diagnostics

šŸ  šŸŽ 🐧 - Live .NET runtime diagnostics for AI assistants. Ask Claude to diagnose memory leaks, GC pressure, LOH fragmentation, and thread starvation in any running .NET process — no code changes required. Install: dotnet tool install -g mcp-dotnet-diagnostics

šŸ“Š Monitoring0 views
adanb13/cirdan

šŸ šŸ  šŸŽ 🪟 🐧 - AI infrastructure cartographer & MCP server: fingerprints, graphs, and watches the live infrastructure an agent can reach (Docker, Kubernetes, cloud, IaC) and detects incidents.

šŸ“Š Monitoring0 views
agentkitai/agentlens

šŸ“‡ šŸ  ā˜ļø šŸŽ 🪟 🐧 - Tamper-evident observability for AI agents: a SHA-256 hash-chained audit log with chain verification and signed export (EU AI Act Art. 12). Instrument any agent with zero code via npx -y @agentlensai/mcp; also ingests OpenTelemetry GenAI traces.

šŸ“Š Monitoring0 views
alilxxey/openobserve-community-mcp

šŸ šŸ  šŸŽ 🪟 🐧 - Read-only MCP server for OpenObserve Community Edition via REST API. Search logs, traces, stream schemas, and dashboards without requiring the Enterprise license.

šŸ“Š Monitoring0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

Last checked: 7/29/2026, 12:28:55 PM

Unclaimed listing (imported or pending owner verification). Claim it →
ā˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.