Skip to main content
Glama
ISO 31000 Risk Assessment MCP Server

ISO 31000 Risk Assessment MCP Server

by acousland

ISO 31000 Risk Assessment MCP Server

A Model Context Protocol (MCP) server for comprehensive risk assessment based on the ISO 31000 Risk Management Standard. This server provides AI applications with tools for evaluating risks, generating treatment recommendations, and managing custom risk assessment matrices.

Features

  • Risk Assessment: Evaluate inherent and residual risk for scenarios using likelihood and consequence analysis

  • Treatment Recommendations: Generate tailored risk treatment strategies and control recommendations

  • Custom Risk Matrices: Support for custom-defined risk tables with flexible likelihood and consequence scales

  • ISO 31000 Compliance: Implements risk management best practices based on ISO 31000:2018

  • Control Management: Supports preventive, detective, corrective, and mitigating controls

  • Treatment Strategies: Avoidance, reduction, sharing, and acceptance strategies

Related MCP server: AIR MCP Server

Installation

# Clone and setup the project
cd risk_mcp
npm install

# Build the TypeScript
npm run build

Usage

Starting the Server

npm start

Or for development:

npm run dev

Available Tools

1. assess_risk

Assess the inherent and residual risk for a given scenario.

Parameters:

  • scenario: Risk scenario object with name, description, likelihood (1-5), consequence (1-5)

  • riskTable (optional): Name of custom risk table to use

  • controls (optional): Array of controls to evaluate for residual risk

Example:

{
  "scenario": {
    "name": "Data Breach",
    "description": "Unauthorized access to customer data",
    "likelihood": 3,
    "consequence": 5,
    "existingControls": ["Firewall", "Encryption"]
  },
  "controls": [
    {
      "name": "Access Control System",
      "type": "preventive",
      "effectiveness": 0.85
    }
  ]
}

2. recommend_treatments

Generate risk treatment recommendations and control strategies.

Parameters:

  • scenario: Risk scenario object

  • riskTable (optional): Name of custom risk table to use

3. get_risk_matrix

Retrieve the current risk assessment matrix with likelihood and consequence levels.

Parameters:

  • tableName (optional): Specific risk table to retrieve

4. manage_risk_tables

Manage risk assessment tables (list, export, create sample).

Parameters:

  • action: One of "list", "export", "create_sample"

  • tableName (optional): For export action

5. register_risk_table

Register a custom risk assessment table from JSON.

Parameters:

  • name: Name for the risk table

  • tableJson: JSON configuration of the risk table

Risk Matrix Structure

The server uses a standard 5x5 risk matrix by default:

Likelihood Levels (1-5):
1. Rare (0-5%)
2. Unlikely (5-20%)
3. Possible (20-50%)
4. Likely (50-80%)
5. Almost Certain (80-100%)

Consequence Levels (1-5):
1. Negligible
2. Minor
3. Moderate
4. Major
5. Catastrophic

Custom Risk Tables

Creating a Custom Risk Table

{
  "name": "Financial Risk Matrix",
  "version": "1.0.0",
  "description": "Tailored for financial sector risks",
  "likelihood": [
    {
      "level": 1,
      "name": "Rare",
      "description": "Very unlikely to occur",
      "probability": { "min": 0, "max": 5 }
    }
  ],
  "consequences": [
    {
      "level": 1,
      "name": "Negligible",
      "description": "Minimal impact",
      "impact": "No significant effect"
    }
  ],
  "riskMatrix": {
    "1_1": { "score": 1, "level": "Low", "color": "#00AA00" },
    "1_2": { "score": 2, "level": "Low", "color": "#00AA00" }
  }
}

Using a Custom Risk Table

Use the register_risk_table tool to register your custom table, then specify it by name in other tools:

{
  "scenario": {...},
  "riskTable": "custom_financial_matrix"
}

Risk Treatment Strategies

Avoidance

  • Eliminate or avoid the risk

  • Best for: Critical and High risks when feasible

  • Outcome: Zero residual risk

Reduction

  • Implement controls to reduce probability or consequence

  • Best for: Most risk scenarios

  • Controls: Preventive and detective controls

Sharing

  • Transfer or share the risk through insurance or partnerships

  • Best for: Medium and High insurable risks

  • Methods: Insurance, outsourcing, partnerships

Acceptance

  • Accept the current risk level

  • Best for: Low risks within tolerance

  • Requirements: Regular monitoring

Control Types

  1. Preventive: Prevent the risk from occurring

    • Examples: Training, access controls, policies

  2. Detective: Identify when a risk occurs

    • Examples: Monitoring, audits, testing

  3. Corrective: Remediate after occurrence

    • Examples: Incident response, remediation procedures

  4. Mitigating: Share or reduce impact

    • Examples: Insurance, redundancy, partnerships

ISO 31000 Compliance

This server implements risk management principles aligned with ISO 31000:2018:

  • Systematic Approach: Structured methodology for risk assessment

  • Context-Specific: Supports customizable risk matrices

  • Stakeholder Integration: Considers multiple perspectives in treatment recommendations

  • Continuous Improvement: Supports residual risk monitoring

  • Evidence-Based: Quantifiable likelihood and consequence levels

Configuration

Create a .env file if needed for custom tables directory:

RISK_TABLES_DIR=./custom_tables

Examples

Complete Risk Assessment Workflow

  1. Assess Risk:

    {
      "scenario": {
        "name": "System Outage",
        "description": "Production system becomes unavailable",
        "category": "Operational",
        "likelihood": 3,
        "consequence": 4
      }
    }
  2. Get Recommendations:

    {
      "scenario": {
        "name": "System Outage",
        "description": "Production system becomes unavailable",
        "likelihood": 3,
        "consequence": 4
      }
    }
  3. Re-assess with Controls:

    {
      "scenario": {
        "name": "System Outage",
        "description": "Production system becomes unavailable",
        "likelihood": 3,
        "consequence": 4
      },
      "controls": [
        {
          "name": "System Redundancy",
          "type": "mitigating",
          "effectiveness": 0.8
        },
        {
          "name": "Continuous Monitoring",
          "type": "detective",
          "effectiveness": 0.85
        }
      ]
    }

MCP Integration

This server can be integrated with Claude, VS Code, or other MCP-compatible clients.

VS Code Configuration

Add to .vscode/mcp.json:

{
  "servers": {
    "risk-assessment": {
      "type": "stdio",
      "command": "node",
      "args": ["./build/index.js"]
    }
  }
}

Claude Desktop Configuration

Add to ~/.config/Claude/claude_desktop_config.json (macOS/Linux) or %AppData%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "risk-assessment": {
      "command": "node",
      "args": ["/path/to/build/index.js"]
    }
  }
}

Development

Building

npm run build

Testing

Use the MCP Inspector to test the server:

npx @modelcontextprotocol/inspector node ./build/index.js

License

MIT

Contributing

Contributions are welcome! Please ensure:

  • All code is TypeScript

  • Changes maintain ISO 31000 compliance

  • Tests pass (when available)

  • Code is properly documented

References

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI-powered vendor risk assessment using AWS Titan, allowing users to evaluate individual vendors, compare multiple vendors, and get industry risk benchmarks through natural language queries.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to perform governed risk assessments through AIR: discover projects, upload evidence, run assessments, and retrieve structured reports.
      45
      260 npm
      MIT