Unkey MCP by usefulapi is an MCP server published by io.usefulapi, hosted at unkey.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 19 tools, including unkey_liveness, unkey_get_key, unkey_whoami_key, unkey_get_api, unkey_list_api_keys.
Manage API keys, identities, permissions, rate-limit overrides and verification analytics.
4,406 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Check that the Unkey API is reachable and the root key works. The only GET in the v2 surface. Unkey: GET /v2/liveness.
No parameters.
{
"name": "unkey_liveness",
"title": "Check API health",
"description": "Check that the Unkey API is reachable and the root key works. The only GET in the v2 surface. Unkey: GET /v2/liveness.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Check API health",
"readOnlyHint": true
}
}Fetch a key's metadata by its key id — name, owner, permissions, credits, rate limits and whether it is enabled. Read-only despite being a POST. Unkey: POST /v2/keys.getKey.
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| Parameter | Type | Description |
|---|---|---|
| keyId * | string | The key's id (key_...), NOT the secret key itself. |
| decrypt | boolean | Also return the plaintext secret. Only works for keys created as recoverable. |
{
"name": "unkey_get_key",
"title": "Get one key by id",
"description": "Fetch a key's metadata by its key id — name, owner, permissions, credits, rate limits and whether it is enabled. Read-only despite being a POST. Unkey: POST /v2/keys.getKey.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"keyId"
],
"properties": {
"keyId": {
"type": "string",
"description": "The key's id (key_...), NOT the secret key itself."
},
"decrypt": {
"type": "boolean",
"description": "Also return the plaintext secret. Only works for keys created as recoverable."
}
}
},
"annotations": {
"title": "Get one key by id",
"readOnlyHint": true
}
}Given a plaintext API key, return which key it is and its metadata — without spending credits or recording a verification. This is the safe way to identify a key a customer sent you. Unkey: POST /v2/keys.whoami.
| Parameter | Type | Description |
|---|---|---|
| key * | string | The plaintext API key to identify. |
{
"name": "unkey_whoami_key",
"title": "Look up a key by its secret",
"description": "Given a plaintext API key, return which key it is and its metadata — without spending credits or recording a verification. This is the safe way to identify a key a customer sent you. Unkey: POST /v2/keys.whoami.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "The plaintext API key to identify."
}
}
},
"annotations": {
"title": "Look up a key by its secret",
"readOnlyHint": true
}
}Fetch an API namespace by id. Read-only despite being a POST. Unkey: POST /v2/apis.getApi.
| Parameter | Type | Description |
|---|---|---|
| apiId * | string | The API's id (api_...). |
{
"name": "unkey_get_api",
"title": "Get one API",
"description": "Fetch an API namespace by id. Read-only despite being a POST. Unkey: POST /v2/apis.getApi.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"apiId"
],
"properties": {
"apiId": {
"type": "string",
"description": "The API's id (api_...)."
}
}
},
"annotations": {
"title": "Get one API",
"readOnlyHint": true
}
}List every key issued under one API, optionally narrowed to a single customer by externalId. Read-only despite being a POST. Unkey: POST /v2/apis.listKeys.
| Parameter | Type | Description |
|---|---|---|
| apiId * | string | The API whose keys to list. |
| limit | integer | Page size, 1-100. |
| cursor | string | Cursor from the previous page's response. Omit for the first page. |
| externalId | string | Only keys belonging to this external identity. |
{
"name": "unkey_list_api_keys",
"title": "List the keys of an API",
"description": "List every key issued under one API, optionally narrowed to a single customer by externalId. Read-only despite being a POST. Unkey: POST /v2/apis.listKeys.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"apiId"
],
"properties": {
"apiId": {
"type": "string",
"description": "The API whose keys to list."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, 1-100."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's response. Omit for the first page."
},
"externalId": {
"type": "string",
"description": "Only keys belonging to this external identity."
}
}
},
"annotations": {
"title": "List the keys of an API",
"readOnlyHint": true
}
}List identities — the end users or organisations your keys belong to. Read-only despite being a POST. Unkey: POST /v2/identities.listIdentities.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size, 1-100. |
| cursor | string | Cursor from the previous page's response. Omit for the first page. |
| search | string | Free-text search over external ids. |
{
"name": "unkey_list_identities",
"title": "List identities",
"description": "List identities — the end users or organisations your keys belong to. Read-only despite being a POST. Unkey: POST /v2/identities.listIdentities.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, 1-100."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's response. Omit for the first page."
},
"search": {
"type": "string",
"description": "Free-text search over external ids."
}
}
},
"annotations": {
"title": "List identities",
"readOnlyHint": true
}
}Fetch a single identity with its metadata and shared rate limits. Read-only despite being a POST. Unkey: POST /v2/identities.getIdentity.
| Parameter | Type | Description |
|---|---|---|
| identity * | string | The identity's external id or Unkey id. |
{
"name": "unkey_get_identity",
"title": "Get one identity",
"description": "Fetch a single identity with its metadata and shared rate limits. Read-only despite being a POST. Unkey: POST /v2/identities.getIdentity.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"identity"
],
"properties": {
"identity": {
"type": "string",
"description": "The identity's external id or Unkey id."
}
}
},
"annotations": {
"title": "Get one identity",
"readOnlyHint": true
}
}List the permissions defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listPermissions.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size, 1-100. |
| cursor | string | Cursor from the previous page's response. Omit for the first page. |
| search | string | Free-text search. |
{
"name": "unkey_list_permissions",
"title": "List permissions",
"description": "List the permissions defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listPermissions.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, 1-100."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's response. Omit for the first page."
},
"search": {
"type": "string",
"description": "Free-text search."
}
}
},
"annotations": {
"title": "List permissions",
"readOnlyHint": true
}
}List the roles defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listRoles.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size, 1-100. |
| cursor | string | Cursor from the previous page's response. Omit for the first page. |
| search | string | Free-text search. |
{
"name": "unkey_list_roles",
"title": "List roles",
"description": "List the roles defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listRoles.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, 1-100."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's response. Omit for the first page."
},
"search": {
"type": "string",
"description": "Free-text search."
}
}
},
"annotations": {
"title": "List roles",
"readOnlyHint": true
}
}List the per-identifier overrides in one rate-limit namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.listOverrides.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size, 1-100. |
| cursor | string | Cursor from the previous page's response. Omit for the first page. |
| namespace * | string | The rate-limit namespace name. |
{
"name": "unkey_list_ratelimit_overrides",
"title": "List rate-limit overrides",
"description": "List the per-identifier overrides in one rate-limit namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.listOverrides.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"namespace"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, 1-100."
},
"cursor": {
"type": "string",
"description": "Cursor from the previous page's response. Omit for the first page."
},
"namespace": {
"type": "string",
"description": "The rate-limit namespace name."
}
}
},
"annotations": {
"title": "List rate-limit overrides",
"readOnlyHint": true
}
}Fetch the override for one identifier in a namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.getOverride.
| Parameter | Type | Description |
|---|---|---|
| namespace * | string | The rate-limit namespace name. |
| identifier * | string | The identifier the override applies to. |
{
"name": "unkey_get_ratelimit_override",
"title": "Get one rate-limit override",
"description": "Fetch the override for one identifier in a namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.getOverride.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"namespace",
"identifier"
],
"properties": {
"namespace": {
"type": "string",
"description": "The rate-limit namespace name."
},
"identifier": {
"type": "string",
"description": "The identifier the override applies to."
}
}
},
"annotations": {
"title": "Get one rate-limit override",
"readOnlyHint": true
}
}Run a read-only SQL query over key-verification analytics. The query must use one of the public aliases: key_verifications_v1, key_verifications_per_minute_v1, key_verifications_per_hour_v1, key_verifications_per_day_v1 or key_verifications_per_month_v1. Physical default.* table names are rejected, and results are scoped to your workspace. Unkey: POST /v2/analytics.getVerifications.
| Parameter | Type | Description |
|---|---|---|
| query * | string | The SQL query, e.g. SELECT time, outcome, count(*) FROM key_verifications_per_day_v1 GROUP BY time, outcome. |
{
"name": "unkey_query_verification_analytics",
"title": "Query key-verification analytics",
"description": "Run a read-only SQL query over key-verification analytics. The query must use one of the public aliases: key_verifications_v1, key_verifications_per_minute_v1, key_verifications_per_hour_v1, key_verifications_per_day_v1 or key_verifications_per_month_v1. Physical default.* table names are rejected, and results are scoped to your workspace. Unkey: POST /v2/analytics.getVerifications.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "The SQL query, e.g. SELECT time, outcome, count(*) FROM key_verifications_per_day_v1 GROUP BY time, outcome."
}
}
},
"annotations": {
"title": "Query key-verification analytics",
"readOnlyHint": true
}
}Create a new API namespace to issue keys under. Unkey: POST /v2/apis.createApi.
| Parameter | Type | Description |
|---|---|---|
| name * | string | The API name. |
{
"name": "unkey_create_api",
"title": "Create an API",
"description": "Create a new API namespace to issue keys under. Unkey: POST /v2/apis.createApi.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The API name."
}
}
},
"annotations": {
"title": "Create an API",
"destructiveHint": true
}
}Issue a new API key under an API. The plaintext key is returned ONCE in the response and cannot be retrieved later unless recoverable is set. Unkey: POST /v2/keys.createKey.
| Parameter | Type | Description |
|---|---|---|
| meta | object | Arbitrary JSON metadata. |
| name | string | A human-readable label for the key. |
| apiId * | string | The API to issue the key under. |
| roles | array | Role names to attach. |
| prefix | string | Prefix for the generated key, e.g. acme. |
| enabled | boolean | Create the key enabled. Defaults to true. |
| expires | integer | Expiry as a Unix timestamp in milliseconds. |
| byteLength | integer | Entropy in bytes. Defaults to 16. |
| externalId | string | The identity (your user or org id) this key belongs to. |
| permissions | array | Permission names to attach. |
| recoverable | boolean | Store the key encrypted so it can be shown again later. Defaults to false. |
{
"name": "unkey_create_key",
"title": "Create an API key",
"description": "Issue a new API key under an API. The plaintext key is returned ONCE in the response and cannot be retrieved later unless recoverable is set. Unkey: POST /v2/keys.createKey.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"apiId"
],
"properties": {
"meta": {
"type": "object",
"description": "Arbitrary JSON metadata.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"name": {
"type": "string",
"description": "A human-readable label for the key."
},
"apiId": {
"type": "string",
"description": "The API to issue the key under."
},
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Role names to attach."
},
"prefix": {
"type": "string",
"description": "Prefix for the generated key, e.g. acme."
},
"enabled": {
"type": "boolean",
"description": "Create the key enabled. Defaults to true."
},
"expires": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Expiry as a Unix timestamp in milliseconds."
},
"byteLength": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Entropy in bytes. Defaults to 16."
},
"externalId": {
"type": "string",
"description": "The identity (your user or org id) this key belongs to."
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Permission names to attach."
},
"recoverable": {
"type": "boolean",
"description": "Store the key encrypted so it can be shown again later. Defaults to false."
}
}
},
"annotations": {
"title": "Create an API key",
"destructiveHint": true
}
}Change a key's name, owner, metadata, expiry, roles, permissions or enabled state. Unkey: POST /v2/keys.updateKey.
| Parameter | Type | Description |
|---|---|---|
| meta | object | Replace the key's metadata. |
| name | string | New label. |
| keyId * | string | The key to update. |
| roles | array | Replace the key's roles. |
| enabled | boolean | Enable or disable the key. |
| expires | integer | New expiry as a Unix timestamp in milliseconds. |
| externalId | string | Reassign the key to this identity. |
| permissions | array | Replace the key's permissions. |
{
"name": "unkey_update_key",
"title": "Update a key",
"description": "Change a key's name, owner, metadata, expiry, roles, permissions or enabled state. Unkey: POST /v2/keys.updateKey.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"keyId"
],
"properties": {
"meta": {
"type": "object",
"description": "Replace the key's metadata.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"name": {
"type": "string",
"description": "New label."
},
"keyId": {
"type": "string",
"description": "The key to update."
},
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replace the key's roles."
},
"enabled": {
"type": "boolean",
"description": "Enable or disable the key."
},
"expires": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "New expiry as a Unix timestamp in milliseconds."
},
"externalId": {
"type": "string",
"description": "Reassign the key to this identity."
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replace the key's permissions."
}
}
},
"annotations": {
"title": "Update a key",
"destructiveHint": true
}
}Set, increment or decrement a key's remaining credits. Use set with no value for unlimited. Unkey: POST /v2/keys.updateCredits.
| Parameter | Type | Description |
|---|---|---|
| keyId * | string | The key to change. |
| value | integer | The credit amount. Omit with operation=set to make the key unlimited. |
| operation * | string | How to apply the value. |
{
"name": "unkey_update_key_credits",
"title": "Update a key's credits",
"description": "Set, increment or decrement a key's remaining credits. Use set with no value for unlimited. Unkey: POST /v2/keys.updateCredits.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"keyId",
"operation"
],
"properties": {
"keyId": {
"type": "string",
"description": "The key to change."
},
"value": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "The credit amount. Omit with operation=set to make the key unlimited."
},
"operation": {
"enum": [
"set",
"increment",
"decrement"
],
"type": "string",
"description": "How to apply the value."
}
}
},
"annotations": {
"title": "Update a key's credits",
"destructiveHint": true
}
}Revoke a key. By default this is a soft delete the key stops working but stays queryable; pass permanent to erase it. Unkey: POST /v2/keys.deleteKey.
| Parameter | Type | Description |
|---|---|---|
| keyId * | string | The key to revoke. |
| permanent | boolean | Erase the key entirely instead of soft-deleting it. Defaults to false. |
{
"name": "unkey_delete_key",
"title": "Delete a key",
"description": "Revoke a key. By default this is a soft delete the key stops working but stays queryable; pass permanent to erase it. Unkey: POST /v2/keys.deleteKey.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"keyId"
],
"properties": {
"keyId": {
"type": "string",
"description": "The key to revoke."
},
"permanent": {
"type": "boolean",
"description": "Erase the key entirely instead of soft-deleting it. Defaults to false."
}
}
},
"annotations": {
"title": "Delete a key",
"destructiveHint": true
}
}Create an identity — an end user or organisation that keys and shared rate limits attach to. Unkey: POST /v2/identities.createIdentity.
| Parameter | Type | Description |
|---|---|---|
| meta | object | Arbitrary JSON metadata. |
| externalId * | string | Your own id for this user or organisation. |
{
"name": "unkey_create_identity",
"title": "Create an identity",
"description": "Create an identity — an end user or organisation that keys and shared rate limits attach to. Unkey: POST /v2/identities.createIdentity.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"externalId"
],
"properties": {
"meta": {
"type": "object",
"description": "Arbitrary JSON metadata.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"externalId": {
"type": "string",
"description": "Your own id for this user or organisation."
}
}
},
"annotations": {
"title": "Create an identity",
"destructiveHint": true
}
}Set a custom rate limit for one identifier in a namespace — how you raise or lower a single customer's limit. Unkey: POST /v2/ratelimit.setOverride.
| Parameter | Type | Description |
|---|---|---|
| limit * | integer | Requests allowed per window. |
| duration * | integer | Window length in milliseconds. |
| namespace * | string | The rate-limit namespace name. |
| identifier * | string | The identifier the override applies to. |
{
"name": "unkey_set_ratelimit_override",
"title": "Set a rate-limit override",
"description": "Set a custom rate limit for one identifier in a namespace — how you raise or lower a single customer's limit. Unkey: POST /v2/ratelimit.setOverride.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"namespace",
"identifier",
"limit",
"duration"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Requests allowed per window."
},
"duration": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Window length in milliseconds."
},
"namespace": {
"type": "string",
"description": "The rate-limit namespace name."
},
"identifier": {
"type": "string",
"description": "The identifier the override applies to."
}
}
},
"annotations": {
"title": "Set a rate-limit override",
"destructiveHint": true
}
}Tools for Unkey, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "List the customer identities we have set up, with their saved details."; "How many verifications did our keys have in the last 7 days?"; "Show how many key checks passed or failed in the last seven days.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Unkey data. Free plan: 50 tool calls per month. Run unkey_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run unkey_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run unkey_upgrade without a plan: it returns both plans, each with a payment link for the user to open. unkey_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.