MCP-Server

unkey

io.usefulapi/unkey
Cloud & Infrastruktur Entwicklertools Sicherheit Öffentlich und erreichbar MCP 2026-07-28

Was dieses MCP kann

Manages API namespaces, keys, identities, permissions, rate limits, credits and verification analytics.

unkey_create_api
Create an API
Create a new API namespace to issue keys under. Unkey: POST /v2/apis.createApi.
Destruktiv
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['name'], 'properties': {'name': {'type': 'string', 'description': 'The API name.'}}}
unkey_create_identity
Create an identity
Create an identity — an end user or organisation that keys and shared rate limits attach to. Unkey: POST /v2/identities.createIdentity.
Destruktiv
Eingabeschema
{'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.'}}}
unkey_create_key
Create an API key
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.
Destruktiv
Eingabeschema
{'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.'}}}
unkey_delete_key
Delete a key
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.
Destruktiv
Eingabeschema
{'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.'}}}
unkey_get_api
Get one API
Fetch an API namespace by id. Read-only despite being a POST. Unkey: POST /v2/apis.getApi.
Nur Lesen
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['apiId'], 'properties': {'apiId': {'type': 'string', 'description': "The API's id (api_...)."}}}
unkey_get_identity
Get one identity
Fetch a single identity with its metadata and shared rate limits. Read-only despite being a POST. Unkey: POST /v2/identities.getIdentity.
Nur Lesen
Eingabeschema
{'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."}}}
unkey_get_key
Get one key by id
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.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_get_ratelimit_override
Get one rate-limit override
Fetch the override for one identifier in a namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.getOverride.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_list_api_keys
List the keys of an API
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.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_list_identities
List identities
List identities — the end users or organisations your keys belong to. Read-only despite being a POST. Unkey: POST /v2/identities.listIdentities.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_list_permissions
List permissions
List the permissions defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listPermissions.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_list_ratelimit_overrides
List rate-limit overrides
List the per-identifier overrides in one rate-limit namespace. Read-only despite being a POST. Unkey: POST /v2/ratelimit.listOverrides.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_list_roles
List roles
List the roles defined in the workspace. Read-only despite being a POST. Unkey: POST /v2/permissions.listRoles.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_liveness
Check API health
Check that the Unkey API is reachable and the root key works. The only GET in the v2 surface. Unkey: GET /v2/liveness.
Nur Lesen
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {}}
unkey_query_verification_analytics
Query key-verification analytics
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.
Nur Lesen
Eingabeschema
{'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.'}}}
unkey_set_ratelimit_override
Set a rate-limit override
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.
Destruktiv
Eingabeschema
{'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.'}}}
unkey_update_key
Update a key
Change a key's name, owner, metadata, expiry, roles, permissions or enabled state. Unkey: POST /v2/keys.updateKey.
Destruktiv
Eingabeschema
{'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."}}}
unkey_update_key_credits
Update a key's credits
Set, increment or decrement a key's remaining credits. Use set with no value for unlimited. Unkey: POST /v2/keys.updateCredits.
Destruktiv
Eingabeschema
{'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.'}}}
unkey_whoami_key
Look up a key by its secret
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.
Nur Lesen
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['key'], 'properties': {'key': {'type': 'string', 'description': 'The plaintext API key to identify.'}}}
Hinzugefügt
unkey_set_ratelimit_override
4. October 2026 02:40
Hinzugefügt
unkey_create_identity
4. October 2026 02:40
Hinzugefügt
unkey_delete_key
4. October 2026 02:40
Hinzugefügt
unkey_update_key_credits
4. October 2026 02:40
Hinzugefügt
unkey_update_key
4. October 2026 02:40
Hinzugefügt
unkey_create_key
4. October 2026 02:40
Hinzugefügt
unkey_create_api
4. October 2026 02:40
Hinzugefügt
unkey_query_verification_analytics
4. October 2026 02:40
Hinzugefügt
unkey_get_ratelimit_override
4. October 2026 02:40
Hinzugefügt
unkey_list_ratelimit_overrides
4. October 2026 02:40
Hinzugefügt
unkey_list_roles
4. October 2026 02:40
Hinzugefügt
unkey_list_permissions
4. October 2026 02:40
Hinzugefügt
unkey_get_identity
4. October 2026 02:40
Hinzugefügt
unkey_list_identities
4. October 2026 02:40
Hinzugefügt
unkey_list_api_keys
4. October 2026 02:40
Hinzugefügt
unkey_get_api
4. October 2026 02:40
Hinzugefügt
unkey_whoami_key
4. October 2026 02:40
Hinzugefügt
unkey_get_key
4. October 2026 02:40
Hinzugefügt
unkey_liveness
4. October 2026 02:40