- ANOMALIES
- AUDIT
- REPORTS
- HUMAN
Short answer
How can I audit my API usage with an AI?
Your AI uses the Unkey MCP to pull real-time verification analytics and usage statistics. You can then ask it to identify specific patterns, spikes, or developer behaviors. You'll get clear visibility into how your keys are being used.
Where your data lands.
The outcomes of your audit.
The AI processes Unkey data into these specific results.
ANOMALIES
Spot usage spikes
The AI scans verification logs to find sudden jumps in request volume. You get a list of when and where activity spiked.
AUDIT
Verify developer activity
Your agent pulls specific verification stats to see how individual keys are performing. This helps you track exactly who is hitting your endpoints.
REPORTS
Generate usage summaries
The AI aggregates raw analytics into readable summaries. You can ask for totals, averages, or specific time-window breakdowns.
HUMAN
Manual intervention
The AI identifies suspicious patterns but won't revoke keys or change limits. You decide when to take action in the Unkey dashboard.
The workflow
What your AI does when the data arrives.
The AI acts as a bridge between your chat interface and the Unkey API.
Fetch live stats
The AI pulls the latest verification and usage numbers directly from your Unkey account.
get_verification_analyticsAnalyze patterns
It compares current request volumes against historical data to find outliers.
get_verification_analyticsFilter activity
The agent narrows down logs by specific keys or timeframes to isolate certain users.
get_verification_analyticsSummarize findings
It turns complex JSON response data into a plain English report for you to read.
get_verification_analytics
Try it
Copy these to start.
Use these prompts to begin your audit.
Starting points
These are just ideas. Swap out the specific key names or timeframes to match your actual Unkey setup.
Unkey Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_yjns51tu1Zuz7DUjeNeGeF2BKD96k4G9BaUoTlA0/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Unkey capabilities are ready to use.
{
"mcpServers": {
"unkey-api-management-mcp": {
"url": "https://edge.vinkius.com/vk_preview_yjns51tu1Zuz7DUjeNeGeF2BKD96k4G9BaUoTlA0/mcp"
}
}
}Show me the verification analytics for the 'production-api-key' from the last 24 hours.
Are there any unusual spikes in usage for my mobile app keys today?
Summarize the total request volume for all active keys this week.
Which developer key has had the highest number of failed verifications recently?
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Unkey once, then ask.
Just link your account via the Vinkius dashboard. Your credentials stay encrypted, and you can immediately start chatting with your data in any MCP-compatible client.
Connect Unkey to your AIFAQ
How this task behaves.
- 01
Can the AI revoke an API key if it sees suspicious activity?
No. The AI can only read verification analytics. You must manually revoke keys through the Unkey dashboard.
- 02
Does the AI have access to my secret keys?
No. The AI only accesses the analytics and verification data provided by the tool.
- 03
Can I use this to change my rate limits?
No. This MCP is for monitoring and auditing usage, not for modifying configuration or limits.
- 04
How real-time is the data?
The AI pulls data using the get_verification_analytics tool, so you see the most recent statistics available in your Unkey account.
- 05
Can the AI create new API keys for me?
No. The current tools are limited to retrieving analytics and verification data.
More questions about Unkey? See everything the Unkey Connector can do
Connect Unkey to Claude, Cursor, ChatGPT & more
