Skip to main content
Glama
kasireddy-sec

Tenable Security MCP

README.md
# ๐Ÿ” Tenable Security MCP
## AI-Assisted Vulnerability Management with Claude Desktop

---

## ๐Ÿ“‹ Executive Summary

**Tenable Security MCP** is a cutting-edge **Model Context Protocol (MCP) server** that unifies vulnerability management intelligence, enabling security teams to leverage AI for rapid threat prioritization and remediation planning.

๐ŸŽฏ **Transform this:**
```
Nessus โ†’ CVE โ†’ CVSS โ†’ EPSS โ†’ CISA KEV โ†’ Exploit Research โ†’ Risk Assessment
```

โœจ **Into this:**
```
Claude Desktop โ†’ Tenable Security MCP โ†’ Unified Intelligence โ†’ Actionable Insights
```

---

## ๐ŸŽฏ Core Capabilities

### ๐Ÿ” Nessus Operations
- โœ… Retrieve server information and scan details
- โœ… List, launch, and manage scans
- โœ… Access granular host and vulnerability data
- โœ… Manage policies, folders, and agent deployments

### ๐Ÿ›ก๏ธ Vulnerability Intelligence
- โœ… Enrich findings with CVE details (NVD)
- โœ… Cross-reference CVSS scores & EPSS probabilities
- โœ… Check CISA Known Exploited Vulnerabilities (KEV)
- โœ… Aggregate public exploit and PoC intelligence

### ๐Ÿ“Š Risk Prioritization Engine
Intelligent correlation across multiple signals:
- ๐Ÿ”ด Nessus severity ratings
- ๐Ÿ“ˆ CVSS base & temporal scores
- โšก EPSS exploitation probability
- ๐Ÿšจ CISA KEV status
- ๐Ÿ’ฃ Public exploit availability
- ๐Ÿข Asset context & criticality

### ๐Ÿ’ฌ Example Queries
```
"Analyze my latest scan and list critical findings"
"Get complete intelligence for CVE-2024-3094"
"Which vulnerabilities require urgent remediation?"
"Prioritize findings using severity, CVSS, EPSS, and exploit data"
"Create a remediation roadmap for high-risk assets"
```

---

## ๐Ÿ—๏ธ Architecture Overview

### ๐Ÿ”— Integration Model
```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Claude Desktop Application              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
                   โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Tenable Security MCP Server (Python)          โ”‚
โ””โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚             โ”‚              โ”‚                โ”‚
   โ–ผ             โ–ผ              โ–ผ                โ–ผ
Nessus      NVD/CVE        EPSS/CISA        Exploit
(Local)     (Public)       (Public)         Intelligence
```

### ๐Ÿ”’ Security Design
- ๐ŸŸข **Nessus stays local** - No public internet exposure required
- ๐ŸŸข **MCP handles external APIs** - Isolated API credential management
- ๐ŸŸข **Zero trust** - All data validated and contextualized
- ๐ŸŸข **Analyst-in-the-loop** - AI assists, humans decide

---

## ๐Ÿš€ Quick Start

### ๐Ÿ“ฆ Prerequisites
- โœ… Claude Desktop (latest version)
- โœ… Nessus Essentials or Professional/Expert
- โœ… Nessus API keys (access key + secret key)
- โœ… Git installed

---

## ๐Ÿ”ง Installation Guide

### **Step 1๏ธโƒฃ: Clone Repository**
```bash
git clone https://github.com/kasireddy-sec/tenable-security-mcp.git
cd tenable-security-mcp
```

### **Step 2๏ธโƒฃ: Build Extension**

#### **Option A: GitHub Actions (Recommended) โญ**
1. Push changes to GitHub (or trigger manually)
2. Navigate to: **Actions โ†’ build.yml**
3. Click **Run workflow**
4. Wait for completion (2-3 minutes)
5. Download `extension.mcpb` artifact

#### **Option B: Local Build**
```bash
# Install MCP build tools
pip install -r requirements.txt

# Build the extension
mcp build

# Verify output
ls dist/extension.mcpb
```

### **Step 3๏ธโƒฃ: Install to Claude Desktop**
1. Open **Claude Desktop**
2. Navigate to: **Settings โ†’ Extensions โ†’ Advanced Settings**
3. Click **Install Extension**
4. Select `extension.mcpb` file
5. Enable the extension

### **Step 4๏ธโƒฃ: Configure Nessus**
1. Go to: **Settings โ†’ Extensions โ†’ Tenable Security MCP**
2. Click **Configure** and enter:
   - **Nessus URL**: `https://localhost:8834`
   - **API Access Key**: `your_access_key_here`
   - **API Secret Key**: `your_secret_key_here`

### **Step 5๏ธโƒฃ: Verify Installation**
```bash
# In Claude Desktop, test with:
"Get my Nessus server information"
```

โœ… You should receive live Nessus data!

---

## ๐Ÿ“Š Practical Security Workflows

### ๐Ÿ”ด Critical Incident Response
```
"Analyze my latest scan and list critical findings with affected hosts"
```
โ†’ Immediate visibility into high-risk assets

### ๐Ÿ” CVE Deep Dive
```
"Get complete intelligence for CVE-2024-3094: CVSS, EPSS, CISA KEV, and exploit status"
```
โ†’ Comprehensive threat context in seconds

### ๐Ÿ“ˆ Smart Prioritization
```
"Which 5 vulnerabilities pose highest risk based on EPSS, exploitability, and asset criticality?"
```
โ†’ Data-driven remediation sequencing

### ๐Ÿ—“๏ธ Coverage Assessment
```
"Identify assets that haven't been scanned in the last 7 days"
```
โ†’ Risk visibility across your estate

