The Huntress API MCP Server provides programmatic access to Huntress functionality, including account management, organization management, agent monitoring, and incident reports. This server acts as an intermediary, allowing you to interact with the Huntress API through a standardized Model Context Protocol interface.
The easiest way to install Huntress API MCP Server for Claude Desktop is through Smithery:
npx -y @smithery/cli install huntress-mcp-server --client claude
If you prefer to install manually:
npm install
.env
file with your credentials:
HUNTRESS_API_KEY=your_api_key_here
HUNTRESS_API_SECRET=your_api_secret_here
npm run build
The server requires these environment variables:
HUNTRESS_API_KEY
: Your Huntress API KeyHUNTRESS_API_SECRET
: Your Huntress API Secret KeyThese credentials can be obtained from your Huntress account at <your_account_subdomain>.huntress.io
under API Credentials.
To use the server, add this configuration to your MCP settings:
{
"mcpServers": {
"huntress": {
"command": "node",
"args": ["path/to/huntress-server/build/index.js"],
"env": {
"HUNTRESS_API_KEY": "your_api_key_here",
"HUNTRESS_API_SECRET": "your_api_secret_here"
}
}
}
}
get_account_info
: Retrieves information about the current accountlist_organizations
: Lists all organizations in the accountget_organization
: Gets details of a specific organizationlist_agents
: Lists all agents in the accountget_agent
: Gets details of a specific agentlist_incident_reports
: Lists incident reportsget_incident_report
: Gets details of a specific incident reportlist_summary_reports
: Lists summary reportsget_summary_report
: Gets details of a specific summary reportlist_billing_reports
: Lists billing reportsget_billing_report
: Gets details of a specific billing reportThe server implements Huntress API's rate limiting of 60 requests per minute on a sliding window:
The server handles various error scenarios, including:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "huntress" '{"command":"node","args":["path/to/huntress-server/build/index.js"],"env":{"HUNTRESS_API_KEY":"your_api_key_here","HUNTRESS_API_SECRET":"your_api_secret_here"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"huntress": {
"command": "node",
"args": [
"path/to/huntress-server/build/index.js"
],
"env": {
"HUNTRESS_API_KEY": "your_api_key_here",
"HUNTRESS_API_SECRET": "your_api_secret_here"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"huntress": {
"command": "node",
"args": [
"path/to/huntress-server/build/index.js"
],
"env": {
"HUNTRESS_API_KEY": "your_api_key_here",
"HUNTRESS_API_SECRET": "your_api_secret_here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect