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

# List MCP server prompts

> Return the prompt templates an MCP server exposes, fetched live from the server. When the server is not `connected`, `prompts` is empty and `gumloop_auth_url` is returned.



## OpenAPI

````yaml get /mcp/servers/{server_id}/prompts
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /mcp/servers/{server_id}/prompts:
    get:
      tags:
        - MCP
      summary: List MCP server prompts
      description: >-
        Return the prompt templates an MCP server exposes, fetched live from the
        server. When the server is not `connected`, `prompts` is empty and
        `gumloop_auth_url` is returned.
      operationId: listMcpServerPrompts
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            type: string
        - in: query
          name: team_id
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Prompts available on the server, plus the server's connection state.
          content:
            application/json:
              schema:
                type: object
                required:
                  - prompts
                properties:
                  prompts:
                    type: array
                    items:
                      type: object
                      required:
                        - name
                      properties:
                        name:
                          type: string
                          example: summarize_page
                        description:
                          type: string
                          nullable: true
                        arguments:
                          type: array
                          items:
                            type: object
                            required:
                              - name
                            properties:
                              name:
                                type: string
                              description:
                                type: string
                                nullable: true
                              required:
                                type: boolean
                                nullable: true
                        server_id:
                          type: string
                          nullable: true
                  server_id:
                    type: string
                    nullable: true
                  status:
                    type: string
                    nullable: true
                  gumloop_auth_url:
                    type: string
                    nullable: true
        '401':
          description: Unauthorized — missing or invalid Gumloop API credentials.
        '403':
          description: >-
            Forbidden — the caller cannot use agents in the team, or the server
            is disabled by organization policy.
        '404':
          description: Server not found.
        '502':
          description: The MCP server could not be reached or returned an error.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl
            'https://api.gumloop.com/api/v1/mcp/servers/gumloop_notion/prompts?team_id=YOUR_TEAM_ID'
            \
              -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
        - lang: python
          label: Python
          source: >
            from gumloop import Gumloop


            client = Gumloop(access_token="YOUR_ACCESS_TOKEN")


            for prompt in client.mcp.list_prompts("gumloop_notion",
            team_id="YOUR_TEAM_ID").prompts:
                print(prompt.name, [a.name for a in prompt.arguments])
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````