> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List all instances for an MCP server

> Retrieves a paginated list of user instances (user IDs) associated with a specific Model Control Protocol (MCP) server. This endpoint supports pagination to handle servers with many instances.



## OpenAPI

````yaml api-reference/openapi-v3.json GET /api/v3/mcp/servers/{serverId}/instances
openapi: 3.0.0
info:
  version: 3.0.0
  title: Composio Platform API
  description: >-
    Composio v3 API — legacy endpoints under /api/v3/. Use v3.1 for new
    integrations.
  contact:
    name: Composio Support
    url: https://composio.dev/support
    email: support@composio.dev
  license:
    name: Proprietary
    url: https://composio.dev/terms
servers:
  - url: https://backend.composio.dev
    description: Composio production API
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: Authentication related endpoints
    x-group: Authentication
  - name: Auth Configs
    description: Authentication configuration management
    x-group: Auth Configs
  - name: Connected Accounts
    description: Connected account management
    x-group: Connected Accounts
  - name: Logs
    description: Logging and monitoring
    x-group: Logs
  - name: OpenAPI
    description: OpenAPI specification management
    x-group: OpenAPI
  - name: Organization
    description: Organization management
    x-group: Organization
  - name: API Keys
    description: API key management
    x-group: API Keys
  - name: Webhooks
    description: Webhook configuration
    x-group: Webhooks
  - name: Webhook Endpoints
    description: >-
      Per-OAuth-app webhook ingress endpoints. Inbound URLs the provider posts
      to, plus signing secret storage and verification.
    x-group: Webhook Endpoints
  - name: Webhook Subscriptions
    description: >-
      Webhook delivery subscriptions. Outbound URLs Composio posts trigger
      events to, plus signing secret rotation and event-type filters.
    x-group: Webhook Subscriptions
  - name: Team
    description: Team member management
    x-group: Team
  - name: Consumer Skills
    description: Organization-authored Skill management
    x-group: Consumer Skills
  - name: Toolkits
    description: Toolkit and tool management
    x-group: Toolkits
  - name: Tools
    description: Tool execution endpoints
    x-group: Tools
  - name: Triggers
    description: Trigger management and execution
    x-group: Triggers
  - name: Payments
    description: Payment and subscription management
    x-group: Payments
  - name: Billing
    description: Dashboard billing state — usage, subscription, contract (cookie-auth only)
    x-group: Billing
  - name: Compliance
    description: Organization compliance agreements and acceptance state
    x-group: Compliance
  - name: Files
    description: File management
    x-group: Files
  - name: MCP
    description: MCP server management
    x-group: MCP
  - name: MCP Partner
    description: MCP partner management
    x-group: MCP Partner
  - name: Stripe Projects
    description: Stripe Projects provisioning
    x-group: Stripe Projects
  - name: Tool Router
    description: (Labs) Tool router endpoints
    x-group: Sessions (Prev Tool Router)
  - name: Playground
    description: Dashboard playground chat
    x-group: Playground
  - name: Arena
    description: Arena conversations, messages and terms
    x-group: Arena
  - name: Organization Management
    description: Organization Management API endpoints.
    x-group: Organization Management
  - name: Projects
    description: Projects API endpoints.
    x-group: Projects
paths:
  /api/v3/mcp/servers/{serverId}/instances:
    get:
      tags:
        - MCP
      summary: List all instances for an MCP server
      description: >-
        Retrieves a paginated list of user instances (user IDs) associated with
        a specific Model Control Protocol (MCP) server. This endpoint supports
        pagination to handle servers with many instances.
      operationId: getMcpServersByServerIdInstances
      parameters:
        - schema:
            type: string
            description: UUID of the MCP server to list instances for
            example: 550e8400-e29b-41d4-a716-446655440000
          required: true
          description: The ID of the MCP server
          name: serverId
          in: path
        - schema:
            type: number
            nullable: true
            default: 1
            description: Page number to retrieve
            example: 1
          required: false
          description: Page number for pagination (1-based)
          name: page_no
          in: query
        - schema:
            type: number
            nullable: true
            default: 20
            description: Number of instances to return per page
            example: 20
          required: false
          description: 'Number of items per page (default: 20)'
          name: limit
          in: query
        - schema:
            type: string
            description: Filter instances by user ID or instance ID (partial match)
            example: user_123
          required: false
          description: Search instances by user ID/instance ID
          name: search
          in: query
        - schema:
            type: string
            enum:
              - created_at
              - updated_at
            default: updated_at
            description: Field to use for ordering the results
            example: updated_at
          required: false
          description: Field to order results by
          name: order_by
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
            description: Sort direction (ascending or descending)
            example: desc
          required: false
          description: Direction of ordering
          name: order_direction
          in: query
      responses:
        '200':
          description: >-
            Successfully retrieved MCP server instances. Returns the list of
            user IDs associated with this server.
          content:
            application/json:
              schema:
                type: object
                properties:
                  instances:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: UUID of the instance record
                          example: 550e8400-e29b-41d4-a716-446655440000
                        instance_id:
                          type: string
                          description: The instance identifier (same as the user_id)
                          example: user_123456
                        mcp_server_id:
                          type: string
                          description: UUID of the parent MCP server
                          example: 660e8400-e29b-41d4-a716-446655440001
                        created_at:
                          type: string
                          description: Date and time when this instance was created
                          example: '2023-06-10T09:15:00.000Z'
                        updated_at:
                          type: string
                          description: Date and time when this instance was last modified
                          example: '2023-06-15T14:30:00.000Z'
                      required:
                        - id
                        - instance_id
                        - mcp_server_id
                        - created_at
                        - updated_at
                      description: MCP server instance details
                    description: >-
                      List of instance objects associated with this MCP server
                      for the current page
                    example:
                      - id: 550e8400-e29b-41d4-a716-446655440000
                        instance_id: user_123456
                        mcp_server_id: 660e8400-e29b-41d4-a716-446655440001
                        created_at: '2023-06-10T09:15:00.000Z'
                        updated_at: '2023-06-15T14:30:00.000Z'
                  server_id:
                    type: string
                    description: UUID of the MCP server
                    example: 550e8400-e29b-41d4-a716-446655440000
                  server_name:
                    type: string
                    description: Name of the MCP server
                    example: Production GitHub Integration
                  total_pages:
                    type: number
                    description: Total number of pages in the paginated response
                    example: 3
                  current_page:
                    type: number
                    description: Current page number being returned
                    example: 1
                required:
                  - instances
                  - server_id
                  - server_name
                  - total_pages
                  - current_page
                description: Paginated list of instances for an MCP server
        '400':
          description: Bad request. The server ID parameter may be invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Unauthorized. Authentication is required or the provided credentials
            are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: MCP server not found. No server with the specified ID exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: >-
            Internal server error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      deprecated: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: number
            slug:
              type: string
            status:
              type: number
            request_id:
              type: string
            suggested_fix:
              type: string
            errors:
              type: array
              items:
                type: string
          required:
            - message
            - code
            - slug
            - status
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Composio project API key. Create or copy it from the Composio
        dashboard.
      x-default: your-project-api-key

````