MCP (Model Context Protocol) client for connecting Claude Desktop to the Garnet security platform.
You can use this client directly with npx
(no installation required):
npx @garnet-org/platform-mcp
Or install globally:
npm install -g @garnet-org/platform-mcp
Using garnetctl:
garnetctl config current-token
Edit your Claude 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
Add this configuration:
{
"mcpServers": {
"garnet": {
"command": "npx",
"args": ["@garnet-org/platform-mcp"],
"env": {
"GARNET_API_URL": "https://api.garnet.ai/api/v1/mcp",
"GARNET_API_TOKEN": "your-token-here"
}
}
}
}
Or if installed globally:
{
"mcpServers": {
"garnet": {
"command": "garnet-mcp",
"env": {
"GARNET_API_URL": "https://api.garnet.ai/api/v1/mcp",
"GARNET_API_TOKEN": "your-token-here"
}
}
}
}
In Claude, you should see Garnet tools available. Try asking:
- "List recent security events"
- "Show me security issues"
- "List network policies"
GARNET_API_URL
: The Garnet API endpoint (default:http://localhost:8080/api/v1/mcp
)GARNET_API_TOKEN
: Your project authentication token (required)
The MCP client provides access to these Garnet security tools:
- garnetListEvents - List recent security events with filtering options
- garnetGetEvent - Get detailed information about a specific event
- garnetBlockEvent - Block network destination associated with an event
- garnetListAgents - List security agents in the project
- garnetListIssues - List security issues with filtering options
- garnetGetIssue - Get detailed information about a specific issue
- garnetBlockIssue - Block network destination associated with an issue
- garnetListNetworkPolicies - List network policies for the project
If you're running a self-hosted Garnet instance, update the GARNET_API_URL
to point to your server:
"env": {
"GARNET_API_URL": "https://your-garnet-instance.com/api/v1/mcp",
"GARNET_API_TOKEN": "your-token-here"
}
This client acts as a bridge between Claude's MCP protocol (stdio) and the Garnet HTTP API. It forwards JSON-RPC requests from Claude to the Garnet server and returns the responses.
For issues and questions:
- GitHub Issues: https://github.com/garnet-org/garnet-platform-mcp/issues
- Documentation: https://docs.garnet.ai
MIT