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

# List MCP Registry Servers

> List all MCP registry servers for the authenticated user with pagination support.



## OpenAPI

````yaml GET /mcp-registry/list-servers
openapi: 3.0.0
info:
  title: Enkrypt AI APIs
  version: 2.0.0
servers:
  - url: https://api.enkryptai.com
security:
  - apiKeyAuth: []
tags:
  - name: Guardrails
  - name: Code of Conduct
  - name: Endpoints
  - name: Redteam
    description: >-
      Red Team API: submit red-team / threat-modeling / playground / eval runs,
      then poll run status, records, results and compliance. Also two-phase
      threat modeling (categories + data), dataset retrieval, model health,
      findings and risk mitigation. The previous task-based Red Team API is
      under **Archived**.
  - name: Deployments
  - name: AI Proxy
  - name: Leaderboard
  - name: Archived
  - name: MCP Hub
    description: >-
      MCP Hub vulnerability scanning APIs. Submitting scans (the POST endpoints)
      is open to all authenticated callers. The scan **retrieval** APIs — Get
      Scan Job Status, Get Complete Scan Results, List Scans, and Get MCP Hub
      Scan Statistics (the GET endpoints) — are an **enterprise data-license
      feature**: they require your organization to have MCP Hub API access
      enabled by Enkrypt, otherwise they return `403`. Contact us at
      support@enkryptai.com to enable access.
  - name: MCP Registry Servers
  - name: MCP Gateways
  - name: MCP Playground
  - name: Skill Scanner
    description: >-
      Skill Scanner APIs: submit an agent skill (a directory inside a git
      repository) for security scanning, then read the verdict, the risk level
      and the full report. Scanning is asynchronous — a scan takes roughly 30–90
      seconds, so `POST /skill-hub/scan` returns a `scan_id` you poll.


      You see your organization's scans and nobody else's. The identity comes
      from your API key, never from your request — sending `user_email` is a
      `400`.


      For an organization or project API key, scans are filed under the
      **organization**, so every member sees every scan the organization has
      run, whichever project or member submitted it. For an individual account
      it is simply your own scans. Either way List Skill Scans needs no
      parameter to say who you are.
  - name: Compliance
    description: >-
      Compliance APIs: connect a ChatGPT Enterprise workspace, then keep reading
      its compliance logs and scanning every message through one of your saved
      guardrails.


      Every endpoint here — reads as well as writes — requires the **governance
      officer** role on the project your API key belongs to. The organization
      owner is **not** exempt: an owner who has not been granted the role gets
      `403` like anyone else. An individual (non-organization) account cannot
      hold the role at all, so compliance is an organization-only feature today.


      A scan is addressed by name in the `X-Enkrypt-Scan` header, within the
      project its API key belongs to. Message text is never stored: Get
      Compliance Message fetches it live from the provider, and only while the
      provider still holds it.
paths:
  /mcp-registry/list-servers:
    get:
      tags:
        - MCP Registry Servers
      summary: List MCP Registry Servers
      description: >-
        List all MCP registry servers for the authenticated user with pagination
        support.
      operationId: listRegistryServers
      parameters:
        - $ref: '#/components/parameters/MCPGatewayPageParam'
        - $ref: '#/components/parameters/MCPGatewayPerPageParam'
        - $ref: '#/components/parameters/MCPGatewayIsActiveFilterParam'
      responses:
        '200':
          description: List of registry servers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPGatewayRegistryServerListResponse'
        '401':
          $ref: '#/components/responses/MCPGatewayUnauthorized'
        '403':
          $ref: '#/components/responses/MCPGatewayForbidden'
        '500':
          $ref: '#/components/responses/MCPGatewayInternalError'
