How to Use the CrowdSec MCP in Claude Code
Pipe CrowdSec threat intelligence straight into your terminal. Claude Code checks IP reputation and local bans without a GUI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect CrowdSec MCP to Claude Code
Create your Vinkius account to connect CrowdSec to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Terminal-Native CrowdSec MCP Server
DevOps engineers live in the shell. When an alert fires at 3 AM, you want answers fast. Claude Code executes `get_cti_smoke` directly from your command line to check an offending IP against the global reputation database. The result pipes straight back into your terminal session. You can then ask the agent to grep your access logs for that specific address and generate a shell script to drop the traffic.
Audit Local API Decisions
Managing firewalls requires knowing exactly what your system is currently blocking. You tell your terminal agent to fetch the active ban list. It runs `get_decisions` against the local CrowdSec instance and returns the raw data. Claude Code parses that output immediately. It can format the raw JSON into a readable table, filter for specific subnets, or compare the active bans against your cloud provider's security groups.
Headless Threat Monitoring
CI/CD pipelines and cron jobs need automated security checks. You can script Claude Code to run headless, polling `get_decisions_stream` every few minutes to look for newly dropped threats. If a new ban appears, the agent can trigger a webhook or update a remote firewall configuration file. The entire workflow happens asynchronously without any browser or IDE getting in the way.
Set up CrowdSec MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seecrowdsec-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest CrowdSec transactions." It will automatically discover and invoke the available CrowdSec tools.
claude mcp add --transport http crowdsec-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about CrowdSec MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the CrowdSec MCP today
We host it, we monitor it, we maintain it. You just paste one token.