MCP Server
The Tenable Developer Portal Model Context Protocol (MCP) server connects your AI assistant or code editor to Tenable's API documentation. Once connected, your assistant can search current documentation, look up API endpoints and their parameters, and send requests to your Tenable instance using your API keys. This gives your assistant access to current API documentation rather than relying solely on potentially outdated information from its training data.
The server is available at https://developer.tenable.com/mcp and supports MCP clients that use the Streamable HTTP transport, including Claude, Cursor, Visual Studio Code, Windsurf, and Gemini CLI.
What Is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI applications to external tools and data sources. You add an MCP server to your client once. After that, your assistant can use the server's tools whenever a task requires them. For example, it can look up an endpoint's parameters and request schema before writing code that calls the endpoint.
Available Tools
The server provides the following tools. Your assistant selects the appropriate tools automatically based on your request, so you do not need to specify a tool name in your prompt.
| Tool | Description |
|---|---|
search | Searches the Developer Portal guides and returns matching pages. |
fetch | Retrieves the full content of a page returned by search. |
list-specs | Lists the API references published on the Developer Portal, such as Vulnerability Management and Web App Scanning. |
list-endpoints | Lists the paths and HTTP methods in an API reference, with a summary of each endpoint. |
search-endpoints | Searches paths, operations, and parameters across the API references. |
get-endpoint | Retrieves the full details of an endpoint, including its parameters, request body, responses, authentication scheme, and server URL. |
get-server-variables | Retrieves the server URL for an API reference, including any variables you must supply, such as the address of your instance. |
execute-request | Sends a request to a Tenable API and returns the response. Requires API authentication. For more information, see Send API Requests. |
Every tool except execute-request accesses public documentation and does not require an account or API key.
Add the Server
Add the server to your MCP client using the following configuration:
- Name:
tenable-developer - URL:
https://developer.tenable.com/mcp
Using the same server name across clients makes it easier to reference the server in prompts and follow the examples in this guide.
The following instructions configure the server without API keys. This is sufficient to use the documentation tools. To enable API requests, configure the appropriate authentication headers as described in Send API Requests.
Claude Code
Run the following command:
claude mcp add --transport http tenable-developer https://developer.tenable.com/mcpTo confirm that the server is connected, run claude mcp list or enter /mcp in a Claude Code session.
Claude Desktop and Claude.ai
- In Claude, open Settings > Connectors.
- Click Add custom connector.
- Enter
tenable-developeras the name andhttps://developer.tenable.com/mcpas the URL. - Click Add.
Custom connectors are available on some Claude plans only.
NoteCustom connectors in Claude Desktop and Claude.ai cannot send custom request headers. As a result, the
execute-requesttool cannot send your API keys from these clients. All other tools work normally. To send API requests from Claude, use Claude Code.
Cursor
Add the following configuration to ~/.cursor/mcp.json to make the server available in every project, or to .cursor/mcp.json in a project's root directory to make it available only in that project:
{
"mcpServers": {
"tenable-developer": {
"url": "https://developer.tenable.com/mcp"
}
}
}Visual Studio Code
Add the following configuration to .vscode/mcp.json in your workspace:
{
"servers": {
"tenable-developer": {
"type": "http",
"url": "https://developer.tenable.com/mcp"
}
}
}Windsurf
Add the following configuration to ~/.codeium/windsurf/mcp_config.json. Windsurf uses serverUrl as the URL property:
{
"mcpServers": {
"tenable-developer": {
"serverUrl": "https://developer.tenable.com/mcp"
}
}
}Gemini CLI
Run the following command:
gemini mcp add --transport http tenable-developer https://developer.tenable.com/mcpAlternatively, add the following configuration to ~/.gemini/settings.json. Gemini CLI uses httpUrl as the URL property:
{
"mcpServers": {
"tenable-developer": {
"httpUrl": "https://developer.tenable.com/mcp"
}
}
}Other Clients
Any MCP client or MCP client library that supports the Streamable HTTP transport can connect to https://developer.tenable.com/mcp.
Configuration formats vary between clients and versions. If the examples on this page do not work with your client, consult its documentation for instructions on adding a remote MCP server.
Test the Connection
After adding the server, start a new chat and ask a question that requires the server. For example:
Use tenable-developer to list the Tenable API references it can search.The assistant should call list-specs and return the API references published on the Developer Portal.
If your assistant responds without calling a tool, confirm that the server is enabled in your client and try the request again.
Send API Requests
The execute-request tool sends requests to Tenable APIs and returns the responses. This enables your assistant to retrieve live data or verify that generated code works against your Tenable instance.
To authenticate requests, configure the appropriate API authentication header for the Tenable product you want to access. The server sends the headers configured for it with API requests.
The following table lists the authentication headers used by supported Tenable APIs:
| API | Authentication Header |
|---|---|
| Vulnerability Management, Web App Scanning, Exposure Management, Tenable Platform and Settings, PCI ASV, and MSSP | X-ApiKeys: accessKey=ACCESS_KEY;secretKey=SECRET_KEY |
| Tenable Enclave Security and Container Security | x-apikey: accesskey=ACCESS_KEY; secretkey=SECRET_KEY |
| Identity Exposure | x-api-key: API_KEY |
| Downloads | Authorization: Bearer TOKEN |
For information about generating API keys, see Generate an API Key and Authorization. For Identity Exposure, see Get Started.
Configure API Keys
For example, to add the server to Claude Code with your Vulnerability Management API keys, use the following command:
claude mcp add --transport http tenable-developer https://developer.tenable.com/mcp \
--header "X-ApiKeys: accessKey=ACCESS_KEY;secretKey=SECRET_KEY"In clients that use a JSON configuration file, add a headers object to the server configuration.
For example, in Cursor:
{
"mcpServers": {
"tenable-developer": {
"url": "https://developer.tenable.com/mcp",
"headers": {
"X-ApiKeys": "accessKey=ACCESS_KEY;secretKey=SECRET_KEY"
}
}
}
}Replace the example values with your actual API keys.
Tenable Enclave Security and Identity Exposure use instance-specific URLs. Include your instance URL in your prompt so the assistant knows which instance to send requests to. For example:
My Identity Exposure instance is https://example.tenable.ad.
CautionThe
execute-requesttool sends real requests to your Tenable instance using your API keys and the permissions of the associated account. Depending on those permissions, an assistant using this tool can create, modify, and delete data or launch scans.To limit risk:
- Use API keys associated with an account that has only the permissions required for the task. For more information, see Roles.
- Keep your client's approval prompt enabled for
execute-request, and review each request before approving it.- Treat any configuration file containing API keys like a password. Anyone who can read the file can use the keys. Where your client supports it, reference an environment variable instead of storing the key directly in the configuration file.
Requests sent through execute-request count toward your API rate limits and export concurrency limits, just like other API requests. For more information, see Rate Limiting and Concurrency Limiting.
Example Prompts
Mentioning tenable-developer in your prompt directs the assistant to use the MCP server rather than relying solely on information from its training data.
| Task | Example prompt |
|---|---|
| Find an endpoint | "Using tenable-developer, which endpoint exports vulnerabilities from Vulnerability Management, and which filters does it accept?" |
| Learn an API | "Using tenable-developer, write a quick-start guide for the Web App Scanning API that covers authentication, the main endpoints, and an example cURL request." |
| Write integration code | "Using tenable-developer, write a Python script that exports critical and high vulnerabilities from Vulnerability Management and saves each chunk to a file." |
| Check permissions | "Using tenable-developer, which user role or custom role privilege do I need to create a scan in Vulnerability Management?" |
| Retrieve live data | "Using tenable-developer, list the scans in my Vulnerability Management container and show the status of each one." This prompt calls execute-request and requires API keys. |
For Python integrations, Tenable's pyTenable library handles authentication and request construction for you. Ask your assistant to use pyTenable when it supports the endpoint you need.
Updated about 3 hours ago
