Get the FREE Ultimate OpenClaw Setup Guide →

whistle

A Whistle proxy management tool based on Model Context Protocol that allows AI assistants to directly control local Whistle proxy servers, simplifying network debugging, API testing, and proxy rule configuration through natural language interaction.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio 7gugu-whistle-mcp whistle-mcp --host=<whistle server IP address> --port=<whistle server port number>

How to use

Whistle MCP Server exposes a set of MCP tools that let AI assistants manage and monitor a local Whistle proxy without manual interaction with the Whistle UI. You can query, create, update, and organize rules, groups, and values; control the proxy and HTTPS interception; view intercepted requests; and replay or modify requests. The tools are designed to be called through the MCP protocol, enabling automation and natural language-driven proxy management. Start by pointing the MCP server at your running Whistle instance, then use the provided tool set to perform tasks such as creating a rule for a specific URL, grouping related rules, enabling or disabling proxy features, and replaying captured requests with custom parameters.

How to install

Prerequisites:

  • Node.js and npm installed on your machine
  • A Whistle proxy server running locally or accessible from the same environment

Installation steps:

  1. Install the MCP tool globally via npm:
npm install -g whistle-mcp-tool
  1. (Optional) If you plan to use Smithery for automatic installation, you can install via Smithery per the project’s guidance. This is not required for basic MCP operation.
  2. Ensure Whistle is running and accessible on your host/port you configure in the MCP JSON configuration (default host is localhost and default port is 8899 for Whistle).
  3. Prepare your MCP JSON configuration file (see the example in the repository) and point your MCP client to the whistle-mcp server name you configured.

Additional notes

Tips and common considerations:

  • Defaults: host defaults to localhost and port defaults to 8899 if you don’t override them in the command line.
  • Ensure network access between the MCP server and your Whistle instance; if Whistle is on a different host, use the appropriate --host and --port values.
  • Tools are organized by category (Rule, Group, Value, Proxy, Request). Use them to script common workflows like deploying a baseline rule set, grouping related rules, or enabling multi-rule mode.
  • If you encounter authentication or connection issues, verify that Whistle is running, the port is correct, and no firewall blocks the connection.
  • You can combine multiple tool calls in sequence to implement complex debugging and automation tasks.

Related MCP Servers

Sponsor this space

Reach thousands of developers