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

# List Mcp Access Users

> List users with MCP credentials and their client connections.

Callers without `workspace:update` only see their own entry.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/mcp-access/users
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/mcp-access/users:
    get:
      tags:
        - mcp_access
      summary: List Mcp Access Users
      description: |-
        List users with MCP credentials and their client connections.

        Callers without `workspace:update` only see their own entry.
      operationId: mcp_access-list_mcp_access_users
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: reverse
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Reverse
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/MCPAccessStatus'
              - type: 'null'
            title: Status
        - name: credential_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/MCPCredentialType'
              - type: 'null'
            title: Credential Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CursorPaginatedResponse_MCPAccessUserRead_
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
components:
  schemas:
    MCPAccessStatus:
      type: string
      enum:
        - active
        - inactive
      title: MCPAccessStatus
    MCPCredentialType:
      type: string
      enum:
        - mcp_token
        - oauth_client
      title: MCPCredentialType
    CursorPaginatedResponse_MCPAccessUserRead_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MCPAccessUserRead'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Cursor for next page
        prev_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
        has_more:
          type: boolean
          title: Has More
          description: Whether more items exist
          default: false
        has_previous:
          type: boolean
          title: Has Previous
          description: Whether previous items exist
          default: false
        total_estimate:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Estimate
          description: Estimated total count from table statistics
      type: object
      required:
        - items
      title: CursorPaginatedResponse[MCPAccessUserRead]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MCPAccessUserRead:
      properties:
        user_id:
          type: string
          format: uuid
          title: User Id
        email:
          type: string
          title: Email
        is_active:
          type: boolean
          title: Is Active
        last_connected_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Connected At
        tokens:
          items:
            $ref: '#/components/schemas/MCPPersonalAccessTokenRead'
          type: array
          title: Tokens
        oauth_clients:
          items:
            $ref: '#/components/schemas/MCPOAuthClientRead'
          type: array
          title: Oauth Clients
        connections:
          items:
            $ref: '#/components/schemas/MCPClientConnectionRead'
          type: array
          title: Connections
      type: object
      required:
        - user_id
        - email
        - is_active
      title: MCPAccessUserRead
      description: MCP credentials and connections for one user.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MCPPersonalAccessTokenRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        user_id:
          type: string
          format: uuid
          title: User Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        name:
          type: string
          title: Name
        key_id:
          type: string
          title: Key Id
        preview:
          type: string
          title: Preview
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By
        revoked_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Revoked By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - user_id
        - organization_id
        - workspace_id
        - name
        - key_id
        - preview
        - created_at
        - updated_at
      title: MCPPersonalAccessTokenRead
    MCPOAuthClientRead:
      properties:
        client_id:
          type: string
          title: Client Id
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Name
        first_seen_at:
          type: string
          format: date-time
          title: First Seen At
        last_seen_at:
          type: string
          format: date-time
          title: Last Seen At
        is_active:
          type: boolean
          title: Is Active
      type: object
      required:
        - client_id
        - first_seen_at
        - last_seen_at
        - is_active
      title: MCPOAuthClientRead
      description: An OAuth client a user connected to the MCP server with.
    MCPClientConnectionRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        credential_type:
          $ref: '#/components/schemas/MCPCredentialType'
        credential_id:
          type: string
          title: Credential Id
        credential_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Credential Name
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Name
        client_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Version
        ip_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Ip Address
        first_seen_at:
          type: string
          format: date-time
          title: First Seen At
        last_seen_at:
          type: string
          format: date-time
          title: Last Seen At
      type: object
      required:
        - id
        - credential_type
        - credential_id
        - first_seen_at
        - last_seen_at
      title: MCPClientConnectionRead
      description: One user, MCP client and IP address combination.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.