> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hasmcp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I get a list of active tokens for a given MCP server?

> Auditing active execution credentials securely linked against your live AI agent orchestrator interfaces.

# Listing Active Server Tokens

Administrators continuously monitoring active infrastructure deployments should verify explicit connection points dynamically mapping back to known hardware or client applications systematically.

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/J3U3Tv-0tpxoj7dc/images/kb/list-server-tokens.png?fit=max&auto=format&n=J3U3Tv-0tpxoj7dc&q=85&s=1080b4bafe8491ec569011a782342ff8" alt="List Server Tokens" width="2560" height="1440" data-path="images/kb/list-server-tokens.png" />

1. Navigate internally to the designated Server instance originating via your **MCP Servers** routing view.
2. Select the **Configuration** tab.
3. Review the **Server Tokens** array table for immediate visual confirmation of all generated token structures (their metadata, issuance dates, names, and explicit termination timestamps natively).

## Using REST API

To compile unified vulnerability checks dynamically utilizing pipeline audit mechanisms against explicit token expirations organically.

### The API Endpoint

**`GET /servers/{serverId}/tokens`**

Executing this simple `GET` action causes the orchestrator to dump a relational catalog array mapping to the specific orchestrator object.

### Response Data Format

A successful transaction produces the native `ListServerTokensResponse` housing a standard `tokens` array dictionary.

```json theme={null}
{
 "tokens": [
 {
 "id": "tQ9pV1mN8xK",
 "serverID": "sE8vKd2qLp9",
 "name": "claudeDesktopBeta",
 "expiresAt": "2027-01-01T00:00:00Z",
 "createdAt": "2026-01-15T12:00:00Z"
 }
 ]
}
```

> **Note:** As a direct security precaution inherent to the HasMCP database, the raw authentication `value` arrays are permanently inaccessible after their initial native creation step and will **not** populate within this array schema.
