tenable-identity-exposure-mcp
Provides MCP tools to query the Tenable Identity Exposure (TIE) API for security profiles, deviances, attacks, and activity timelines, with enforced read-only mode to protect credentials.
README
Tenable Identity Exposure MCP Server
An MCP server exposing the Tenable Identity Exposure (TIE, formerly Tenable.ad) REST API as tools for LLM clients. Built on FastMCP from the official mcp SDK.
Verified end-to-end against a live TIE SaaS instance (v3.120.1).
⚠️ Disclaimer: This is not an officially supported Tenable project. It was built with assistance from Claude — treat its output as a starting point and validate responses against the Tenable console before acting on them.
Origin: this repository builds on knethteo/tenable-identity-exposure-mcp by Kenneth Teo, MIT-licensed. See
LICENSEfor the original copyright.
Credentials are never stored in this repository
There is no API key here, and there never has been — .env is git-ignored and
absent from the history. Every user supplies their own key at runtime; see
Configuration. TIE API keys are per-user, do not
expire, and inherit the issuing account's console permissions, so share a
single key only if you are willing to lose per-person attribution in the TIE
audit log. Prefer one least-privilege key per person.
Tools
| Tool | Description |
|---|---|
tie_catalog |
List available resources (flat + nested) — call this first |
tie_request |
Raw HTTP call to any endpoint (method, path, params, body) |
tie_resource_action |
Generic CRUD (list/get/create/update/delete) on flat resources |
tie_recent_activity |
Unified IoE+IoA timeline for the last N hours (one call) |
tie_profiles |
List security profiles (IoE/IoA data is profile-scoped) |
tie_scores |
Per-directory security scores for a profile |
tie_topology |
AD topology (domains, forests, trusts) for a profile |
tie_attacks |
IoA attack instances (requires resource_type + resource_value) |
tie_alerts |
Alerts for a profile |
tie_deviances |
IoE deviant AD objects for a checker within a time window |
tie_deviances_by_checker |
Full IoE deviances for a checker (no date filter) |
tie_deviances_by_directory |
Full IoE deviances for a directory (no date filter) |
tie_search_events |
Search AD security events in a date range |
tie_search_ad_objects |
Search AD objects (users/computers/groups/OUs) |
tie_whoami |
Current user identity, roles, permissions |
tie_checkers_summary |
All IoE checker definitions, essential fields only (no description blobs) |
tie_deviances_bulk |
All active IoE deviances in a few paginated calls |
Read-only by default
Non-GET calls are refused unless the server is started with --allow-writes
(or TIE_ALLOW_WRITES=true). This applies to tie_request and to the
create/update/delete actions of tie_resource_action.
Some endpoints are never writable, even with --allow-writes:
users, roles, saml-configuration, ldap-configuration, syslogs,
email-notifiers, lockout-policy, application-settings,
attack-type-configuration, license, infrastructures, directories, and
the uncatalogued /api/login, /api/logout, /api/relays. These reconfigure
authentication, access control, or alert/log forwarding, change the monitored AD
topology, or — in the case of /api/login — would turn the server into a
credential-testing oracle for the console. The block covers nested routes too,
so PATCH /api/infrastructures/{i}/directories/{d} is refused, not just the
top-level path.
Credential endpoints are never readable either, by any method or tool and
regardless of --allow-writes:
| Endpoint | Why |
|---|---|
/api/api-key |
returns the console API key this server authenticates with |
/api/report-access-token |
returns the embedded-report access token |
/api/relays/linking-key |
returns the relay enrolment secret |
Read-only mode is worth nothing if the model can read the key: TIE API keys do
not expire and carry the issuing account's full console permissions, so anyone
who sees the transcript could drive the console directly. tie_catalog declares
these endpoints as blocked so the model is told once rather than retrying around
one refusal at a time.
tie_request also refuses absolute URLs — only server-relative paths such as
/api/about are accepted, so the API key cannot be sent to another host.
None of this replaces server-side authorization. Scope the API key to a least-privilege TIE role as well.
Time windows, profiles, and token budget
- Time-aware tools (
tie_recent_activity,tie_deviances) accept a relativehours=Nwindow or explicitdate_start/date_end. All timestamps are UTC. - IoE/IoA data is profile-scoped. The API does not expose which profile your
console has selected, so pass
profile_idexplicitly — usetie_profilesto list them. - By default, deviance/object results are slimmed: descriptions are rendered
from their templates and oversized attribute values (SID lists, member dumps)
are dropped. Pass
verbose=truefor the full raw payload.
Configuration
Set via environment variables (or the equivalent CLI flags):
| Variable | Flag | Description |
|---|---|---|
TIE_URL |
--tie-url |
Base URL, e.g. https://your-client.tenable.ad |
TIE_API_KEY |
--tie-api-key |
API key (see below) |
TIE_VERIFY_SSL |
--no-verify-ssl |
true (default); false for self-signed certs |
TIE_ALLOW_WRITES |
--allow-writes |
false (default) — see Read-only by default |
Auth uses the X-API-Key header.
Getting the API key: TIE console → user profile icon (top right) → My Account / Preferences → API key. It is a per-user setting, the same path on SaaS and on-premises. The key inherits the issuing account's role permissions, so create a dedicated least-privilege service account for it.
Not a Tenable Vulnerability Management key. TIE uses a single opaque key in an
x-api-key header against your own console hostname (https://<client>.tenable.ad).
Tenable VM / Tenable One use an accessKey+secretKey pair in an
X-ApiKeys header against cloud.tenable.com. They are not interchangeable — and
if Tenable Cloud Data Collection is enabled, TIE auto-creates tie-{username}-{random}
accounts inside your Tenable VM container that will not work here.
Install & run
Setting this up for the first time? ONBOARDING.md walks through it end to end on Windows, Linux, and macOS — install, getting an API key, registering with Claude Code, and a set of checks to confirm it works. The rest of this section is the short version.
python -m venv .venv && . .venv/bin/activate
pip install -e .
cp .env.example .env # fill in TIE_URL and TIE_API_KEY
# stdio (Claude Desktop / Claude Code)
set -a; . ./.env; set +a
tenable-tie-mcp
# or network transports (bind 127.0.0.1 by default — they have no auth of
# their own, so widen --host only behind an authenticating proxy)
tenable-tie-mcp --transport sse --port 8000
tenable-tie-mcp --transport http --port 8000
Tests
uv pip install --group dev
pytest
mypy
Running with uv / uvx (alternative to a manual venv)
uv can manage the environment for you. uv is the
full tool; uvx (alias for uv tool run) runs a package in a throwaway env, like
npx. Both need uv installed (brew install uv).
# uv run: resolves deps from pyproject.toml into a managed .venv, then runs
uv run tenable-tie-mcp
# uvx: run ephemerally from the project path, nothing persisted
uvx --from . tenable-tie-mcp
Claude Desktop / Claude Code config
Use the full path to the executable. Claude Desktop does not launch from your
shell, so it does not inherit your PATH — a bare tenable-tie-mcp will fail with
"command not found" unless the tool is on the system PATH (e.g. a pipx install).
For a venv install, point at the venv's launcher:
{
"mcpServers": {
"tenable-tie": {
"command": "/absolute/path/to/tenable-ie-mcp/.venv/bin/tenable-tie-mcp",
"env": {
"TIE_URL": "https://your-host.tenable.ad",
"TIE_API_KEY": "your-key"
}
}
}
}
Find the exact path with echo "$PWD/.venv/bin/tenable-tie-mcp" from the project
root. See claude_desktop_config.sample.json for a complete example.
If you installed globally with
pipx install .(oruv tool install), the bare"command": "tenable-tie-mcp"works because it lands on the system PATH.
With uv (alternative)
Point command at the full path of uv (which uv, e.g. /opt/homebrew/bin/uv)
and let it manage the environment:
{
"mcpServers": {
"tenable-tie": {
"command": "/opt/homebrew/bin/uv",
"args": ["run", "--directory", "/absolute/path/to/tenable-ie-mcp", "tenable-tie-mcp"],
"env": {
"TIE_URL": "https://your-host.tenable.ad",
"TIE_API_KEY": "your-key"
}
}
}
}
Docker
docker compose up --build # reads TIE_URL / TIE_API_KEY from environment
Example prompts
- "Show me IoE and IoA activity in the last 12 hours." →
tie_recent_activity - "Which security profiles exist?" →
tie_profiles - "List the monitored directories and their security scores."
- "Show the latest IoA attacks against directory 8."
- "What IoE deviances appeared for checker 15 in the last day?" →
tie_deviances - "Show unread alerts for profile 2."
Notes
profile_iddefaults to1(the default Tenable profile) in the convenience tools.- Attacks must be scoped:
resource_type∈infrastructure|directory|hostname|ipandresource_valueis the id or name/ip. - Non-JSON responses are returned as
{"content_type": ..., "text": ...}rather than crashing. - Scoring and prioritization: TIE checkers carry a
remediationCost(easy / medium / hard) but no native asset-level severity score. If your workflow requires AES (Asset Exposure Score) or ACR (Asset Criticality Rating) — for example, to rank affected identities by business risk — connect your environment to Tenable One. Tenable One aggregates data across TIE, Tenable Vulnerability Management, and other sources to produce unified AES/ACR scores that can be surfaced here via the API.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.