### ๐Ÿ› ๏ธ Remediation Planning
```
"Create a prioritized roadmap for findings above CVSS 7.0 with CISA KEV or public exploits"
```
โ†’ Structured remediation strategy

---

## ๐Ÿข Technology Stack

| Component | Technology |
|-----------|-----------|
| **Language** | Python 3.9+ |
| **Framework** | MCP Python SDK |
| **Transport** | HTTPS/REST |
| **APIs** | Nessus, NVD, EPSS, CISA KEV, Exploit Intelligence |
| **Build Tool** | GitHub Actions + MCP Build |

---

## ๐Ÿ“ Project Structure

```
tenable-security-mcp/
โ”œโ”€โ”€ ๐Ÿ“‚ .github/workflows/
โ”‚   โ”œโ”€โ”€ test.yml              # Automated testing pipeline
โ”‚   โ””โ”€โ”€ build.yml             # MCPB packaging & release
โ”œโ”€โ”€ ๐Ÿ“‚ extension/
โ”‚   โ”œโ”€โ”€ manifest.json         # Extension metadata
โ”‚   โ”œโ”€โ”€ pyproject.toml        # Dependencies & configuration
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ src/
โ”‚       โ””โ”€โ”€ server.py         # MCP server implementation
โ”œโ”€โ”€ pyproject.toml            # Project configuration
โ””โ”€โ”€ README.md                 # This file
```

---

## ๐Ÿ”„ Build & Release Pipeline

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚       Developer Pushes to GitHub                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
                     โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚  GitHub Actions Triggered  โ”‚
        โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜
             โ”‚                   โ”‚
             โ–ผ                   โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚Run Tests โ”‚      โ”‚ Build MCPB   โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                     โ”‚ extension.mcpb Created โ”‚
                     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                     โ”‚ Download from Workflow    โ”‚
                     โ”‚ Install to Claude        โ”‚
                     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## โš ๏ธ Known Issues & Solutions

### ๐ŸชŸ Windows MSIX Installation Issue

**Problem:**
```
can't open file ... src/server.py
[Errno 2] No such file or directory
```

**Root Cause:** MSIX resolves MCP server paths incorrectly

**Solution:** Use standard Claude Desktop installer (not MSIX/enterprise)

โœ… **Recommended**: Standard installer for Windows users

### ๐Ÿ UV / Python Permission Denied

**Problem:**
```
Access is denied (installing dependencies)
```

**Root Cause:** Microsoft Store Python has restricted write permissions

**Solution:** Extension uses isolated user-level UV environment

โœ… **No manual action needed** - automatic fallback enabled

---

## ๐Ÿ”’ Security Best Practices

### โœ… **DO**
- ๐ŸŸข Store Nessus API credentials in configuration (never commit to repo)
- ๐ŸŸข Use standard Claude Desktop installer
- ๐ŸŸข Validate Claude's recommendations before production changes
- ๐ŸŸข Treat exploit intelligence as supporting evidence
- ๐ŸŸข Maintain audit logs of all vulnerability assessments

### โŒ **DON'T**
- ๐Ÿ”ด Commit API credentials to GitHub
- ๐Ÿ”ด Expose local Nessus to public internet
- ๐Ÿ”ด Scan systems without proper authorization
- ๐Ÿ”ด Treat AI recommendations as definitive without analyst review
- ๐Ÿ”ด Share sensitive finding details in untrusted environments

---

## ๐Ÿค Contributing

We welcome contributions from the security community!

### Development Workflow
```bash
# 1. Fork repository
git clone https://github.com/YOUR-USERNAME/tenable-security-mcp.git

# 2. Create feature branch
git checkout -b feature/your-feature-name

# 3. Make changes to extension/src/server.py
# ... your code changes ...

# 4. Test locally
mcp build
mcp run

# 5. Commit and push
git add .
git commit -m "Add: your feature description"
git push origin feature/your-feature-name

# 6. Submit Pull Request
# GitHub Actions will automatically build and test
```

**Contribution Guidelines:**
- ๐Ÿ“‹ Follow Python PEP 8 style guide
- ๐Ÿงช Include test cases for new features
- ๐Ÿ“ Update documentation
- โœ… Ensure GitHub Actions passes all checks

---

## ๐Ÿ“„ License

**MIT License** - Open source and free to use

See [LICENSE](LICENSE) file for complete details

---

## ๐ŸŽฏ Vision

**Transform vulnerability management from reactive firefighting to strategic risk management.**

- ๐Ÿ” **Faster Analysis** - Minutes instead of hours
- ๐Ÿ’ก **Better Decisions** - AI-assisted prioritization
- ๐Ÿ“‰ **Reduced Risk** - Intelligent remediation
- โฑ๏ธ **Increased Velocity** - Automate the routine

---

## ๐Ÿ“ž Support & Resources

| Resource | Link |
|----------|------|
| **GitHub Issues** | [Report Bug / Request Feature](../../issues) |
| **Documentation** | README.md (you are here) |
| **Tenable Docs** | [Nessus API Reference](https://docs.tenable.com/nessus) |
| **CISA KEV** | [Known Exploited Vulnerabilities](https://cisa.gov/known-exploited-vulnerabilities) |
| **EPSS** | [Exploit Prediction Scoring System](https://www.first.org/epss) |

---

<div align="center">

### ๐Ÿš€ Built to Turn Raw Nessus Findings into Actionable Security Intelligence

**Tenable Security MCP** โ†’ Faster Analysis โ†’ Better Decisions โ†’ Reduced Risk

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.9+](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://www.python.org/)

**Made for Security Professionals | Built on MCP | Powered by Claude AI**

</div>