How to Use the Keen MCP in Claude Code
Pipe Keen event analytics straight into your terminal with Claude Code for headless infrastructure reporting.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Keen MCP to Claude Code
Create your Vinkius account to connect Keen 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.
Run Keen MCP Server in CI/CD
Drop this server into your GitHub Actions or cron jobs. Claude Code executes `count_events` and `average_property` to generate automated daily reports directly from your terminal. It runs completely headless. Your pipeline pulls the metrics, formats the data, and pipes the output directly to Slack or a log file without any human intervention. You get automated infrastructure reporting using simple shell commands.
Audit projects from the CLI
Manage your event infrastructure without opening a browser. Run `get_project_details` and `list_collections` right from your terminal prompt to see exactly what schemas are active in production. Claude Code can also grab your `list_datasets` and `list_saved_queries` to verify your caching layers. If a deployment breaks a saved query, you can script the agent to find the failure immediately.
Script your event tracking tests
Write shell scripts that let your agent fire `record_event` during integration testing. You can simulate massive traffic spikes or specific edge-case payloads entirely from the command line. Claude Code immediately follows up with `select_unique` or `sum_property` to assert that the test data aggregated properly. It turns manual QA processes into repeatable terminal commands.
Set up Keen 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 seekeen-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Keen transactions." It will automatically discover and invoke the available Keen tools.
claude mcp add --transport http keen-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 Keen MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Keen MCP today
We host it, we monitor it, we maintain it. You just paste one token.