Skip to main content
Glama
ciso-assistant-mcp

ciso-assistant-mcp

by Camore5845
README.md
# ciso-assistant-mcp

A comprehensive [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for [CISO Assistant](https://github.com/intuitem/ciso-assistant-community), exposing **300+ tools** covering the entire GRC platform API — risk management, compliance, EBIOS RM, RGPD, assets, controls, and more.

## Features

- **Full API coverage** — 18 modules, 300+ typed tools
- **Universal fallback** — `call_ciso_api()` to call any endpoint not covered by a specific tool
- **Name-to-UUID resolution** — pass names instead of UUIDs for most parameters
- **Structured output** — markdown tables for lists, JSON for detail views

## Modules

| Module | Tools | Coverage |
|--------|-------|----------|
| Risk Management | 21 | Assessments, scenarios, matrices, acceptances |
| Compliance | 22 | Audits, exports (xlsx/pdf/pptx/word), requirement assessments |
| Applied Controls & Policies | 23 | Controls CRUD, charts (sunburst, gantt, impact...), policies |
| Assets | 13 | Assets, capabilities, graphs, security objectives |
| Threats | 5 | Full CRUD |
| Incidents & Security Exceptions | 12 | Incidents, exceptions |
| Frameworks & Libraries | 13 | Frameworks, loaded/stored libraries |
| Organization | 21 | Folders, perimeters, users, user groups |
| Privacy / RGPD | 31 | Processings, personal data, breaches, rights, contractors... |
| EBIOS RM | 30 | Studies, stakeholders, feared events, attack paths, kill chains... |
| Entities & Findings | 18 | Entities, entity assessments, findings |
| Evidence | 7 | Evidence documents, revisions |
| Quantitative Risk (CRQ) | 16 | Studies, scenarios, hypotheses, simulations, ALE |
| Metrology | 14 | Dashboards, widgets, metrics, custom samples |
| Campaigns | 18 | Campaigns, contracts, task nodes, timeline |
| Integrations & Settings | 11 | Integration configs, feature flags, platform settings |
| Analysis | 2 | Platform health, aggregated data |
| Generic | 1 | `call_ciso_api()` — universal tool |

## Requirements

- Python >= 3.12
- A running [CISO Assistant](https://github.com/intuitem/ciso-assistant-community) instance
- A personal access token (Settings → API Tokens in CISO Assistant)

## Installation

```bash
git clone https://github.com/your-username/ciso-assistant-mcp.git
cd ciso-assistant-mcp
pip install -e .
```

## Configuration

Copy `.env.example` to `.env` and fill in your values:

```bash
cp .env.example .env
```

```env
CISO_ASSISTANT_URL=https://your-instance.example.com
CISO_ASSISTANT_TOKEN=your-personal-access-token
VERIFY_CERTIFICATE=true
HTTP_TIMEOUT=30
```

## Usage with Claude

Add the server to your Claude MCP configuration (`~/.claude/settings.json` or `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "ciso-assistant": {
      "command": "python",
      "args": ["-m", "ca_mcp"],
      "cwd": "/path/to/ciso-assistant-mcp",
      "env": {
        "CISO_ASSISTANT_URL": "https://your-instance.example.com",
        "CISO_ASSISTANT_TOKEN": "your-token"
      }
    }
  }
}
```

Alternatively, if installed via `pip install -e .`:

```json
{
  "mcpServers": {
    "ciso-assistant": {
      "command": "ciso-mcp"
    }
  }
}
```

## Example prompts

Once connected, you can ask Claude:

```
List all risk assessments in the "Finance" domain
```
```
Create a compliance assessment for ISO 27001 in folder "Acme Corp"
```
```
Export the audit "SOC2 2024" as an Excel action plan
```
```
Show me all high-severity findings across entity assessments
```
```
Get the EBIOS RM study analytics for "Study 2025"
```
```
List all RGPD processings with status "active"
```

## Advanced: universal tool

For endpoints not covered by a specific tool, use `call_ciso_api`:

```
call_ciso_api with method=GET and endpoint=/api/privacy/right-requests/
```

## Project structure

```
ca_mcp/
├── server.py           # FastMCP init + tool registration
├── config.py           # .env loader
├── client.py           # HTTP client (requests)
└── tools/
    ├── resolvers.py    # Name-to-UUID resolution helpers
    ├── generic.py      # Universal call_ciso_api() tool
    ├── risk.py
    ├── compliance.py
    ├── controls.py
    ├── assets.py
    ├── threats.py
    ├── incidents.py
    ├── frameworks.py
    ├── organization.py
    ├── privacy.py
    ├── ebios.py
    ├── entities.py
    ├── evidence.py
    ├── quantitative.py
    ├── metrology.py
    ├── campaigns.py
    ├── integrations.py
    └── analysis.py
```

## License

MIT