components:
  parameters:
    MCPGatewayPageParam:
      name: page
      in: query
      required: false
      description: Page number (1-indexed)
      schema:
        type: integer
        minimum: 1
        default: 1
        example: 1
    MCPGatewayPerPageParam:
      name: per_page
      in: query
      required: false
      description: Number of items per page (max 100)
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
        example: 10
    MCPGatewayIsActiveFilterParam:
      name: is_active
      in: query
      required: false
      description: >-
        Optional filter on the `is_active` column. Omit to return all rows
        (default behaviour). Set to `true` for active-only or `false` for
        inactive-only.
      schema:
        type: boolean
  schemas:
    MCPGatewayRegistryServerListResponse:
      type: object
      properties:
        servers:
          type: array
          items:
            $ref: '#/components/schemas/MCPGatewayRegistryServer'
        pagination:
          $ref: '#/components/schemas/MCPGatewayPagination'
    MCPGatewayRegistryServer:
      type: object
      properties:
        saved_name:
          type: string
          description: User-given name for the server
        server_version:
          type: string
          description: Server version
        job_id:
          type: string
          format: uuid
          nullable: true
          description: MCP Hub server identifier (optional)
        source_url:
          type: string
          nullable: true
          description: Source URL
        source_version:
          type: string
          nullable: true
          description: Source version or commit hash
        server_name:
          type: string
          nullable: true
          description: Server package name
        description:
          type: string
          nullable: true
          description: Server description
        mcp_config:
          allOf:
            - $ref: '#/components/schemas/MCPGatewayMCPConfig'
          nullable: true
        registry_id:
          type: string
          description: Hashed ID of the parent registry this server belongs to
        registry_name:
          type: string
          description: Name of the parent registry (defaults to "default")
        project_name:
          type: string
          description: Project name
        is_active:
          type: boolean
          description: Whether the server is enabled (distinct from is_deleted)
        is_sample:
          type: boolean
          description: Whether this is a sample server
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
        created_by:
          type: string
          format: uuid
          nullable: true
          description: User ID who created this server
        updated_by:
          type: string
          format: uuid
          nullable: true
          description: User ID who last updated this server
    MCPGatewayPagination:
      type: object
      properties:
        page:
          type: integer
          description: Current page number
        per_page:
          type: integer
          description: Items per page
        total_count:
          type: integer
          description: Total number of items
        total_pages:
          type: integer
          description: Total number of pages
        has_next:
          type: boolean
          description: Whether there is a next page
        has_previous:
          type: boolean
          description: Whether there is a previous page
    MCPGatewayErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
    MCPGatewayMCPConfig:
      type: object
      description: >-
        MCP server configuration template. Shape mirrors a single entry of
        secure-mcp-gateway's `mcp_configs.<id>.mcp_config[]` array, so the
        registry server's mcp_config is directly consumable by the gateway
        runtime.
      properties:
        config:
          type: object
          description: Server execution configuration
          properties:
            command:
              type: string
              description: Command to execute the MCP server
              example: npx
            args:
              type: array
              items:
                type: string
              description: Command-line arguments
              example:
                - '-y'
                - '@modelcontextprotocol/server-filesystem'
                - /tmp
            env:
              type: object
              additionalProperties:
                type: string
              description: >-
                Environment variables passed to the MCP server process at spawn
                time. Use this for credentials the server needs (e.g.
                `OPENAI_API_KEY`, `GITHUB_TOKEN`). Values are strings only. When
                omitted, the server inherits the gateway's environment subject
                to the sandbox `allowed_env` allowlist.
              example:
                OPENAI_API_KEY: sk-...
                LOG_LEVEL: info
        oauth_config:
          $ref: '#/components/schemas/MCPGatewayOAuthConfig'
        tools:
          type: object
          additionalProperties: true
          description: >-
            Tool restrictions and per-tool overrides. Empty object means no
            per-tool customisation.
        denied_tools:
          type: array
          description: >-
            Tools to deny. Each entry is either a tool-name string supporting
            fnmatch globs (e.g. `"delete_*"`, `"*"`) or an object with `name`,
            `reason`, and optional `description` fields. The wildcard `"*"`
            denies everything **not** explicitly listed in `tools` (deny-all
            with allow-list exemption). Denied tools are filtered out before
            being exposed to LLMs and rejected at execution time.
          items:
            $ref: '#/components/schemas/MCPGatewayDenyToolEntry'
          example:
            - delete_*
            - name: write_file
              reason: destructive
        input_guardrails_config:
          $ref: '#/components/schemas/MCPGatewayGuardrailsPolicy'
        output_guardrails_config:
          $ref: '#/components/schemas/MCPGatewayGuardrailsPolicy'
    MCPGatewayOAuthConfig:
      type: object
      description: >-
        OAuth 2.0/2.1 configuration for MCP server with support for PKCE, mTLS,
        and advanced security features
      properties:
        enabled:
          type: boolean
          description: Enable OAuth authentication
        is_remote:
          type: boolean
          description: Whether OAuth service is remote
        OAUTH_VERSION:
          type: string
          description: OAuth version (2.0 or 2.1)
          example: '2.1'
        OAUTH_GRANT_TYPE:
          type: string
          description: OAuth grant type
          example: authorization_code
        OAUTH_CLIENT_ID:
          type: string
          description: OAuth client identifier
        OAUTH_CLIENT_SECRET:
          type: string
          description: OAuth client secret
        OAUTH_TOKEN_URL:
          type: string
          format: uri
          description: OAuth token endpoint URL
        OAUTH_AUTHORIZATION_URL:
          type: string
          format: uri
          description: OAuth authorization endpoint URL
        OAUTH_REDIRECT_URI:
          type: string
          format: uri
          description: OAuth redirect URI for callbacks
        OAUTH_AUDIENCE:
          type: string
          description: OAuth audience parameter
        OAUTH_ORGANIZATION:
          type: string
          description: OAuth organization identifier
        OAUTH_SCOPE:
          type: string
          description: Space-separated OAuth scopes
          example: read write
        OAUTH_RESOURCE:
          type: string
          format: uri
          description: OAuth resource parameter
        OAUTH_USE_PKCE:
          type: boolean
          description: Enable Proof Key for Code Exchange (PKCE)
        OAUTH_CODE_CHALLENGE_METHOD:
          type: string
          description: PKCE code challenge method
          example: S256
        OAUTH_TOKEN_EXPIRY_BUFFER:
          type: integer
          description: Token expiry buffer in seconds
          example: 300
        OAUTH_USE_BASIC_AUTH:
          type: boolean
          description: Use HTTP Basic Auth for token requests
        OAUTH_ENFORCE_HTTPS:
          type: boolean
          description: Enforce HTTPS for OAuth endpoints
        OAUTH_TOKEN_IN_HEADER_ONLY:
          type: boolean
          description: Only send tokens in Authorization header
        OAUTH_VALIDATE_SCOPES:
          type: boolean
          description: Validate OAuth scopes
        OAUTH_USE_MTLS:
          type: boolean
          description: Enable mutual TLS (mTLS)
        OAUTH_CLIENT_CERT_PATH:
          type: string
          nullable: true
          description: Path to client certificate for mTLS
        OAUTH_CLIENT_KEY_PATH:
          type: string
          nullable: true
          description: Path to client private key for mTLS
        OAUTH_CA_BUNDLE_PATH:
          type: string
          nullable: true
          description: Path to CA certificate bundle
        OAUTH_REVOCATION_URL:
          type: string
          format: uri
          nullable: true
          description: OAuth token revocation endpoint
        OAUTH_ADDITIONAL_PARAMS:
          type: object
          additionalProperties: true
          description: Additional OAuth parameters
        OAUTH_CUSTOM_HEADERS:
          type: object
          additionalProperties: true
          description: Custom headers for OAuth requests
    MCPGatewayDenyToolEntry:
      description: >-
        A deny-list entry. Either a bare tool-name string (supports fnmatch
        globs like `"tool_a_*"` or `"*"`), or an object with at least a `name`
        field plus optional `reason` and `description`. The wildcard `"*"`
        denies all tools **not** explicitly listed in the `tools` allow-list.
      oneOf:
        - type: string
          description: Tool name or fnmatch glob pattern
          example: delete_*
        - type: object
          required:
            - name
          properties:
            name:
              type: string
              description: Tool name or fnmatch glob pattern
              example: delete_file
            reason:
              type: string
              description: Human-readable reason surfaced to LLMs, callers, and audit logs
              example: destructive operation, denied by policy
            description:
              type: string
              description: Optional longer description for documentation purposes
    MCPGatewayGuardrailsPolicy:
      type: object
      description: Guardrails configuration
      properties:
        enabled:
          type: boolean
          description: Enable guardrails enforcement
        guardrail_name:
          type: string
          description: Guardrail identifier
        additional_config:
          type: object
          additionalProperties: true
          description: Detector-specific settings
        block:
          type: array
          items:
            type: string
            enum:
              - policy_violation
              - injection_attack
              - topic_detector
              - nsfw
              - toxicity
              - pii
              - keyword_detector
              - bias
              - sponge_attack
              - adherence
              - relevancy
              - hallucination
          description: >-
            Violation types triggering rejection. Note - adherence, relevancy,
            and hallucination are typically used for output guardrails only.
  responses:
    MCPGatewayUnauthorized:
      description: Unauthorized - invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MCPGatewayErrorResponse'
    MCPGatewayForbidden:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MCPGatewayErrorResponse'
    MCPGatewayInternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MCPGatewayErrorResponse'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey

````

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