Huntress MCP server

Integrates with Huntress endpoint protection services to manage cybersecurity operations, threat analysis, and automated reporting.
Back to servers
Setup instructions
Provider
Dynamic Endpoints
Release date
Dec 18, 2024
Language
TypeScript
Stats
1 star

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.

Installation Options

Installing via Smithery

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

Manual Installation

If you prefer to install manually:

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Create a .env file with your credentials:
    HUNTRESS_API_KEY=your_api_key_here
    HUNTRESS_API_SECRET=your_api_secret_here
    
  4. Build the server:
    npm run build
    

Configuration

The server requires these environment variables:

  • HUNTRESS_API_KEY: Your Huntress API Key
  • HUNTRESS_API_SECRET: Your Huntress API Secret Key

These credentials can be obtained from your Huntress account at <your_account_subdomain>.huntress.io under API Credentials.

Usage with MCP

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"
      }
    }
  }
}

Available Tools

Account Management

  • get_account_info: Retrieves information about the current account

Organization Management

  • list_organizations: Lists all organizations in the account
  • get_organization: Gets details of a specific organization

Agent Management

  • list_agents: Lists all agents in the account
  • get_agent: Gets details of a specific agent

Incident Reports

  • list_incident_reports: Lists incident reports
  • get_incident_report: Gets details of a specific incident report

Summary Reports

  • list_summary_reports: Lists summary reports
  • get_summary_report: Gets details of a specific summary report

Billing Reports

  • list_billing_reports: Lists billing reports
  • get_billing_report: Gets details of a specific billing report

Rate Limiting

The server implements Huntress API's rate limiting of 60 requests per minute on a sliding window:

  • Maximum 60 requests within any 60-second period
  • The window slides continuously, so timing between requests matters
  • Exceeding this limit will result in rate limit errors

Error Handling

The server handles various error scenarios, including:

  • Invalid API credentials
  • Rate limit exceeded
  • Invalid request parameters
  • API response errors

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            }
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later