Panther's Model Context Protocol (MCP) server enhances security workflows by enabling you to write and tune detections from your IDE, interactively query security logs using natural language, and manage alerts efficiently. This integration brings Panther's powerful security capabilities directly into your development environment.
The Panther MCP server provides several tool categories to help with your security operations:
Before installing the MCP server, you need to configure your API credentials:
Create an API token in Panther:
Store the generated token securely
Copy your Panther instance URL from your browser (e.g., https://YOUR-PANTHER-INSTANCE.domain
)
https://
The easiest way to get started is using the pre-built Docker image:
{
"mcpServers": {
"mcp-panther": {
"command": "docker",
"args": [
"run",
"-i",
"-e", "PANTHER_INSTANCE_URL",
"-e", "PANTHER_API_TOKEN",
"--rm",
"ghcr.io/panther-labs/mcp-panther"
],
"env": {
"PANTHER_INSTANCE_URL": "https://YOUR-PANTHER-INSTANCE.domain",
"PANTHER_API_TOKEN": "YOUR-API-KEY"
}
}
}
}
For Python users, you can run directly from PyPI using uvx:
Install UV from the official documentation
Configure your MCP client:
{
"mcpServers": {
"mcp-panther": {
"command": "uvx",
"args": ["mcp-panther"],
"env": {
"PANTHER_INSTANCE_URL": "https://YOUR-PANTHER-INSTANCE.domain",
"PANTHER_API_TOKEN": "YOUR-PANTHER-API-TOKEN"
}
}
}
}
Follow the instructions at Cursor's MCP documentation to configure your project or global MCP configuration. It's VERY IMPORTANT that you do not check this file into version control.
Once configured, navigate to Cursor Settings > MCP to view the running server.
Tips:
@
symbol and then typing a specific directory.To use with Claude Desktop:
{
"mcpServers": {
"mcp-panther": {
"command": "uvx",
"args": ["mcp-panther"],
"env": {
"PANTHER_INSTANCE_URL": "https://YOUR-PANTHER-INSTANCE.domain",
"PANTHER_API_TOKEN": "YOUR-PANTHER-API-TOKEN"
}
}
}
}
Use with Goose, Block's open-source AI agent:
# Start Goose with the MCP server
goose session --with-extension "uvx mcp-panther --compat-mode"
The --compat-mode
flag enables compatibility mode for broader MCP client support.
For optimal security:
Check the server logs for detailed error messages: tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
Common issues:
HTTP 403
errors usually indicate missing permissions for your API tokenTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-panther" '{"command":"docker","args":["run","-i","-e","PANTHER_INSTANCE_URL","-e","PANTHER_API_TOKEN","--rm","ghcr.io/panther-labs/mcp-panther"],"env":{"PANTHER_INSTANCE_URL":"https://YOUR-PANTHER-INSTANCE.domain","PANTHER_API_TOKEN":"YOUR-API-KEY"}}'
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": {
"mcp-panther": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PANTHER_INSTANCE_URL",
"-e",
"PANTHER_API_TOKEN",
"--rm",
"ghcr.io/panther-labs/mcp-panther"
],
"env": {
"PANTHER_INSTANCE_URL": "https://YOUR-PANTHER-INSTANCE.domain",
"PANTHER_API_TOKEN": "YOUR-API-KEY"
}
}
}
}
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": {
"mcp-panther": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PANTHER_INSTANCE_URL",
"-e",
"PANTHER_API_TOKEN",
"--rm",
"ghcr.io/panther-labs/mcp-panther"
],
"env": {
"PANTHER_INSTANCE_URL": "https://YOUR-PANTHER-INSTANCE.domain",
"PANTHER_API_TOKEN": "YOUR-API-KEY"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect