New:Socket for Asana Is Now Available.Learn more
Get Started

@pentatrail/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pentatrail/mcp-server

PentaTrail MCP Server — access your CTEM / ASM (attack surface management) data from an AI agent via the Model Context Protocol

Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
74
-22.11%
Maintainers
1
Weekly downloads
 
Created
Source

@pentatrail/mcp-server

PentaTrail MCP Server for accessing CTEM (Continuous Threat Exposure Management) data via Model Context Protocol.

This package is a thin stdio wrapper over the PentaTrail Customer API. It works with Claude Code, Claude Desktop, and any MCP-compatible client.

The published server exposes the public CTEM tools registered by registerPublicCtemTools, and that surface is read-only. Internal MCP-only tools are not registered.

Setup

Run

The simplest way to use the server is with npx:

npx @pentatrail/mcp-server

Configure

Add to your MCP client config (e.g. ~/.claude/settings.json or claude_desktop_config.json):

{
  "mcpServers": {
    "pentatrail": {
      "command": "npx",
      "args": ["@pentatrail/mcp-server"],
      "env": {
        "PENTATRAIL_API_KEY": "ptk_your_api_key_here",
        "PENTATRAIL_API_URL": "https://api.pentatrail.co"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
PENTATRAIL_API_KEYYesYour API key (ptk_...). Generate from PentaTrail Dashboard > Settings.
PENTATRAIL_API_URLYeshttps://api.pentatrail.co (production)

Available Tools

CTEM Read

ToolDescription
ctem_list_domainsList your monitored domains. Start here — by default it returns active domains only, and every domain in that default result can be passed straight to the other tools as domain_id. include_archived: true drops the status filter, so the result then also contains non-active domains (archived, and legacy paused) whose ids the other tools reject with PT_API_NOT_FOUND
ctem_list_hostsList hosts with enrichment (port/tech/finding counts, sortable)
ctem_list_findingsList vulnerabilities sorted by Threat Discovery Level (TDL)
ctem_get_asset_countsGet asset type counts (hosts, IPs, ports, tech, buckets, URLs)
ctem_get_tdl_countsGet open finding counts grouped by TDL (tdl5=most critical)
ctem_get_scoresGet live domain scores (asset counts + findings breakdown)
ctem_get_score_trendGet security score trend over time (7-365 days)
ctem_list_portsList open ports grouped by port/protocol, filterable by source type
ctem_list_techList detected technologies grouped by category and name
ctem_list_port_groupsHost counts per (port, protocol, service)
ctem_list_tech_groupsTech hierarchy: category → name → host count
ctem_list_ipsPaginated list of discovered IP addresses
ctem_list_urlsPaginated list of discovered URLs
ctem_list_buckets_paginatedPaginated cloud storage buckets, one row per bucket
ctem_list_buckets_mergedCloud buckets de-duplicated by (cloud_type, bucket_name)
ctem_summarize_findingsRollup per vuln_id with max CVSS/EPSS, KEV count, affected hosts

Usage Examples

Once configured, ask your AI assistant:

  • "Show me all monitored domains"
  • "List critical findings for domain X"
  • "What's the security score trend for the last 30 days?"
  • "How many assets do we have?"
  • "Show my threat exposure risk level for this domain"

Requirements

  • Node.js >= 20
  • PentaTrail account with an active contract
  • A PentaTrail API key

License

UNLICENSED - Proprietary software. All rights reserved.

Keywords

mcp

FAQs

Package last updated on 10 Aug 2026

Related posts