Sign In

@pentatrail/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pentatrail/mcp-server

PentaTrail MCP Server — CTEM data access via Model Context Protocol

Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
543
2615%
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.

Setup

Run

The simplest way to use the server is with npx:

npx @pentatrail/mcp-server

Publish

Release the package from this directory:

cd packages/pentatrail-mcp
npm login --registry=https://registry.npmjs.org/
npm run build
npm pack --dry-run --cache /tmp/npm-cache
npm publish --access public

Notes:

  • Scoped packages require --access public for a public npm release.
  • If you are already logged in, npm login can be skipped.
  • Bump the version before publishing a new release, for example with npm version patch --no-git-tag-version.

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 all monitored domains for your contract
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 Write

ToolDescription
ctem_add_exclusionExclude an asset from monitoring
ctem_remove_exclusionRemove an exclusion you created via API
ctem_update_findingUpdate finding status, assignee, or due date

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"
  • "Exclude host test.example.com from monitoring"
  • "Accept finding X as known risk"

Requirements

  • Node.js >= 20
  • PentaTrail account with an active contract
  • API key (all scopes granted by default: ctem:read, ctem:exclusions:write, ctem:prioritization:write)

Integration tests

End-to-end tests against dev Supabase. See INTEGRATION_TESTS.md for setup, local execution, and failure triage.

License

UNLICENSED - Proprietary software. All rights reserved.

FAQs

Package last updated on 01 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts