# Network Ops Auditor MCP (`pabloian92/mcp-isp-network-auditor`) Actor

Deterministic MCP server for ISPs & DevOps: RouterOS /export security audits, IPv4 CIDR subnet & overlap validation, and SaaS vs. self-hosting ROI estimates over Streamable HTTP (/mcp).

- **URL**: https://apify.com/pabloian92/mcp-isp-network-auditor.md
- **Developed by:** [Pablo Ian Laurino](https://apify.com/pabloian92) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 routeros configuration audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Network Ops Auditor MCP

An Apify Standby MCP server for ISPs, WISPs, and DevOps teams. It serves three deterministic tools over Streamable HTTP at `/mcp`. It reads only the data supplied in each call and makes no network changes.

### Tools

| Tool | Input | Output | Event price |
| --- | --- | --- | ---: |
| `audit_mikrotik_config` | `config`: RouterOS `/export` text | Security score, findings, and reviewable RouterOS remediation commands | $0.05 |
| `check_isp_subnet_plan` | `cidrs`: array of IPv4 CIDR strings | Canonical networks, usable ranges, host counts, and overlapping pairs | $0.03 |
| `estimate_saas_vs_selfhost_roi` | Monthly SaaS/VPS costs and optional labor/migration costs in USD | Monthly and annual savings, first-year net savings, and payback | $0.03 |

The RouterOS score starts at 100 and subtracts 25 for remote DNS, 30 for no catch-all input drop, 12 for each unrestricted legacy admin service, and 8 for each unrestricted SSH, Winbox, or API-SSL service, floored at zero. It is a static check. An enabled DNS resolver is not necessarily internet reachable, and an input drop rule may be ineffective because of order or other rules. Read and adapt CLI suggestions before applying them. Management defaults not shown in the export are treated as unknown.

Subnet checks accept IPv4 only. A noncanonical address such as `192.0.2.5/24` is normalized and marked `canonical: false`; it makes the overall `valid` field false. `/31` has two usable point-to-point endpoints and `/32` has one usable address. The ROI tool uses only caller-supplied prices, with optional costs defaulting to zero. Negative savings are returned when self-hosting costs more.

### Run locally

Requires Node.js 22 or newer.

```sh
npm ci
npm test
npm start
```

The server listens on `ACTOR_WEB_SERVER_PORT` or port 3000 and provides `GET /health`. For a local billing simulation, set `ACTOR_TEST_PAY_PER_EVENT=true` before starting. Local calls without this variable are unbilled. On Apify, each successfully returned tool result calls `Actor.charge` once; a charge failure or exhausted spending limit prevents the result from being returned. Invalid arguments are not charged.

Example MCP client configuration after deployment:

```json
{
  "mcpServers": {
    "network-ops-auditor": {
      "url": "https://YOUR-STANDBY-URL.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_API_TOKEN" }
    }
  }
}
```

Example arguments:

```json
{"config":"/ip dns\nset allow-remote-requests=yes\n/ip firewall filter\nadd chain=input action=accept connection-state=established,related"}
```

```json
{"cidrs":["10.10.0.0/24","10.10.0.128/25","192.0.2.0/31"]}
```

```json
{"zapierMonthlyUsd":80,"makeMonthlyUsd":40,"intercomMonthlyUsd":200,"vpsMonthlyUsd":35,"backupMonthlyUsd":10,"maintenanceHoursMonthly":2,"migrationHours":20,"laborRateUsd":50}
```

### Deploy and monetize

1. Push with `apify push` from this directory. `.actor/actor.json` enables Standby and exposes `/mcp`.
2. In Apify Console, set the Actor pricing model to **Pay per event** and verify the three event names and USD prices in `.actor/pay_per_event.json`. [Apify documents an 80% creator share of PPE event revenue](https://docs.apify.com/actors/monetize/pricing-and-costs); applicable platform costs and terms affect the final payout. The code does not set a payout percentage.
3. Set a sensible per-run spending limit and test all tools through the Standby URL with an Apify token. Apify authenticates the public Standby URL; the container HTTP server relies on that proxy and should not be exposed directly to the public internet.

The Docker image installs locked production dependencies and runs as an unprivileged user. The service is stateless, so multiple Standby instances can serve calls independently.

# Actor input Schema

## `mode` (type: `string`):

Keep 'standby' to expose the Streamable HTTP MCP server at /mcp.

## Actor input object example

```json
{
  "mode": "standby"
}
```

# Actor output Schema

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("pabloian92/mcp-isp-network-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("pabloian92/mcp-isp-network-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call pabloian92/mcp-isp-network-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pabloian92/mcp-isp-network-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3Z7MA9prDaOrf9dh6/builds/UF8kJlyrMmWPAVTrq/openapi.json
