# Unkey API Management MCP

> Unkey API Management lets your AI agent handle all developer key operations. You can create new keys, check if an existing key is valid, update credentials, and manage the entire lifecycle of your API access directly from conversation. Stop switching between dashboards to audit usage or revoke old tokens.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Tags:** api-keys, authentication, rate-limiting, usage-tracking, developer-experience, metadata

## Description

Managing APIs shouldn't mean juggling a dozen separate panels. This MCP connects your agent to Unkey, giving it direct control over your entire API infrastructure. You can treat key management like chatting with an engineer—just tell your AI client what you need done. For instance, if a developer loses their credentials, the agent instantly verifies if the key is good and checks its remaining usage credits without you leaving your chat window. Need to audit who's using what? The agent pulls detailed verification analytics for you. Whether you’re auditing keys or checking an API configuration, this MCP centralizes that oversight. By connecting Unkey through Vinkius, you give your AI client a single point of truth for all things related to key issuance and usage tracking.

## Tools

### create_api_key
This tool generates and issues a brand new API key for your users to use.

### revoke_api_key
It permanently deletes an existing API key, immediately removing all access rights associated with it.

### get_api_details
You can use this to pull up specific configuration details for any defined API within your project.

### get_verification_analytics
This tool retrieves detailed usage stats, allowing you to see how often and how much keys are being used.

### list_apis
It pulls up a comprehensive list of every API that has been defined in your Unkey project.

### list_api_keys
This function displays all active and inactive keys linked to a specific API ID you provide.

### update_api_key
You can change details on an existing key, such as its metadata or usage limits, without revoking it.

### verify_api_key
This tool instantly confirms if a given API key is currently valid and active for use.

## Prompt Examples

**Prompt:** 
```
List all APIs in my Unkey project.
```

**Response:** 
```
Fetching APIs... I found 2 APIs: 'Public Storefront' (ID: api_123) and 'Admin Dashboard' (ID: api_456). Which one would you like to manage?
```

**Prompt:** 
```
Verify the API key 'user_sk_abcdef123'.
```

**Response:** 
```
Verification result: Key is VALID. Owner: 'user_789'. Remaining credits: 4,500. This key is associated with the 'Premium Plan'.
```

## Capabilities

### Generate New Keys
The agent creates fresh API keys for users, assigning them custom metadata or prefixes.

### Verify Key Status
It checks if a provided key is active and reports its current usage limits or remaining credits.

### Manage Key Lifecycles
You can list all existing keys for an API, update their details, or permanently delete them.

### Monitor Usage Data
The agent retrieves detailed analytics showing how your developers are actually using the service over time.

### Inspect APIs
It pulls up a list of all defined APIs and shows their specific configuration details.

## Use Cases

### A developer reports their key isn't working.
The customer support specialist asks the agent to `verify_api_key` using the provided token. The agent confirms the key is valid, notes it has remaining credits, and tells the user exactly what plan they are on. Issue solved in three conversational steps.

### Quarterly audit of developer access.
The DevOps engineer asks the agent to `list_api_keys` for a specific API ID. The agent returns a complete list, allowing them to cross-reference every key against internal teams and identify keys that should be flagged for revocation.

### Launching a new service endpoint.
The product manager tells the agent they need a new API endpoint. The agent uses `list_apis` first to check if the structure exists, then confirms the necessary configuration using `get_api_details` before proceeding.

### Identifying inefficient service usage.
The manager prompts the agent to run `get_verification_analytics`. The agent pulls a detailed report showing that one specific API is being hit far more often than expected, allowing the team to optimize billing or performance.

## Benefits

- Instant key verification: Instead of logging into a separate portal to check if a developer's key is valid, the agent runs `verify_api_key` instantly. This means faster support responses.
- Full oversight on infrastructure: Use `list_apis` and `get_api_details` to get a current inventory of all your APIs without navigating complex dashboards. You see everything in chat.
- Proactive key management: Need to retire an old feature? Simply use `revoke_api_key` to instantly cut off access, then confirm the action with the agent. No more manual cleanup lists.
- Understanding consumption patterns: The `get_verification_analytics` tool provides usage reports that help you justify pricing tiers or identify underutilized services.
- Zero context switching: You manage key issuance (`create_api_key`), status updates (`update_api_key`), and usage tracking all in one conversation with your agent.

## How It Works

The bottom line is you control complex developer services and usage data entirely through conversation prompts.

1. Subscribe to this MCP and enter your Unkey Root Key, which you'll find in your main Unkey dashboard settings.
2. Your AI client authenticates the connection, giving it direct permissions to interact with your API key infrastructure.
3. You simply prompt the agent using natural language—for example, 'List all keys for my billing service.'—and get immediate results.

## Frequently Asked Questions

**How do I use the Unkey API Management MCP to check if a key works?**
You run `verify_api_key` and provide the token you want checked. The agent immediately tells you if it's valid, who owns it, and how many credits are left.

**Can I use Unkey API Management to find out what APIs exist?**
Yes, just ask the agent to `list_apis`. It will retrieve a complete rundown of every API endpoint defined in your project for you.

**If I need to delete an old key, which tool do I use? Is it Unkey API Management?**
Use the `revoke_api_key` tool. It permanently deletes access rights for that specific key immediately.

**How do I get usage data from Unkey API Management MCP?**
You run `get_verification_analytics`. This pulls detailed stats showing how developers have used the service over a specified period.

**Does this MCP let me create new keys for users?**
Yes, you use the `create_api_key` tool to generate fresh API keys and assign them specific metadata or ownership details.